cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Sendmail

SOLVED
Go to solution
Subentu
Frequent Advisor

Configuring Sendmail

Hi Experts,

I want to configure sendmail in my HP-UX 11.23i machine.

This is what I have done so far:

a)The line containing
#Dj$w.FOO.Com
changed to
Dj

b) The line containing the word "check_local"
# R$* < @ $* > $* $: $>check_local <$m> $1 < @ $2 > $3 Local Domain?
uncommented

c) Edit the line DS
DS

d) edit the file /etc/mail/sendmail.cw
add the line


e) edit the /etc/hosts
ip address of the hp-ux server >

f) Edit the file /etc/rc.config.d/netconf
# vi /etc/rc.config.d/netconf
HOSTNAME=
# /sbin/init.d/hostaname start

g) restart the sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start


When I try to send a mail, I get the following error :

o8J5VEm05837 29 Sun Sep 19 10:31 nuwan
(Deferred: 454 5.7.3 Client does not have permission to submi)
hpsupport@wataniya-maldives.com


Please help

Thanks
10 REPLIES
Modris Bremze
Esteemed Contributor
Solution

Re: Configuring Sendmail

You also have to configure the Exchange server (the one you specified at DS directive) for your HP-UX server to be able to submit e-mails for forwarding/relaying. What version of Exchange server do you use?
nightwich
Valued Contributor

Re: Configuring Sendmail

Hi Subentu.


From my experience, if you have your machine and DNS settings configured correctly.

You only need to configure your exchange server in the fiel DS in the /etc/mail/sendmail.cf


You also have to check the exchange server to see if the client have the correct permissions.

To do some debug send the messages like this:

ls | sendmail -v -v "a_valid_email"

Regards.
Matti_Kurkela
Honored Contributor

Re: Configuring Sendmail

Comment to step a):
Did you specify the hostname in FQDN form?
i.e. it should be

Djhostname.foo.com

instead of

Djhostname


Comment to step b):
Have you verified the $m macro is set correctly?

To check, run "sendmail -bt". When you see the "> " prompt, type "$m". It should respond with your DNS domain name.
For example, if your system's hostname in FQDN form is hostname.foo.com, the response should be:

foo.com

If step a) was done correctly, this value should be correctly set automatically.
End "sendmail -bt" by pressing Ctrl-D.


> When I try to send a mail, I get the following error :

Which program/command did you use to send the mail? (Does it send the mail by piping it to the sendmail command, or does it connect to port 25 on localhost?)

In your example error message, o8J5VEm05837 is the queue ID of the message. You can use it to find all the log messages related to that particular mail:

grep o8J5VEm05837 /var/adm/syslog/mail.log

Seeing all those messages would be more informative than seeing the error message alone. Could you please post the output of the above-mentioned grep command?

MK
MK
Subentu
Frequent Advisor

Re: Configuring Sendmail

a) Djwbscsp03.wataniya-maldives.com
b) wataniya-maldives.com

So I'm guessing those parts were done correctly

Sending the mail :
wbscsp03.wataniya-maldives.com[/]#date | mailx -s "hi" hpsupport@wataniya-maldives.com

mailq:
wbscsp03.wataniya-maldives.com[/]#mailq
/var/spool/mqueue (1 request)
----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------
o8KBlh118242 29 Mon Sep 20 16:47 nuwan
(Deferred: 454 5.7.3 Client does not have permission to submi)
hpsupport@wataniya-maldives.com


mail log:

wbscsp03.wataniya-maldives.com[/]#grep o8KBlh118242 /var/adm/syslog/mail.log
Sep 20 16:47:43 wbscsp03 sendmail[18242]: o8KBlh118242: from=nuwan, size=171, class=0, nrcpts=1, msgid=<201009201147.o8KBlh118242@wbscsp03.wataniya-maldives.com>, relay=root@localhost
Sep 20 16:47:43 wbscsp03 sendmail[18244]: o8KBlh118242: to=hpsupport@wataniya-maldives.com, ctladdr=nuwan (121/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120171, relay=mail.wataniya-maldives.com [10.10.9.90], dsn=4.0.0, stat=Deferred: 454 5.7.3 Client does not have permission to submit mail to this server.
wbscsp03.wataniya-maldives.com[/]#
nightwich
Valued Contributor

Re: Configuring Sendmail

Hi Subentu





"5.7.3 Client does not have permission to submit mail to this server"

I think the problem is in your exchange server check permissions for your client.


Regards
Steven E. Protter
Exalted Contributor

Re: Configuring Sendmail

Shalom,

To relay mail you must set up your own server to do it(done) and set up the relay server to accept it.

Due to spam problems, the default for any smtp server is to NOT relay any mail.

Talk to the admin of the smtp relay server. Most exchange servers require explicit set up by IP address.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matti_Kurkela
Honored Contributor

Re: Configuring Sendmail

This mail log message is the key:

> Sep 20 16:47:43 wbscsp03 sendmail[18244]: o8KBlh118242: to=hpsupport@wataniya-maldives.com, ctladdr=nuwan (121/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120171, relay=mail.wataniya-maldives.com [10.10.9.90], dsn=4.0.0, stat=Deferred: 454 5.7.3 Client does not have permission to submit mail to this server.

In English, the message means mail.wataniya-maldives.com (IP address 10.10.9.90) is not accepting mail from your server.

The next step is to find the administrator of the mail.wataniya-maldives.com system, and kindly ask him/her to allow your server to send mail to (and/or through) it.

MK
MK
Subentu
Frequent Advisor

Re: Configuring Sendmail

Due to a security concern, exchange server admin is reluctant to provide anonymous access.

Is there any workaround to this by configuring anything from the UNIX side?

thanks
Subentu
Frequent Advisor

Re: Configuring Sendmail

Anyone ?
Jim Walls
Trusted Contributor

Re: Configuring Sendmail

You need to explain to the Exchange administrator that this is not entirely anonymous. He/she knows what the IP address for your server is... and that it must be located on a local subnet. What more identification does he/she expect - apart from a business justification?

If this is a business requirement then there is no alternative, the Exchange server needs to allow relaying from your server.