static:discard is exactly what I needed. Thanks. This isn't a production system and we're just using this for testing a new application where we don't want users that aren't part of the test receiving email until we're ready to go live.
On Wed, 4 Dec 2019 at 15:29, Noel Jones <njo...@megan.vbhcs.org> wrote: > On 12/4/2019 1:55 PM, Jonathan Engbrecht wrote: > > thanks all. Looks like I can mostly do this with restriction > > classes, though the drop ends up being a 5xx reject rather than a > > silent drop, which is a bit too bad. > > > > tester = check_recipient_access > > hash:/etc/postfix/maps/privileged_recipients, *reject* > > * > > * > > being able to use "discard" here would be great, but doesn't appear > > to be possible > > You can use static:discard there. > > Caution: discard is a permanent action that loses data; use > sparingly. Reject is almost always more appropriate. > > > > -- Noel Jones >