I am experiencing an issue where my CentOS 5.6 (Final) VM running on Windows 7 has stopped sending emails from my PHP code.
I’m confident this isn’t a coding issue as I have the exact same code running in my office and emails send correctly from there, hence why I believe this to be a networking/configuration issue.
/etc/hosts/ file on my VM I have the following:
127.0.0.1 localhost.localdomain localhost 192.168.0.9 crmpicco.co.uk m.crmpicco.co.uk dev53.localdomain
When I run
setup on my VM the DNS configuration is set to
dev53.localdomain and my Primary DNS is
/var/log/maillog files I see a lot of this sort of thing:
Nov 19 14:36:58 dev53 sendmail: qAJEawI7021696: from=<email@example.com>, size=12858, class=0, nrcpts=1, msgid=<1353335817.9103820024efb30b451d006dc4ab3370@PHPMAILSERVER>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Nov 19 14:36:58 dev53 sendmail: qAJEawvd021693: firstname.lastname@example.org, email@example.com (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=42681, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qAJEawI7021696 Message accepted for delivery) Nov 19 14:36:59 dev53 sendmail: qAJEawI7021696: to=<firstname.lastname@example.org>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=132858, relay=mailserver.fletcher.co.uk. [126.96.36.199], dsn=5.0.0, stat=Service unavailable
Is this likely to be a configuration issue? Where should I be looking for a solution to this problem? Also, do I need to define a FQDN?
Nov 19 14:36:59 dev53 sendmail: qAJEawI7021696: to=<email@example.com>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=132858, relay=mailserver.fletcher.co.uk. [188.8.131.52], dsn=5.0.0, stat=Service unavailable
The remote mail server at 184.108.40.206 couldn’t be reached. Make sure you can actually reach this mail server from where you are (i.e. outgoing mail isn’t blocked by your ISP) and that the server isn’t rejecting connections from your address (i.e. the server refuses to talk to you).
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.