procmail
[Top] [All Lists]

Re: Trying to bounce mail after-the-fact with procmail/formail

2001-10-27 12:42:42
Paul told Rich,

| You've already gotten the virtusertable tricks, but YOU CAN process a
| mail folder after the fact, and apply procmail rules to it.

The problem is more complex, Paul.  When your MTA invokes procmail as the
LDA or as a thrower from .forward, a non-zero exit status reported from
procmail back to the MTA will make the MTA bounce the message (unless it's
Smail, which doesn't care).  But if you postprocess a mailfolder by running
formail -s procmail without procmail's being the child of an MTA process, a
non-zero exit from procmail doesn't generate a bounce, because its parent is
not an MTA.

I think the best thing Rich can do in order to bounce messages that have
been previously received is to come up with the envelope recipients for them
somehow, make virtusertable entries that will bounce mail for them, update
everything, and run formail -s procmail on them with an rcfile that extracts
the original envelope senders, and remails each to its original envelope
recipient -f its original envelope sender.  Then the MTA will get another
chance at each such message and be able to bounce it.



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