HELO output of sendmail

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
wzervas
Posts: 8
Joined: 2006/08/09 01:48:36

HELO output of sendmail

Post by wzervas » 2008/03/05 14:07:29

Hi,

I have sendmail, squirrelmail, and dovecot installed.
Our mail server is on a block list because the HELO sendmail sends is not the hostname but localhost.localdomain:

[code]The original message was received at Wed, 5 Mar 2008 05:37:42 -0800
from us.pdbinternational.com [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<helocheck@cbl.abuseat.org>
(reason: 550 HELO for IP 69.94.131.32 was "localhost.localdomain")

----- Transcript of session follows -----
... while talking to mail.cbl.abuseat.org.:
>>> DATA
<<< 550 HELO for IP 69.94.131.32 was "localhost.localdomain"
550 5.1.1 <helocheck@cbl.abuseat.org>... User unknown
<<< 503 valid RCPT command must precede DATA[/code]

in etc/hosts is the following:

127.0.0.1 localhost.localdomain localhost
69.94.131.32 us.pdbinternational.com us

and in sendmail.mc

LOCAL_DOMAIN(`us.pdbinternational.com')dnl

When I check the HELO output of sendmail with

echo "" | /usr/sbin/sendmail -d0.4

I get the correct answer

[code]# echo "" | /usr/sbin/sendmail -d0.4
Version 8.13.1
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT
Canonical name: us.pdbinternational.com
UUCP nodename: us.pdbinternational.com
a.k.a.: us
a.k.a.: localhost.localdomain
a.k.a.: localhost
a.k.a.: [127.0.0.1]

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = us
(canonical domain name) $j = us.pdbinternational.com
(subdomain name) $m = pdbinternational.com
(node name) $k = us.pdbinternational.com
========================================================

Recipient names must be specified[/code]


Does anybody know what is wrong?
How do I get sendmail to output the hostname instead of localhost.localdomain?

Any help is appreciated.

kentyler
Posts: 161
Joined: 2007/06/20 13:31:05
Location: Northeast Ohio
Contact:

Re: HELO output of sendmail

Post by kentyler » 2008/04/18 20:46:38

I'd think that there is a problem with your mc file.

/etc/mail/sendmail.mc:dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
/etc/mail/sendmail.mc:DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl


That may be in there and it may only be avaliable on the localhost ip.

Change that to 0.0.0.0 and it should work well.

Post Reply

Return to “CentOS 4 - Server Support”