Personally I have a test postfix server, so I try all my configs to confirm they do what I want. Use telnet to send an email to trigger the rule is my advice.
Also my REGEX example may not be the best solution. I got the idea from this line in my server, it's part of the virtual_alias_maps= setting. regexp:/etc/postfix/maps/subaddressing which is this /^(.*)\+(.*)@(.*).mydomain.dom/ ${1}@${3}.mydomain.com -ALF -Angelo Fazzina Operating Systems Programmer / Analyst University of Connecticut, UITS, SSG-Linux/ M&C 860-486-9075 -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Nikolaos Milas Sent: Monday, October 24, 2016 10:25 AM To: postfix users <postfix-users@postfix.org> Subject: Re: Blacklisting googlegroups On 24/10/2016 5:15 μμ, Fazzina, Angelo wrote: > Can't you use REGEX to write a rule to catch them, and then decide what you > want to do with those emails ? Would the following be valid? smtpd_recipient_restrictions = ... check_sender_access hash:/etc/postfix/blacklisted_senders header_checks pcre:/etc/postfix/blacklisted_maillists ... /etc/postfix/blacklisted_maillists /^Return-Path: <oursuperclub-members+bnc(.*)@googlegroups.com>/ REJECT Nick