On Mon, 12 Jul 1999 16:27:46 -0400, "Russell D. Weiss"
guess this is the option I'm going to look into. I'm sure I also have to
worry about Cc: and Bcc: fields. Correct me if I'm wrong.
The only way to do it right is to get Sendmail to pass in the envelope
information. That done, the rest is trivial (and indeed trivial enough
to make Procmail rather redundant). Anything else is going to be more
or less broken.
I'm pretty set on doing it through procmail. First of all, sendmail
is handling mail for the entire machine, and I'd rather not do too
much with sendmail because there are a lot of users already
depending on it for delivery. I'm also sendmail illiterate, despite
Perhaps somebody on the list can come up with a documented and tested
virtusertable (or mailertable) solution. It should be a minor change,
and not something that should affect delivery to other domains in any
A quick look at the cf/README file tells me that the following should
work with MAILER(procmail) and FEATURE(mailertable):
Then in /etc/procmailrcs/host.com do
! -oi -f $1 `perl-script $2`
where perl-script returns the correct forward address for the user id
passed in on the command line. (This was basically stolen directly
from an example on Sendmail.org.)
I recall reading something in the Sendmail FAQ about in which order
you have to put FEATURE(mailertable) and MAILER(procmail) -- probably
the MAILER definition first, but check out http://www.sendmail.org/
for verification and more information.
This link <http://www.qz.to/~eli/faqs/addressing.html> didn't work
when I went to it, though maybe the site is only temporarily down.
The machine seems to be off-line from time to time. An alternate
location for the FAQ is <http://www.faqs.org/faqs/mail/addressing/>
but its purpose here is mainly to dissuade you from trying to decode
the headers when in reality they might not even contain the
information you want.
/* era */
Somebody in a Swedish Unix newsgroup also said that MAILER(procmail)
would be a good (base for a) solution to filtering outbound mail. Any
comments from the Sendmail gurus on the list?
Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition