On Mon, Aug 01, 2005 at 03:20:51AM +0100, Stephen Allen wrote:
I adapted your [David Tamkin's] idea and laid it out as below
I've done it like this so it's easier for me to change). It
seems to work except that I can't get the From: and To: fields
added. The message is delievered correctly, so the SENDMAIL part
is working, but the From: & To: are being set to my user default
rather than what I want as shown.
:0
* ^X-Original-To:(_dot_)test-support(_at_)rowyerboat\(_dot_)com
| formail -kz \
-X Subject: \
-X In-Reply-To: \
-X Content-Type: \
-X MIME-Version: \
-X Content-Transfer-Encoding: \
-X Content-Disposition: \
-X Message-ID: \
-X References: \
-A "From: Stephen Allen <mytest(_at_)rowyerboat(_dot_)com>" \
-A "To: kp(_at_)anotherdomain(_dot_)com" \
| $SENDMAIL "$SENDMAILFLAGS" \
kp(_at_)anotherdomain(_dot_)com
Try changing the -A to -I, in addition to using the -f option to
sendmail (with an address thereafter for the sender), the latter
point being a repeat of one I just wrote in a companion message
following up to David.
Good that he pointed out the need for an X-Loop check, as well.
Dallman
____________________________________________________________
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