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 a closed test environment, you can tell postfix to discard any
mail that doesn't have a predefined delivery path.
# main.cf
default_transport = discard
http://www.postfix.org/ADDRESS_CLASS_README.html
-- Noel Jones
On Wed, 4 Dec 2019 at 15:29, Noel Jones <njo...@megan.vbhcs.org
<mailto: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