procmail
[Top] [All Lists]

Filter all (in/out) messages of a user

1996-12-10 11:05:54
Hello.

I have to do the following filter :

  1 - All e-mail sent by a user must be sent to the original destination
and to an other address (always the same, eg. : boss(_at_)domain(_dot_)fr).

  2 - All e-mail received by this user must go to his message box and to
the same other address.

I know i can easily do the second filter with procmail by adding a .forward
in the user home directory and a rule in /etc/procmailrc which looks at To:
field.

But i would want to know if the first filter is possible with procmail and
if i then must install procmail as a mailer by modifying the sendmail.cf ?
And how to do that (especially how to write the good rule) ?
Or would it be simpler to edit directly the rules of sendmail.cf and not
use procmail ?

Thanks you very much.

Stephane.

--------------------------------------------------------
--> http://www.lituus.fr/stephane
- #include "std-disclaimer.h"
- This message not to be sent over the Microsoft Network


<Prev in Thread] Current Thread [Next in Thread>
  • Filter all (in/out) messages of a user, Stephane Legrand <=