Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail question

brian_31
Super Advisor

sendmail question

sendmail on hp-ux, when i run as sendmail -v
Thanks

brian
7 REPLIES
Tim Nelson
Honored Contributor

Re: sendmail question

a couple questions:

is this sendmail that was delivered with HPUX ?

what does your 127.0.0.1 entry in /etc/hosts look like, should only say localhost loopback, no entry for your servername

is your ip, hostname, fqdn the first line in the /etc/hosts file ?( e.g not the loopback entry)

Michael Steele_2
Honored Contributor

Re: sendmail question

"...connecting to 127.0.0.1 ..."

I would imagine the above means connecting to mail server. And to check that you:

cd /etc/mail
grep DS sendmail.cf

You'll get 6 or so lines, one will say,
DSmailserver.com

Does it say localhost?
Support Fatherhood - Stop Family Law
brian_31
Super Advisor

Re: sendmail question

hosts entries are fine. Mail works fine too. no issues. just curious why it connects to 127.0.0.1. see below.it is connecting to loopback address and also closing it..

sendmail -v brian@owi.com
test
brian@owi.com... Connecting to [127.0.0.1] via relay...
220 mcnet.owi.com ESMTP sendmail 8.14.3/8.14.3; Thu, 8 Apr 2010 17:2
9:13 -0400 (EDT)
>>> EHLO mcnet.owi.com
250-mcnet.owi.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 5000000
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From: SIZE=5
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
>>> .
250 2.0.0 o38LTDH0023543 Message accepted for delivery
brian@owi.com... Sent (o38LTDH0023543 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 mcnet.owi.com closing connection

Thanks

brian

Anshumali
Esteemed Contributor

Re: sendmail question

Hi Brian,
Its throwing the mail to localhost for relaying purpose and its working fine(as per your comments).

Generally, the mail is sent to external relay server but here your localhost is acting as relay server. Would need to see the configuration files if you really wanted to see how its been configured to flow.

Cheers!
Anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Michael Steele_2
Honored Contributor

Re: sendmail question

Please post



cd /etc/mail
grep DS sendmail.cf

You'll get 6 or so lines, one will say,
DSmailserver.com

Does it say localhost?
Support Fatherhood - Stop Family Law
brian_31
Super Advisor

Re: sendmail question


grep DS sendmail.cf
DSsmtp.owi.com
# Return-Receipt-To: header implies DSN request
# DHParameters (only required if DSA/DH is used)
just returns the relay host (FQDN) and no localhost there.

Thanks

brian.
Michael Steele_2
Honored Contributor

Re: sendmail question

What does:

nslookup smtp.owi.com return?

What does:

nslookup ip (* of smtp.owi.com *) return?

Please add:

cat /etc/resolv.conf
Support Fatherhood - Stop Family Law