Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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:

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

File: /etc/hosts

# nameserver config
# IPv4 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 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 '14 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.

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 '14 at 9:41

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