procmail
[Top] [All Lists]

Re: Changing the Address

2001-07-02 17:36:06
On Mon, 2 Jul 2001, Scott Pitsley wrote:

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

  Wouldn't a simple

    :0c
    ! new(_at_)address(_dot_)com

before the rest of your following recipe suffice? Or did I miss something
altogether?

sp> :0 h c
sp> | (formail -rt \
sp> -I "Subject: E-mail address change!." \
sp> -A "X-Loop: mailman(_at_)fsd(_dot_)com" \
sp> -I "From: mailman(_at_)fsd(_dot_)com" ; \
sp> echo "*************************************************" ; \
sp> echo "*  Some message here                         *" ; \
sp> echo "*************************************************" ; \
sp> 
sp> | $SENDMAIL -oi -t
sp> :0 c
sp> | /usr/local/bin/formail -rtzxTo: >> /var/log/auto_reply.log
sp> :0
sp> ! tmp(_at_)fsd(_dot_)com
sp> 
sp> 

-- 
      S.Toms - smotrs(_at_)mindspring(_dot_)com - www.mindspring.com/~smotrs
                   SuSE Linux v7.0+ - Kernel 2.2.18

Day of inquiry.  You will be subpoenaed.

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