I want to "emulate" the sendmail EXITCODE 67 on qmail (my provider uses
this).
I already built a recipe, but I want to keep a copy of the mail, and
that's what I can't figure out how to do this.
Here's the recipe (adapted from
http://www.ornl.gov/cts/archives/mailing-lists/qmail/1998/07/msg00350.html)
:0
Make this :0c. Recommended reading: man procmailrc(5).
* !^TO_.*(valid_user)@domain\.net
{
EXITCODE=100
:0 f
| echo "Sorry, invalid recipient. (#5.1.1)"
:0 r
|
}
IN.SPIDERWEB
You have two actions (the {} block, and IN.SPIDERWEB), but you can have only
one (see man procmailrc(5)). After the closing '}', insert an empty line and
:0A:
to create second recipe that places all mail matched by the preceding
recipe into IN.SPIDERWEB.
Mail that's not addressed to my main address should be bounced back, *but*
I want to have a copy of it in my box, titled "IN.SPIDERWEB." The bouncing
works find, but putting a copy into IN.SPIDERWEB not.
This logic is flawed. procmail cannot know whether email was addressed to
your main address because that information is in the envelope - which
procmail never sees.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail