troubleshooting sending email

From: sreenath sarikonda (sreeredhat@yahoo.com)
Date: Mon Aug 30 2004 - 11:52:54 EDT


Hello Gurus,
           I am trying to send email the output of a
cron job. This works on all the machines except one. I
have the same configuration on all the machines( I
don't know about mail though).In /etc/hosts we have
the name of our exchange server(mailhost) and its
ipaddress. When I do

/usr/lib/sendmail -v -s "test" user@domain.com
</dev/null
____________________________________________________
domain.com: Name server timeout
user@domain.com... Transient parse error -- message
queued for future delivery
test... Connecting to local...
220 link LMTP ready
>>> LHLO link.domain2.com
250-link
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 PIPELINING
>>> MAIL From:<root>
250 2.5.0 ok
>>> RCPT To:<test>
250 2.1.5 ok
>>> DATA
354 go ahead
>>> .
250 2.1.5 test OK
test... Sent
Closing connection to local
>>> QUIT
221 2.0.0 bye
_______________________________________________________

However on a different machine with same configuration
test... Connecting to local...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
220 arthur LMTP ready
>>> LHLO machine.domain.com
250-machine
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 PIPELINING
>>> MAIL From:<root>
250 2.5.0 ok
>>> RCPT To:<test>
250 2.1.5 ok
>>> DATA
354 go ahead
>>> .
250 2.1.5 test OK
test... Sent
user@domain2.com... Connecting to mailhost.domain.com
via relay...
220 postal.domain.com ESMTP Server (Microsoft Exchange
Internet Mail Service) ready
>>> EHLO machine.domain.com
250-postal.domain.com Hello [local IP address]
250-XEXCH50
250-HELP
250-ETRN
250-DSN
250-SIZE 15360000
250-AUTH LOGIN
250 AUTH=LOGIN
>>> MAIL From:<root@machine.domain.com>
250 OK - mail from <root@machine.domain.com>
>>> RCPT To:<user@domain2.com>
250 OK - Recipient <user@domain2.com>
>>> DATA
354 Send data. End with CRLF.CRLF
>>> .
250 OK
user@domain2.com. Sent (OK)
Closing connection to mailhost.domain.com
>>> QUIT
221 closing connection
Closing connection to local
>>> QUIT
221 2.0.0 bye

both the systems dont have any name server
specified.Mconnect command works the same on both the
systems. I checked previous postings but could not
troubleshoot. Thank you in advance.

Sree.

                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:22 EDT