Operating System - HP-UX
1753826 Members
8144 Online
108805 Solutions
New Discussion юеВ

Re: Sendmail Problem - host name lookup failure

 

Re: Sendmail Problem - host name lookup failure

msphbos0ROOT:telnet bagate.verizon.com 25
Trying...
Connected to bagate.verizon.com.
Escape character is '^]'.
220 smtpirv2.verizon.com ESMTP Sendmail 8.13.3/8.13.3; Thu, 23 Jul 2009 09:05:28 -0500 (CDT)


============================================

msphnyc1ROOT:telnet bagate.verizon.com 25
Trying...
Connected to bagate.verizon.com.
Escape character is '^]'.
220 smtpirv2.verizon.com ESMTP Sendmail 8.13.3/8.13.3; Thu, 23 Jul 2009 09:05:32 -0500 (CDT)
Mel Burslan
Honored Contributor

Re: Sendmail Problem - host name lookup failure

one more test please:

echo test | sendmail -v you@someplace.com

please post the detailed output of this command. It is very strange that you have access to mail relay and still not able to send mail.
________________________________
UNIX because I majored in cryptology...

Re: Sendmail Problem - host name lookup failure

msphbos0ROOT:echo test | sendmail -v you@someplace.com
you@someplace.com... Connecting to bagate.verizon.com via relay...
220 smtpirv2.verizon.com ESMTP Sendmail 8.13.3/8.13.3; Thu, 23 Jul 2009 09:32:28 -0500 (CDT)
>>> EHLO msphbos0.verizon.com
250-smtpirv2.verizon.com Hello [172.26.46.12], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 50000000
250-DSN
250-DELIVERBY
250 HELP
>>> MAIL From: SIZE=5
250 2.1.0 ... Sender ok
>>> RCPT To:
250 2.1.5 ... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 n6NEWSZB027086 Message accepted for delivery
you@someplace.com... Sent (2.0.0 n6NEWSZB027086 Message accepted for delivery)
Closing connection to bagate.verizon.com
>>> QUIT
221 2.0.0 smtpirv2.verizon.com closing connection

=========================================


msphnyc1ROOT:echo test | sendmail -v you@someplace.com
you@someplace.com... Deferred: Name server: bagate.verizon.com: host name lookup failure
Mel Burslan
Honored Contributor

Re: Sendmail Problem - host name lookup failure

it is obvious from the combination of messages above that "name lookup failure" message is bogus as far as the OS goes. On the other hand upon a little more careful reading of your previous messages, I have noticed you do not have any sendmail cumulative patch on the NY server, which might be the cause of your woes.

Since hpux 10.20 is out of support now, I am not sure if you can find this patch somewhere but, almost certainly you will need it. Try digging up your old patch CD's and tapes and try to locate a sendmail cumulative patch and then apply it.
________________________________
UNIX because I majored in cryptology...
Vinod Kumar Yadav
Trusted Contributor

Re: Sendmail Problem - host name lookup failure

Hi,

In the most environments a smtp relay server is provided for send a email.

You take the IP address or host name of the server for accept mail from your server then.

Edit /etc/mail/sendmail.cf

Change DS to:

DSname_of_smtp_relay_server

or

DSIP address of smtp relay server

ex

DS telcon.co.in

/sbin/init.d/sendmail stop
/sbin/init.d.sendmail start

Then check few thing for sending the mail sucessfully.

Check the permission of the files related sendmail /var/spool/mqueue or check the
/etc/resolv.conf & Please check the sendmail services running.

root # ps -ef | grep -i sendmail
root 1700 1 0 Jul 11 ? 0:04 sendmail: accepting connections
root 29011 23487 0 16:13:46 pts/tb 0:00 grep -i sendmail

root # ls -ld /var/spool/mqueue
drwxr-xr-x 2 root bin 1024 Jul 13 16:13 /var/spool/mqueue

root # ls -ld resolv.conf
-rw-r--r-- 1 root sys 110 Jun 16 2007 resolv.conf

Try with Permission send mail & check the log /var/adm/syslog/mail.log


Thanks
Vinod Kumar Yadav
Jai Shiv Shankar