At 13:17 2007-06-01 +0200, Marco Fioretti wrote:
Yesterday I discovered at
the following way to use procmail in a
virtual-domain-only environment (that is, no
system accounts for email recipients).
What do you think? Is it safe,robust, are there any weird
cases (one message going to more than one user?) where
it wouldn't work?
Your one gotcha is that the "virtual alias" syntax is likely to be MTA
specific. Sendmail has virtusertable, but that doesn't deliver directly to
programs, and the Sendmail aliases file doesn't include domain portions.
Recipient and alias expansion should deliver to each individual alias, so
you shouldn't have a problem with multiple recipients. That's because the
MTA is handling recipient expansion from the SMTP envelope data -- this is
the crux of the "Procmail is not an MTA" mantra, where the addressing
information Procmail sees is merely whatever is in the headers, and can't
be trusted to be the same as the envelope.
I do this very sort of thing for a number of special accounts on some of my
servers, and also for mailing list handling - mailing lists themselves are
rarely actual accounts - they're piles of aliases to a program delivery
with list-specific options.
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
procmail mailing list Procmail homepage: http://www.procmail.org/