procmail
[Top] [All Lists]

procmail recipe

2006-10-27 03:42:13
Hi,

I would like to make a recipe which works like this :

Each time A(_at_)domain(_dot_)com receive a mail from 
Z(_at_)somewhere(_dot_)com, B(_at_)domain(_dot_)com 
get a copy of this mail.
Each time B(_at_)domain(_dot_)com receive a mail from 
Z(_at_)somewhere(_dot_)com, A(_at_)domain(_dot_)com 
get a copy of this mail.


i made this :


:0 c
* ^From(_dot_)*Z(_at_)somewhere(_dot_)com
* ^To(_dot_)*B(_at_)domain(_dot_)com
  ! A(_at_)domain(_dot_)com

:0 c
* ^From(_dot_)*Z(_at_)somewhere(_dot_)com
* ^To(_dot_)*A(_at_)domain(_dot_)com
  ! B(_at_)domain(_dot_)com


My problem is, that each time a person get a copy, he receives a mailer 
daemon message because there is a loop (for example if B gets the copy, 
he will gets a loop for a mail from B to B).

can someone help with it plz ?

Thx

Franck




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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