> On 20 Sep 2016, at 21:10, [email protected] wrote:
>
> What is the simplest way to block a TLD?
Put the offending TLD in a map and have that map referenced through
check_sender_access and/or check_client_access.
ie
in main.cf:
smtpd_client_restrictions = permit_mynetworks
....
check_client_access hash:/etc/postfix/spamsources
mtpd_sender_restrictions = permit_mynetworks
....
check_sender_access hash:/etc/postfix/spamsources
and in /etc/postfix/spamsources:
xyz 500 This TLD sends spam - get lost.