postfix and dns configuration
I've been having problems the last week with setting up postfix to be able to send mail without it being flagged as spam or completely rejected by other mail servers. I believe it mainly involves with my DNS settings and how I have my hostname set up. Here are my configuration files:
main.cf Code:
broken_sasl_auth_clients = yes Code:
$TTL 86400 Code:
This is handled by my colo provider. This is what dnsstuff.com returns for my reverse zone. Code:
# hostname --short Code:
# telnet localhost 25 This problem has just been fustrating me for the past week and I've tried various things from google searches and the gentoo forums with no avail. It would be great if I can get to the point that my mail no longer gets flagged as spam by providers such as gmail. |
My question would be: Are you using a DHCP address with your broadband account with your ISP? This would be one reason you're being flagged as a spammer. Most ISP's and major mail servers with accounts like Yahoo, MSN and Gmail all reject mail servers that have DHCP connections as they are most likely an open relay for spammers.
|
The server is a colo box housed in a datacenter, so no I'm not using a DHCP address.
|
Quote:
Other lists are http://www.spamhaus.org/ and http://www.spamcop.com/ to name just a few. Also if you can provide a few headers of returned mail, that might give some insight of the problem. |
Just checked those out, I'm not on any of those lists. Here is a header from a message in gmail that ends up flagged as spam. This message was sent with the php mail() method from the webserver on the same box.
Code:
Delivered-To: myGmailAccount@gmail.com |
Does any other service flag it? I'm sure with gmail you can flag a message as not being spam. Perhaps they've never seen this domain so that's why it's being flagged for some reason.
|
I got some friends to help out with it with their email addresses. All the gmail and hotmail people got it as spam. Yahoo did not flag it as spam. I don't have any "non-major" email accounts I can try it with.
|
Quote:
|
Mail servers do perform reverse lookups to revalidate a sending MTA's domain or FQDN and it rejects those that
doesn't resolve properly. If it doesn't resolve, this is what will be shown. @webmaster:~$ host your.internet.ip.add Host your.internet.ip.add.in-addr.arpa not found: 3(NXDOMAIN) This one next is what should be expected. @webmaster:~$ host your.internet.ip.add your.internet.ip.add.in-addr.arpa domain name pointer your.domain.com. ---------- GANI |
My DNS does resolve correctly when I use dnsstuff.com.
I was able to test it with a non major public email provider. I sent a test email to my work email, which has pretty tight spam protection and it arrived in my mail box just fine. So it seems that gmail and hotmail are the problems and not my smtp server. I would assume talking with hotmail/gmail would be the only way to get this resolved... if that's even possible. |
On thing is that your envelope sender does not match the body sender. The routing information (rfc2821) is for apache@mydomain.com, but your body sender (rfc2822) is user1@virtual-domain1.com. Some anti-spam techniques compare the envelope information with that in the body and give it a higher spam score if the addresses do not match.
|
I've tried it with both matching (apache@mydomain.com for the envelope and body) and it still ends up getting flagged as spam. I've run out of ideas I could try. Gmail and hotmail are the only ones I'm finding to have issues, no other mail server seems to flag it. I have no idea what other techniques hotmail and gmail could be using that other mail servers are not, such as yahoo. The SPF entry was newest addition which I added a week ago to my DNS zone.
|
All times are GMT -5. The time now is 03:18 PM. |