On the other hand, it looks like the restrictions can be used as another way to whitelist, and in this case a specific user at a specific domain. Or am I reading this incorrectly. /etc/postfix/recipient_access: joe@my.domain permissive jane@my.domain restrictive
Original Message From: Christian Kivalo Sent: Tuesday, April 19, 2016 1:12 AM To: postfix-users@postfix.org Subject: Re: Policyd-spf and RBL white listing On 2016-04-19 08:52, li...@lazygranch.com wrote: > From what I can tell, if you whitelist a domain, the policyd-spf check > is skipped. Now I white listed domains to stop the RBL from blocking > them, but it would be nice to see if SPF passes. > > Am I right about the SPF being skipped? > > While I'm at it, can you whitelist specific users at a domain, that is > the full email address, or only the domain itself. You could move your RBL excludes to a restriction class smtpd_restriction_classes = rbl_exclude1, rbl_exclude2, ... rbl_exclude1 = check_client_access pcre:rbl_exclude1.pcre, reject_rbl_client zen.spamhaus.org, smtpd_recipient_restrictions = ... rbl_exclude1, ... See also http://www.postfix.org/RESTRICTION_CLASS_README.html -- Christian Kivalo