Hi,
I am having a problem sending mail to specific servers that do not allow localhost.localdomain in HELO/EHLO.
The response I get is:
<<< 501 5.0.0 Disallowed name in HELO/EHLO: localhost.localdomain 554
5.0.0 Service unavailable
My inbound mail server tells me this:
Action: failed
Status: 5.5.0
Diagnostic-Code: SMTP; 501 5.0.0 Disallowed name in HELO/EHLO: localhost.localdomain
Last-Attempt-Date: Tue, 22 Apr 2003 14:49:33 -0600
So, trying to figure this out, I wanted to see the EHLO part on the command line, and I get this:
[rnovick@windhorse rnovick]$ mail -v randy.novick@dralasoft.com
Subject: Test
test
.
Cc:
randy.novick@dralasoft.com... Connecting to localhost.localdomain. via relay...
220 localhost.localdomain ESMTP Sendmail 8.12.5/8.12.5; Wed, 23 Apr 2003 10:43:5
7 -0600
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello windhorse [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<rnovick@localhost.localdomain> SIZE=51
250 2.1.0 <rnovick@localhost.localdomain>... Sender ok
>>> RCPT To:<randy.novick@dralasoft.com>
>>> DATA
250 2.1.5 <randy.novick@dralasoft.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 h3NGhvNi012463 Message accepted for delivery
randy.novick@dralasoft.com... Sent (h3NGhvNi012463 Message accepted for delivery
)
Closing connection to localhost.localdomain.
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
Just looking at the transcripts that others have posted, I do notice that some folks have a hostname in the 220 line and others have what I have -- localhost.localdomain.
My question is this: where does the localhost.localdomain come from? -- is it read from /etc/hosts? I have ruled out the Cwlocalhost.localdomain line at the bottom of sendmail.mc, but am stumped about the other possibilities. I haven't found a resource that says where the hostname is taken from in the 220 handshake. Is anyone familiar with this config?
I am under some time pressure for this fix, so any immediate help/advice would be welcome and appreciated.
Thanks,
-- R
I am having a problem sending mail to specific servers that do not allow localhost.localdomain in HELO/EHLO.
The response I get is:
<<< 501 5.0.0 Disallowed name in HELO/EHLO: localhost.localdomain 554
5.0.0 Service unavailable
My inbound mail server tells me this:
Action: failed
Status: 5.5.0
Diagnostic-Code: SMTP; 501 5.0.0 Disallowed name in HELO/EHLO: localhost.localdomain
Last-Attempt-Date: Tue, 22 Apr 2003 14:49:33 -0600
So, trying to figure this out, I wanted to see the EHLO part on the command line, and I get this:
[rnovick@windhorse rnovick]$ mail -v randy.novick@dralasoft.com
Subject: Test
test
.
Cc:
randy.novick@dralasoft.com... Connecting to localhost.localdomain. via relay...
220 localhost.localdomain ESMTP Sendmail 8.12.5/8.12.5; Wed, 23 Apr 2003 10:43:5
7 -0600
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello windhorse [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<rnovick@localhost.localdomain> SIZE=51
250 2.1.0 <rnovick@localhost.localdomain>... Sender ok
>>> RCPT To:<randy.novick@dralasoft.com>
>>> DATA
250 2.1.5 <randy.novick@dralasoft.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 h3NGhvNi012463 Message accepted for delivery
randy.novick@dralasoft.com... Sent (h3NGhvNi012463 Message accepted for delivery
)
Closing connection to localhost.localdomain.
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
Just looking at the transcripts that others have posted, I do notice that some folks have a hostname in the 220 line and others have what I have -- localhost.localdomain.
My question is this: where does the localhost.localdomain come from? -- is it read from /etc/hosts? I have ruled out the Cwlocalhost.localdomain line at the bottom of sendmail.mc, but am stumped about the other possibilities. I haven't found a resource that says where the hostname is taken from in the 220 handshake. Is anyone familiar with this config?
I am under some time pressure for this fix, so any immediate help/advice would be welcome and appreciated.
Thanks,
-- R