Re: silent drop from sender *unless* to...

2019-12-05 Thread Noel Jones
On 12/5/2019 9:31 AM, Jonathan Engbrecht wrote: 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. For

Re: silent drop from sender *unless* to...

2019-12-05 Thread Jonathan Engbrecht
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 wrote: > On 12/4/

Re: silent drop from sender *unless* to...

2019-12-04 Thread Noel Jones
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, *r

Re: silent drop from sender *unless* to...

2019-12-04 Thread Jonathan Engbrecht
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 gre

Re: silent drop from sender *unless* to...

2019-12-03 Thread Ralph Seichter
* Jonathan Engbrecht: > If From: f...@example.com > AND NOT To: (bar|baz|quux)@mydomain.com > DISCARD Milter-regex (https://www.benzedrine.ch/milter-regex.html) can do this, and more. The actual syntax for your example would be something like this (untested because I am typing from memory): di

Re: silent drop from sender *unless* to...

2019-12-03 Thread Noel Jones
On 12/3/2019 3:31 PM, Jonathan Engbrecht wrote: Can I make a header_check rule (or equivalent) somehow that does the following: If From: f...@example.com AND NOT To: (bar|baz|quux)@mydomain.com DISCARD header_checks operates on each single head

silent drop from sender *unless* to...

2019-12-03 Thread Jonathan Engbrecht
Can I make a header_check rule (or equivalent) somehow that does the following: If From: f...@example.com AND NOT To: (bar|baz|quux)@mydomain.com DISCARD