E-Mail sent from my CentOS 6 being flagged as spam
9 Replies
@hardwire:
Any suggestions?
Ummmm….maybe provide some actual details? (although Mr.Nod's is a good guess)
Email marked as spam is normally a result of:
o Invalid mail server communication
o Improper use of headers
o Syntax errors in headers
o Improper HELO
o Invalid or improper rDNS
o Blocked or marked IP
o Poor reputation of host
o Improper SPF setting
o Incorrect DKIM Signature
…
If you want to send a PM, I can provide you with a test email address that you can send to to see what the issues might be.
By PM'ing the info required to solve the problem, it means that all future readers that come across this thread via key word search are left hanging.
Either publicly provide the info required to SOLVE YOUR PROBLEM, or if your privacy is so important, hire someone to fix it for you and keep it off a community support forum.
I have used PHPMailer API to make this work (just like to share it to this thread). Anyway, some tips from Dweeber (in our private message):
Received: from hostname.domainname.com (li311-99.members.linode.com. [178.79.111.11])
by mx.google.com with ESMTPS id 39si911193wet.123.2012.06.02.19.55.45
(version=TLSv1/SSLv3 cipher=OTHER);
Sat, 02 Jun 2012 19:55:45 -0700 (PDT)
Make sure that hostname.domainname.com has an A record.
The rDNS for 178.79.111.11 points to hostname.domainname.com
All email addresses used by the mail system need to be valid including the From (Envelope Sender), From, Reply-To headers.
Server generated scripts can generate perfectly formatted and fully RFC compliant email. Keys are including proper
o Date headers
o Valid Message-ID headers
o Proper Envelope Senders
telnet localhost 25
if you get back:
[root@mailserver ~]# telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Then you need to set your hostname in /etc/config/network and in /etc/hosts
You have it right when a telnet to port 25 EHLOs your domain name, NOT localhost.localdomain
I'm sorry I can't be more help, It was several months ago that I solved this. I'm surprised, given how common this is, that this is not better documented.
THEN you won't have any more trouble with emails in Centos.