On 30-Sep-2008, at 20:33, Skip Morrow wrote:
I guess the real question is why are you using FROM_DAEMON?
I asked the same thing--that was my original question. It was
stated here
that sometimes servers will send the original message back as as
attachment,
or as part of the body, in which case X-Loop headers may be missed,
so these
are included as a fail safe. If you search for mail forwarding
procmail
recipes, you will see that they always include them.
Them? No, they included FROM_MAILER *or* FROM_DAEMON, not both.
FROM_DAEMON is used to avoid replies to automated (daemon) messages
being processed
I quote from man procmailex:
A simple autoreply recipe. It makes sure that neither mail
from any daemon (like bouncing
mail or mail from mailing-lists), nor autoreplies coming from
yourself will be autoreplied
to. If this precaution would not be taken, disaster could
result (`ringing' mail). In
order for this recipe to autoreply to all the incoming
mail, you should of course insert
it before all other recipes in your rcfile. However, it is
advisable to put it after any
recipes that process the mails from subscribed
mailinglists; it generally is not a good
idea to generate autoreplies to mailinglists (yes, the !
^FROM_DAEMON regexp should already
catch those, but if the mailinglist doesn't follow accepted
conventions, this might not be
enough).
:0 h c
* !^FROM_DAEMON
* !^X-Loop: your(_at_)own(_dot_)mail(_dot_)address
| (formail -r -I"Precedence: junk" \
-A"X-Loop: your(_at_)own(_dot_)mail(_dot_)address" ; \
echo "Mail received.") | $SENDMAIL -t
Not that it specifically says, "mail from mailing-lists".
--
"Katrina, $4 gas, a trillion dollar war, rising unemployment,
deregulated housing market, global warming...NO MORE!"
http://is.gd/2mxY
____________________________________________________________
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