Just copy and passed the DISCARD contents into banned_tlds?
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Sebastian Nielsen Sent: Friday, February 19, 2016 3:50 PM To: postfix-users@postfix.org Subject: SV: Blocking TLDs smtpd_sender_restrictions = check_sender_access pcre:/etc/postfix/banned_tlds banned_tlds: /\.bid$/ DISCARD /\.top$/ DISCARD /\.xyz$/ DISCARD /\.date$/ DISCARD /\.faith$/ DISCARD /\.download$/ DISCARD Problem solved. Från: owner-postfix-us...@postfix.org <mailto:owner-postfix-us...@postfix.org> [mailto:owner-postfix-us...@postfix.org] För Wolfe, Robert Skickat: den 19 februari 2016 22:36 Till: postfix-users@postfix.org <mailto:postfix-users@postfix.org> Ämne: Blocking TLDs Greetings all! This is actually my first posting to the mailing list, but have actually been following along on a regular basis and have learned quite a bit of good things (and bad things *smiles*) about Postfix. Unfortunately, I have one question that I am hoping someone here on the mailing list can answer. I get a LOT of emails from domains that have *.download and *.xyz and their TLDs and I was wondering if there was a way in Postfix that I could block emails that are coming in from these (and other) TLDs at the connection level?