procmail
[Top] [All Lists]

Changing the Address Part II

2001-07-03 23:56:25


I believe that I left one important thing out, this is an external e-mail
router. It has no mail on it, so I either need to change people's domain names
on this or find a way to set up rules for each user (I am using this in a
mailertable in sendmail with a virtual user table). Adding the individual
translations would be the least preferable, but I am sure that it can be done. I
would rather have this be one recipe for the whole domain and just have the
user's name in the address be a variable, or have the address go thru sed
somehow and get translated. Any suggestions? I hope that I have not made this
more confusing.


I have the recipe at the bottom (courtesy of Odhiambo Washington) which sends
notification that the domain name that a person has sent to is now invalid. This
sends the message back to the sender, but I need it to also forward it to the
intended person at their new domain address. (Mail comes in to
person(_at_)old(_dot_)domain(_dot_)com, the sender gets this message, but also 
it forwarded to
person(_at_)new(_dot_)domain(_dot_)com). I can only make it to forward the mail 
on to one account
(at the bottom). I can't get this to translate the address for me. Any help
would be appreciated.

Thank you,
Scott

:0 h c
| (formail -rt \
-I "Subject: E-mail address change!." \
-A "X-Loop: mailman(_at_)fsd(_dot_)com" \
-I "From: mailman(_at_)fsd(_dot_)com" ; \
echo "*************************************************" ; \
echo "*  Some message here                         *" ; \
echo "*************************************************" ; \

| $SENDMAIL -oi -t
:0 c
| /usr/local/bin/formail -rtzxTo: >> /var/log/auto_reply.log
:0
! tmp(_at_)fsd(_dot_)com



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Changing the Address Part II, Scott Pitsley <=