procmail
[Top] [All Lists]

Re: Autoresponse based on email address

2003-01-03 20:06:24
On Fri, 3 Jan 2003, David W. Tamkin wrote:

DWT> Ashley Kirchner is using this code recommended by Scott Wiersdorf,
DWT>
DWT> | >>>   :0 h c
DWT> | >>>   * ^TO_webmaster(_at_)pcraft(_dot_)com
DWT> | >>>   * !^FROM_DAEMON
DWT> | >>>   * !^X-Loop: webmaster(_at_)pcraft(_dot_)com
DWT> | >>>   | (formail -r -I"Precedence: junk" \
DWT> | >>>       -A"X-Loop: webmaster(_at_)pcraft(_dot_)com" ; \
DWT> | >>>
DWT> | >>>
DWT> | >          cat /path/to/message) | $SENDMAIL -t
DWT>
DWT> |     Thank you Scott.  I've added this to the top of my current recipe
DWT> | (which just adds subject tags) but it's not working.  My subject tagging
DWT> | still works, but messages send to webmaster(_at_)pcraft(_dot_)com don't 
generate
DWT> | the autoresponder.  (Yes, I changes the /path/to/message :) )  Is there
DWT> | some way of debugging this to see if it's causing an error or something?
DWT>
DWT> You sent your test message from "root," so it matched ^FROM_DAEMON, which
DWT> means it didn't match ! ^FROM_DAEMON.
DWT>
DWT>


At this point I should like to point out that if you receive an email from
a robot, my experience is that it will have not X-loop mechanism of its
own, and it will throw away your X-loop when it autoreplies to your
autoreply.  Your autoreply will need another mechanism to catch this mail
loop.

I suggest you use the -f feature of sendmail to reply from
AUTOREPLY_DAEMON(_at_)pcraft(_dot_)com or similar so you can easily pick up
autoreplies to your autoreplies.  In addition, I keep a list for a short
time (until 4am) of addresses that my daemon has responded to so that it
will not respond to the same address again in a loop.

Scenario:  spam email comes from Managing Director of a well known ISP.
Autoresponder responds.  Their autoresponder responds from the same email
address as the original mail, no indication it is a daemon, no X-loop
mechanism, no "precedence: junk", my "precedence: junk" ignored, my X-loop
destroyed and I think I was using from: with the word daemon in it and
that was ignored as well.




Alan

( Please do not email me AS WELL as replying to the list. Personal
  email is welcome but may invoke a password autoresponder. )


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