dont add the part of a domain name to blacklist

General eFa discussion
Post Reply
dunizia
Posts: 2
Joined: 01 Nov 2017 06:35

dont add the part of a domain name to blacklist

Post 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!
Zwabber
Posts: 69
Joined: 14 Feb 2016 21:26

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

Post by Zwabber »

Just add a rule to /etc/postfix/header_checks

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