procmail
[Top] [All Lists]

Newbie questions

1996-05-16 08:47:09
I've just (successfully) set up procmail for the first time. I want to
implement a couple of "kill" conditions. First, I want to reject mail
greater than 50k and return a quick message. Here's the recipe I used:


:0 
* > 50000
* !^FROM_DAEMON
| (formail -r -A"Precedence: junk" \
   -A"X-Loop: eunos(_at_)village(_dot_)ios(_dot_)com" ; \
   echo "Mailbox cannot handle large files.")| $SENDMAIL -t


Sending a large test file generated the return message, but the mail was
still dumped into my mailbox. I was under the impression that without the
"c" flag, it would be discarded after executing the rule. What did I do
wrong?

Also, is there a typical recipe that can read a list of user IDs from a
kill file and reject anything coming from those IDs along with a canned
response?

Thanks in advance for the help.

-- 
Gary J. Fischman

<Prev in Thread] Current Thread [Next in Thread>
  • Newbie questions, Gary Fischman <=