On 09/24/2010 10:15 AM, Toni Mueller wrote:
So far, I see the following options:
* Add the affected domains to mydestination and switch them using the
alias mechanism. Very unwieldy, plus there is no easy way to drop
privileges while delivering email.
* Use a sieve script to copy such emails to special addresses which
are then handled according to the mechanism outlined above. Very
ugly and error prone, too.
* Use a different virtual_transport (which one?).
You've neglected the simplest (and most commonly used) solution:
* configure a non-existent (or unused) local domain, add it to
mydestination, and alias virtual users to addresses in that locally
delivered domain:
mydestination = unused.local.domain, localhost
virtual(5):
some-virtual-u...@virtual-domain al...@unused.local.domain
[,some-virtual-u...@virtual-domain] <-- to ensure delivery to the
original recipient as well
/etc/aliases:
alias: f...@bar, pipe:somewhere, mailbox.file, etc, whatever
Any address in that local domain can take advantage of full local(8)
alias and forward file processing, including delivery to commands or
pipes as the mail recipient user account.
--
J.