I will be changing domains and would like to send out an auto reply to those that send an email to
my old domain email address. Below is my email address setup and my current .procmailrc. Any help
will be greatly appreciated.
Thanks,
C. Wilson
Alias setup:
test(_at_)olddomain(_dot_)com --> test(_at_)localdomain
test(_at_)newdomain(_dot_)com --> test(_at_)localdomain
Here's my current .procmailrc which I though would work:
SHELL=/bin/sh # for other shells, this might need adjustment
:0
# Perform a quick check to see if the mail was addressed to us
# (specifically, DIRECTLY to us, not Bcc: like a mailing list, or simply
# Cc: (for informational/filing purposes)
* $^To:.*\<$\LOGNAME\>
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
# Mail loops are evil
* !^X-Loop: test1(_at_)localdomain
:0
* ^X-Envelope-to: test(_at_)olddomain(_dot_)com
{
:0c
| (/usr/bin/formail -rI"Precedence: junk" \
-I"Subject: Change Of Address Notice" \
-A"X-Loop: test1(_at_)localdomain" ; \
cat $HOME/info.txt ) \
| $SENDMAIL -oi -t -f test(_at_)newdomain(_dot_)com
____________________________________________________________
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