Page 1 of 1

dont add the part of a domain name to blacklist

Posted: 01 Nov 2017 07:29
by dunizia
Hi! :)
I get spam from different subdomains *.date (for example 1.date, 2.date...). I need to add to the blacklist a domain "date" or zone. What is the syntax correct?
".date" not working

Thank you!

Re: dont add the part of a domain name to blacklist

Posted: 06 Nov 2017 14:44
by Zwabber
Just add a rule to /etc/postfix/header_checks

/^From:.*\@*.date/ DISCARD