I have the following recipe which works.
It delivers the message to the original recipient
and replies to the message.
The auto reply message contains the
From address of root(_at_)mailhost(_dot_)sss(_dot_)newdomain(_dot_)com(_dot_)
I want the From: address to read
"From: Postmaster <postmaster(_at_)newdomain(_dot_)com>"
but can not figure hot how to cause this to happen.
The one comment line in the recipe is my attempt.
Any suggestions?
:0 HB
* ^received:(_dot_)*(_at_)olddomain\(_dot_)com
{
:0 c:
$DEFAULT
:0 HB
#| (formail -i"From: Postmaster <postmaster(_at_)newdomail(_dot_)com>"
-brt;\
| (formail -brt ;\
echo "Please be aware, this olddomain.com address will not" ;\
echo "be supported in the future. Please obtain the" ;\
echo "correct E-mail address from the recipient of" ;\
echo "this message. The correct address will contain" ;\
echo "the newdomail.com domain." ;\
echo "" ;\
echo "The original messages was delivered to $ATO." ;\
echo "" ;\
echo "Thank you for your coorperation." ;\
) | $SENDMAIL -oi -t
}
--
Keep Well
=-=-=-=-=
Marshal
=-=-=-=-=
:0 HB
* ^received:(_dot_)*(_at_)conley\(_dot_)com
{
:0 c:
$DEFAULT
:0 HB
#| (formail -i"From: Postmaster <postmaster(_at_)emc(_dot_)com>" -brt;\
| (formail -brt ;\
#| (formail -rt ;\
echo "Please be aware, this conley.com address will not" ;\
echo "be supported in the future. Please obtain the" ;\
echo "correct E-mail address from the recipient of" ;\
echo "this message. The correct address will contain" ;\
echo "the emc.com domain." ;\
echo "" ;\
echo "The original messages was delivered to $ATO." ;\
echo "" ;\
echo "Thank you for your coorperation." ;\
#echo "$TOADDR_" ;\
) | $SENDMAIL -oi -t
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail