Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

I have a Debian Wheezy server with several websites with separate domains. Some of these websites uses Wordpress and in turn uses PHP's mail function to send mail.

I installed "sendmail" to be able for the server to send mail from PHP. We use Google Apps for our customers, so no need to setup a regular mail server.

Now the server is blacklisted at www.spamhaus.org and get this message:

This IP address is HELO'ing as "localhost.localdomain" which violates the relevant standards (specifically: RFC5321).

I have tried to follow the instructions on these websites with no luck: http://www.cardiothink.com/downloads/README.spamhaus-and-blocked-email.html http://centosbeginer.wordpress.com/2011/07/12/how-to-remove-ip-in-cbl-spamhaus/

Can you please help me figure out how to configure the server?

File: /etc/hosts

# nameserver config
# IPv4
127.0.0.1 somedomain.dk
xxx.xxx.xxx.xxx server.somedomain.dk bigby
#
# IPv6
::1     ip6-localhost ip6-loopback
xxxx::0 ip6-localnet
xxxx::0 ip6-mcastprefix
xxxx::1 ip6-allnodes
xxxx::2 ip6-allrouters
xxxx::3 ip6-allhosts
xxxx:xxx:xxx:xxxx::2  Debian-76-wheezy-64-minimal

File: /etc/hostname

bigby

somedomain.dk is a made up domain. In reality another domain name I have on this server along with other domains.

bigby is also a made up name. It is also something else in reality.

share|improve this question

marked as duplicate by Sven, Michael Hampton Aug 19 at 12:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 1 down vote accepted

Looks like you're sending out a HELO with the wrong name.

Try the solution used for the following post: How to Specify outgoing HELO with sendmail?

If this doesn't help, can you provide more information about your sendmail configuration?

share|improve this answer
    
Seems to work so far. used "telnet localhost 25" and then "ehlo localhost". Seems right. Have delisted at spamhaus and now I will see if it works. Will get back as soon as I know. –  Cudos Aug 19 at 9:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.