Postfix has some nice options to restrict client accesses with respect to DNS/IP address setup and helo
names (documentation). For example one can instruct postfix to reject clients if
- the
helo
argument is a malformed domain - the
helo
argument is not a fully qualified domain name - the IP address has no reverse domain lookup entry
- the domain from the reverse lookup does not point to the client's IP address
- the domain has a MX entry
At least in my observation these measures are quite successful against some amount of spam.
What I am missing is a more strict reject option that works like this:
- reject if the DNS lookup of the
helo
argument does not match the client's IP address
AFAICS, there is no explicit option to configure this restriction. But perhaps there are other ways to configure that behavior with postfix?
reject_unknown_hostname
. I'm sure you can achieve checking DNS consistency with policy service. – Scyld de Fraud Sep 27 '14 at 15:08reject_unknown_client_hostname
,reject_unknown_helo_hostname
,reject_non_fqdn_helo_hostname
and others. This is still very effective against spammers. So much so I don't need a more strict reject option, really. – maxschlepzig Dec 27 '19 at 19:36