procmail
[Top] [All Lists]

Mail Redirection need help!

2004-11-29 18:45:55

Hello 

 

Example (What we are supposed to do)- 

 

Take three E-mail ids one(_at_)yahoo(_dot_)com, two(_at_)consulting(_dot_)com, 
three(_at_)bullhorn(_dot_)com(_dot_) Aim is, whatever mail is coming from 
one(_at_)yahoo(_dot_)com to two(_at_)consulting(_dot_)com it will be redirected 
to three(_at_)bullhorn(_dot_)com (where the three(_at_)bullhorn(_dot_)com will 
see that the mail is coming to him only i,e in that mail "From" field will have 
one(_at_)yahoo(_dot_)com and "To" field will have three(_at_)bullhorn(_dot_)com

 

Our Setup:-

We are running qmail (version qmail-1.03) mail server on Red Hat Linux 7.2 

 

We Tried:-

1) A script 

 

| /usr/bin/formail -i ''To:three(_at_)bullhorn(_dot_)com' |/usr/sbin/sendmail 
-oi -t 

 

was written and placed in one of the configuration file (.qmail) of qmail, It 
worked, but the problem was with "Cc" address field and "Bcc" address field i,e 
if two(_at_)consulting(_dot_)com ( any address from our domain on which a 
redirection is set) is placed in "Cc" or "Bcc" field, a mail loop will be there 
and we will be redirecting infinite mails!

 

2) As a Second solution Procmail was used and a script was written in 
.procmailrc file, 

:0 

* !^X-Loop:two(_at_)consulting(_dot_)com

|formail -i "To:three(_at_)bullhorn(_dot_)com" | /usr/bin/sendmail -oi -t

 

also .qmail was configured to use procmailrc file, but now the problem was, 
everything is done but the sender of the mail is getting a bounce back message 
saying ?This mail is looping so the delivery was stopped?, though the receiver 
is getting the mail as per our requirement.I dont want this bounce back message 
to go there.

 

Can you suggest any solution for my problem?? 

Bhagwan Dass


                
---------------------------------
Do you Yahoo!?
 Meet the all-new My Yahoo! ? Try it today! 

____________________________________________________________
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>