Am 31.10.2014 um 10:25 schrieb Tiemo Kieft:
Hi,
I’ve set up Postfix on my CentOS 7 VPS last week, serving mail for two domains.
I’m experiencing problems with some mail hosts marking my mail as spam. The
mail that is coming from the primary domain (the one that the PTR of the
servers IP points to) is sometimes marked as spam, while the mail from the
second domain is constantly marked as spam.
I’ve run both domains through all the tools at mxtoolbox.com and it reports
that everything is OK.
I’ve posted a lengthy explanation of the setup on Super User, which can be
found here:
https://superuser.com/questions/832749/some-mail-from-newly-setup-mailserver-flagged-spam-by-gmail
The first domain (domain1.com) is over a year old, the second domain is roughly
a week old.
In addition to the SU post, I put my configuration up on pastern:
http://pastebin.com/McGh8C6s
For the sake of completeness I’ll state the domain names so anyone can take a
look at the DNS config if need be:
domain1.com = infinitesimal.nl
domain2.com = isogram.nl
infinitesimal.nl. 300 IN TXT "v=spf1 a
include:infinitesimal.nl ~all"
isogram.nl. 300 IN TXT "v=spf1 mx
include:mailgun.org ~all"
* both are not identical
* the first one is broken - you include yourself
* A/MX turned out error prone
* hence i recommend using ipv4 notation (-all versus ~all non-strict)
rhsoft.net. 21599 IN TXT "v=spf1
ip4:91.118.73.0/24 ip4:89.207.144.27 ip4:62.178.103.85 -all"
_______________________________________________________________________________
* frankly - normally MX priority starts with 10 not 1
* i would also recommend a *hostname* instead just the domain
* smtp_helo_name should match the hostname / PTR - i doubt the
machine is called just like the domain (default si local hostname)
* so i would set all 3 to "mail.infinitesimal.nl" and hence the "mail"
it may be better handeled by spamfilters in case of PTR checks and
avoid false positives
;; ANSWER SECTION:
isogram.nl. 300 IN MX 1 infinitesimal.nl.
;; Query time: 94 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fr Okt 31 10:32:17 CET 2014
;; MSG SIZE rcvd: 69
[harry@srv-rhsoft:~]$ nslookup infinitesimal.nl
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: infinitesimal.nl
Address: 178.62.242.224
[harry@srv-rhsoft:~]$ nslookup 178.62.242.224
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
224.242.62.178.in-addr.arpa name = infinitesimal.nl.
Authoritative answers can be found from: