Hello
Example (What we are supposed to do)-
Take three E-mail ids one@yahoo.com, two@consulting.com, three@bullhorn.com. Aim is, whatever mail is coming from one@yahoo.com to two@consulting.com it will be redirected to three@bullhorn.com (where the three@bullhorn.com will see that the mail is coming to him only i,e in that mail "From" field will have one@yahoo.com and "To" field will have three@bullhorn.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@bullhorn.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@consulting.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@consulting.com
|formail -i "To:three@bullhorn.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!? The all-new My Yahoo! � Get yours free!
smartlist@lists.rwth-aachen.de