procmail
[Top] [All Lists]

Re: Using Procmail on a Relay

2000-01-18 08:53:33
Jason Cook <jasonc(_at_)dsgtech(_dot_)com> writes:
Is it possible to use procmail on a mail relay.  I'm currently using exim on
the mail relay.  I would do this on the main mail server, but as its running
exchange, this isn't possible.  Any suggestions or pointers will be greatly
appreciated.

If you can configure exim to pass all messages through a given program,
passing the envelope sender and recipient(s) as arguments and can come
up with a way to recognize which messages have already been filtered,
then it should be doable.  When this is done with sendmail, the process
is something like:

a) sendmail gets a message for user <foo(_at_)bar>
b) sendmail passes off message to procmail with a recipient of
   <foo(_at_)bar(_dot_)procmail>.  This sendmail process is finished once that 
is
   done.
c) procmail does it's filtering.  If the message should be delivered it
   simply feeds it into a new sendmail process, passing through the
   altered address <foo(_at_)bar(_dot_)procmail>
d) sendmail, noticing the procmail psuedo-domain on the address, strips
   it back to <foo(_at_)bar> and performs the normal delivery sequence.

If you can do that sort of address alteration from inside exim, the
same procedure should work there.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>