HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail setting in HP UX 11.23

 
Peter Yu
Occasional Visitor

sendmail setting in HP UX 11.23

Hi Guru,
I have two servers: host1 and host2, both are HP UX 11.23, I am trying to setup the sendmail, from my point, two servers sendmail configuration are identical, but the result are different. For below test, I can receive the email sent from host1 to my hotmail, but the one sent from host2 remains in the queue, cannot connect to my relay sever. file /etc/rc.config.d/mailservs, /etc/mail/sendmial.cf, /etc/mail/aliases, /etc/mail/sendmail.cw are contain same setting.
root@host1:/etc/mail$ /usr/sbin/sendmail -v abc@hotmail.com
test mail from host1.
.
abc@hotmail.com... Connecting to smtp.test.com. via relay...
220 smtp.test.corp Microsoft ESMTP MAIL Service ready at Thu, 14 May 2009 21:54:00 -0400
>>> EHLO host1.test.corp
250-smtp.test.corp Hello [10.5.8.7]
250-SIZE 20971520
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
>>> MAIL From: SIZE=37 AUTH=root@+81w.test.corp
250 2.1.0 Sender OK
>>> RCPT To:
>>> DATA
250 2.1.5 Recipient OK
354 Start mail input; end with .
>>> .
250 2.6.0 <200905150153.n4F1rxS8008136@host1.test.corp> Queued mail for delivery
abc@hotmail.com... Sent (<200905150153.n4F1rxS8008136@host1.test.corp> Queued mail for delivery)
Closing connection to smtp.test.com.
>>> QUIT
221 2.0.0 Service closing transmission channel

root@host2:/home/root$ /usr/sbin/sendmail -v abc@hotmail.com
this is a test from host2. send by comand sendmail
.
root... Connecting to [127.0.0.1] via relay...
220 host2.test.corp ESMTP Sendmail @(#)Sendmail version 8.13.3 - Revision 1.005 - 15 November 2007/8.11.1; Sun, 17 May 2009 14:16:41 -0500 (CDT)
>>> EHLO host2.test.corp
250-host2.test.corp Hello smmsp@localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<> SIZE=1078
250 2.1.0 <>... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 ... Connecting to local...
050 ... Sent
250 2.0.0 n4HJGfp5023734 Message accepted for delivery
root... Sent (n4HJGfp5023734 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 host2.test.corp closing connection
root@host2:/home/root$

Best regards,
Peter Yu
7 REPLIES
Mel Burslan
Honored Contributor

Re: sendmail setting in HP UX 11.23

Looking at the mail transcripts, it seems like your host2 can not identify itself Look at the IP addresses introduced. host1 seems to advertise (tell) it IP address to the mail relay server whereas host2 advertise the 127.0.0.1 whih is the local host. Are you sure you can connect any other server from host2 ? Make sure on host2 you have valid /etc/rc.config.d/netconf and /etc/hosts files.
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: sendmail setting in HP UX 11.23

Shalom Peter,

Probably the sendmail.cf configuration is not consistent.

Also note that host2 is accepting the mail for local delivery to the local sendmail daemon, which is running.

If sendmail is not running on host1 that could be the problem.

Standard configuration for the corporate environment is to relay mail via a local smtp relay server.

DSrelayserverhostname

or
DS
[192.168.0.10]

Where 192.168.0.10 is the local relay server.

The second approach, in sendmail.cf avoids mail delivery problems if DNS is down.

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
Peter Yu
Occasional Visitor

Re: sendmail setting in HP UX 11.23

Mel,
Thans for your reply, I checked the netconf and hosts file, it is OK. I can ping mail relay server from both host1 and host2.

Steven,
file sendmail.cf is identical, both has DSsmtp.test.com

and I can ping smtp.test.com form both server.

What confuse me is same setting, one connect to relay server, one connect to local daemon...

Best regards,
Peter
Peter Yu
Occasional Visitor

Re: sendmail setting in HP UX 11.23

It remains same issue, anybody can help, thanks.

Peter Yu
Mel Burslan
Honored Contributor

Re: sendmail setting in HP UX 11.23

From server2 (not working server)

telnet 192.168.0.10 25

what do you get in response ? Is it timing out or are you getting something like

EHLO server2 .... etc..
________________________________
UNIX because I majored in cryptology...
Peter Yu
Occasional Visitor

Re: sendmail setting in HP UX 11.23

Mel,
from host1 and host2 do telnet 192.168.0.10 25, both will timeout.
But if I telnet smtp.test.com 25,both get in. I can they run HELO, MAIL FROM, ...


Best regards,
Peter Yu
Peter Yu
Occasional Visitor

Re: sendmail setting in HP UX 11.23

Issue fixed...
the issue comes from submit.cf file, host1 don't have this file, but host2 has. But unfortunat the value in host2 has wrong value for smtp realy. so change it to correct value works.

Best regards,
Peter