Combining header/body checks into a single action?

2018-12-24 Thread Bryan K. Walton
Is it possible to combine header/body checks in such a way: If /^(From|Return-Path):.*\b(user@testdomain\.org)\b/ ! /^Message-ID:.*@(testdomain\.org)/ Reject ... Essentially, I want to only reject a message if the From/Return-Path matches a specific email address AND the Message-ID doesn

Re: Combining header/body checks into a single action?

2018-12-24 Thread Wietse Venema
Bryan K. Walton: > Is it possible to combine header/body checks in such a way: > > If /^(From|Return-Path):.*\b(user@testdomain\.org)\b/ > ! /^Message-ID:.*@(testdomain\.org)/ > Reject ... That is documented as NOT POSSIBLE. if /pattern/flags endif If the input string matches /pat

whitelist for single reject

2018-12-24 Thread Michael Fox
I'm pretty sure I've seen this documented somewhere, but I can't find it. What I'd like to do is have a whitelist apply to only a specific reject. For example: smtpd_*_restrictions = . check_*_access . reject_. reject_...

Re: whitelist for single reject

2018-12-24 Thread Wietse Venema
Michael Fox: > I'm pretty sure I've seen this documented somewhere, but I can't find it. > > What I'd like to do is have a whitelist apply to only a specific reject. > For example: > > smtpd_*_restrictions = > . > check_*_access . > reject_. >