When trying to send an email via Sendmail using the server's IP address to make the SMTP connection (rather than localhost) I get this message in the headers "may be forged" in brackets after the IP address. From what I can see the rDNS is configured correctly:

[root] nslookup ip.ad.dr.es

Non-authorative answer

es.dr.ad.ip.in-addr,arpa name = fqdn.domain.com

[root] dig -t a fqdn.domain.com

fqdn.domain.com IN A ip.ad.dr.es

In /etc/hosts, I have this listed: fqdn.domain.com localhost.localdomain localhost

Should I have fqdn.domain.com against the actual external IP address in .etc/hosts? Or is there a problem elsewhere?


  • What is the exact command you are using to send the message? – einstiien Feb 10 '10 at 18:47
  • I'm using PHP to send the email directly via SMTP. – liquorvicar Feb 10 '10 at 19:01

What OS is this? I've had issues on Debian/Ubuntu in the past where the kernel tries to be clever - if you connect to the external IP address on the same server that IP is assigned to, it actually routes it through the localhost adapter.

This issue had me stumped for ages when I was setting up a firewall - I was only allowing traffic in on the external adapter, but the firewall was blocking any requests made from that machine - turns out it was routing it through localhost which the firewall had been told to block.

In your case what you end up with is sendmail receiving the connection on localhost ( but the EHLO stating the external ip.ad.dr.es - hence thinking its forged.

Just a shot in the dark, may not apply to your case. If you've got another server with sendmail available, try getting that one to connect to the external IP address on this sendmail server.

  • The OS is RHEL5. I can connect from an almost identical RHEL5 server and relay through this sendmail instance. It's only connections initiated from this server to itself using it's external IP that have problems. – liquorvicar Feb 10 '10 at 19:01

Ok, I have resolved this. it was the fact that the FQDN was listed in /etc/hosts against the localhost IP ( Removing the FQDN from that line and adding a new line with the external IP and the FQDN solved it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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