Spot the difference - sendmail

Hi All,

Please take a look at the two output streams from a simple perl script below. All I'm trying to do is send a simple plaintext email using sendmail (8.12.4) on redhat 9.

The first one is my newer server. If I run it with sendmail's verbose switch on (-v) it runs - slightly slow, but it runs. Without the switch, it never seems to end.

The second one is on another server. It runs lightning fast, with or without the switch. Sendmail is older and it is redhat 7.2.

Looking for differences, I can see the responses from the smtp service are different like PIPELINING and AUTH etc, but I'm not sure if this is due to the different versions of sendmail or if it's a config issue.

I'd like my newer server to behave more like the older one, but with one exception. I don't want to relay via another one of our own mail servers (see *** ), but rather deal with the email and get rid of all responsibility.


[root@linuxNEWmailserver rcog]# perl Test2.cgi
James Fawcett <MyCorrectEmailAddress> ... Connecting to [127.0.0.1] via relay...
220 linuxNEWmailserver.MyDomain.com ESMTP Sendmail 8.12.8/8.12.8; Tue, 17 May 2005 17:25:04 +0100
>>> EHLO linuxNEWmailserver.MyDomain.com
250-linuxNEWmailserver.MyDomain.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@linuxNEWmailserver.MyDomain.com> SIZE=201 AUTH=root@linuxNEWmailserver.MyDomain.com
250 2.1.0 <root@linuxNEWmailserver.MyDomain.com>... Sender ok
>>> RCPT To:<MyCorrectEmailAddress>
>>> DATA
250 2.1.5 <MyCorrectEmailAddress>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 j4HGP4R2004352 Message accepted for delivery
James Fawcett <MyCorrectEmailAddress> ... Sent (j4HGP4R2004352 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 linuxNEWmailserver.MyDomain.com closing connection



[root@linuxwebserver web]# perl Test2.cgi
James Fawcett <MyCorrectEmailAddress> ... Connecting to linuxOLDmailserver.MyDomain.com. *** via relay...
220 linuxOLDmailserver.MyDomain.com ESMTP Sendmail 8.11.6/8.11.6; Tue, 17 May 2005 17:31:56 +0100
>>> EHLO linuxwebserver.MyDomain.com
250-linuxOLDmailserver.MyDomain.com Hello linuxwebserver.MyDomain.com [xxx.yyy.zzz.154], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From:<root@linuxwebserver.MyDomain.com> SIZE=201
250 2.1.0 <root@linuxwebserver.MyDomain.com>... Sender ok
>>> RCPT To:<MyCorrectEmailAddress>
250 2.1.5 <MyCorrectEmailAddress>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 j4HGVuN03671 Message accepted for delivery
James Fawcett <MyCorrectEmailAddress> ... Sent (j4HGVuN03671 Message accepted for delivery)
Closing connection to linuxOLDmailserver.MyDomain.com.
>>> QUIT
221 2.0.0 linuxOLDmailserver.MyDomain.com closing connection

 

 

 

 

Top