Nobody's Hero
02-26-2004, 12:58 PM
Here is my procmail file. It works pretty well, but I want to make some changes. See the comments.
## Pipe all incoming mail through spamassassin
## spamassassin is a resource hog.
## I want it to only filter messages under a certain size.
## How do I do this?
0fw
| /usr/bin/spamassassin
## If somethins is SPAM, let them know.
:0
* ^X-Spam-Flag: YES
| (formail -r; \
echo "This is an auto-generated reply."; \
echo "This mail was identified as SPAM."; \
echo "Mail rejected; it will never be read." ) \
| sendmail -t -oi
## Delete all SPAM.
:0
* ^X-Spam-Flag: YES
/dev/null
## I get a lot of bounce backs replying to SPAM.
## This deletes them.
## This deletes all bounce backs I think...
## It would be better to search the body for the above text.
## How do I do this?
:0
* ^To: <myusername@localhost.localdomain>
/dev/null
## Forward a copy of all mail to my handheld.
## Also keeps a local copy.
## I sometimes send myself email from myhandheld.
## How do I prevent forwarding emails that come from my handheld to my handheld?
:0c
! myusername@tmo.blackberry.net
## Pipe all incoming mail through spamassassin
## spamassassin is a resource hog.
## I want it to only filter messages under a certain size.
## How do I do this?
0fw
| /usr/bin/spamassassin
## If somethins is SPAM, let them know.
:0
* ^X-Spam-Flag: YES
| (formail -r; \
echo "This is an auto-generated reply."; \
echo "This mail was identified as SPAM."; \
echo "Mail rejected; it will never be read." ) \
| sendmail -t -oi
## Delete all SPAM.
:0
* ^X-Spam-Flag: YES
/dev/null
## I get a lot of bounce backs replying to SPAM.
## This deletes them.
## This deletes all bounce backs I think...
## It would be better to search the body for the above text.
## How do I do this?
:0
* ^To: <myusername@localhost.localdomain>
/dev/null
## Forward a copy of all mail to my handheld.
## Also keeps a local copy.
## I sometimes send myself email from myhandheld.
## How do I prevent forwarding emails that come from my handheld to my handheld?
:0c
! myusername@tmo.blackberry.net