procmail
[Top] [All Lists]

Re: Altering From: in autoresponders

1999-08-15 18:26:09
Andreas =?iso-8859-1?Q?Bergstr=F8m?= <abergstr(_at_)halden(_dot_)net> writes:
I have an autoresponder which uses a From: line that
would most likely make the recipient wonder. Because
when an e-mail is sent to pgp(_at_)spambuster(_dot_)dhs(_dot_)org,
it is spambust(_at_)life(_dot_)eu(_dot_)org which responds, which I
don't want to. I have read through the FAQs, but I haven't
found anything.

From: or "From "?  The recipe you include below gives a From: address
of <pgp(_at_)spambuster(_dot_)dhs(_dot_)org> for me.  The "From " header will 
have the
address of whatever account this is being sent from, but that should be
fine, as it should only be used for bounces.


This is the recepie I am using:

:0
* ^TO_pgp@
* !^Subject:.*Re:
* !^FROM_DAEMON
* !^X-Loop: loop-control(_at_)spambuster\(_dot_)dhs\(_dot_)org
| (formail -r \
-A 'X-Loop: loop-control(_at_)spambuster(_dot_)dhs(_dot_)org' \
-I 'From: "Spambusters pgp server" <pgp(_at_)spambuster(_dot_)dhs(_dot_)org>' \
-I 'Subject: Autoresponder: Spambusters public pgp key' -X 'Subject:' \
echo "";\
cat $HOME/pgp.asc) | $SENDMAIL -oi -t

One comment: since the sender should be expecting a reply, you should
be using the -t flag with formail when generating the reply, so I would
suggest you change the action to start:

        | (formail -rt \
                -A 'X-Loop: ......


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>