On Fri, Sep 19, 2014 at 10:51:57AM -0400, Wietse Venema wrote:
> > I tried to avoid REDIRECT, as it applies to all recipients of a
> > message, which might include more than just the particular customer.
> > If no message is ever sent to the users who need this and others
> > at the same time, then REDIRECT may be simpler.
>
> I understand that the use case is testing and not delivering.
I was under the impression that the system in question was a
multi-tenant system in which some customers wanted delivery to a
single mailbox. And others wanted normal delivery.
Even simpler than REDIRECT or BCC with discard is virtual alias
rewriting:
virtual:
# Entire domain perhaps?
@example.com [email protected]
# Or recipients one at a time:
[email protected] [email protected]
[email protected] [email protected]
...
The key question is whether the input criterion is who the mail is
going to, or who the mail is coming from. If suppression of delivery
is for mail *from* particular senders, then REDIRECT is the (only)
way to go.
If you just want to reroute mail *to* particular recipients just
use virtual(5) aliases.
--
Viktor.