Anyone know of one? Is that O'Reilly book good? I need to get my fetchmail setup with some good filtering in procmail pronto and I can't remember how to set it up and compose the recipes properly. I'm willing to just buy a book at this point to make the spam and unwanted emails go away. Any advice or direction is appreciated. Of course I'll Google, but I was hoping someone here might have the answer off the top of their head, so I could get something going tonight.
Preston
I have found the O'Reilly SpamAssassin book useful when I decided to do some tweaking.
Marko
On Wed, October 12, 2005 3:48 pm, Preston Crawford said:
Anyone know of one? Is that O'Reilly book good? I need to get my fetchmail setup with some good filtering in procmail pronto and I can't remember how to set it up and compose the recipes properly. I'm willing to just buy a book at this point to make the spam and unwanted emails go away. Any advice or direction is appreciated. Of course I'll Google, but I was hoping someone here might have the answer off the top of their head, so I could get something going tonight.
Preston _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 12 Oct 2005, Marko A. Jennings wrote:
I have found the O'Reilly SpamAssassin book useful when I decided to do some tweaking.
Marko
That's good. Specifically, does it go into procmail or fetchmail? That's my main interest. Not necessarily in using it in a server environment. But in using it on the desktop when I'm remoting in and using fetchmail to check my email.
Preston
On Wed, October 12, 2005 3:55 pm, Preston Crawford said:
On Wed, 12 Oct 2005, Marko A. Jennings wrote:
I have found the O'Reilly SpamAssassin book useful when I decided to do some tweaking.
Marko
That's good. Specifically, does it go into procmail or fetchmail? That's my main interest. Not necessarily in using it in a server environment. But in using it on the desktop when I'm remoting in and using fetchmail to check my email.
Yes, there is a section titled "Invoking SpamAssassin with procmail".
On Wed, 12 Oct 2005, Marko A. Jennings wrote:
On Wed, October 12, 2005 3:55 pm, Preston Crawford said:
On Wed, 12 Oct 2005, Marko A. Jennings wrote:
I have found the O'Reilly SpamAssassin book useful when I decided to do some tweaking.
Marko
That's good. Specifically, does it go into procmail or fetchmail? That's my main interest. Not necessarily in using it in a server environment. But in using it on the desktop when I'm remoting in and using fetchmail to check my email.
Yes, there is a section titled "Invoking SpamAssassin with procmail".
Thank you! Much appreciated!
Preston
On Wed, Oct 12, 2005 at 01:33:10PM -0700, Preston Crawford wrote:
Yes, there is a section titled "Invoking SpamAssassin with procmail".
Thank you! Much appreciated!
i can well believe that it would be more complicated when using fetchmail, but the short answer to invoking spamassassin from procmail is to put something like this in your .procmailrc:
:0 fw * < 256000 | /usr/local/bin/spamc
the fw means the recipe is a filter, and that procmail needs to wait for it to finish.
the < 256000 refers to the message size in bytes. anything bigger will be bypassed.
piping to spamc is appropriate if you are running spamd on your system, which you probably want to do (see hte spamassassin web site and/or docs for the quick description of how to do this). Doing this makes spamassassin run as a daemon so that each instance of spamassassin does not have to run all the initialization code.
for testing, you could replace it with a simple call to "spamassassin" instead of "spamc".
While i'm talking procmail, here's my favorite recipe:
# weed out duplicate messages, first thing :0 Wh: msgid.lock | formail -D 8192 msgid.cache
Put this at the top of your procmailrc and you'll never see two copies of the same message again, as long as they have matching message-ids.
danno -- dan pritts - systems administrator - internet2 734/352-4953 office 734/834-7224 mobile
On Wed, Oct 12, 2005 at 01:33:10PM -0700, Preston Crawford wrote:
Yes, there is a section titled "Invoking SpamAssassin with procmail".
Thank you! Much appreciated!
i can well believe that it would be more complicated when using fetchmail, but the short answer to invoking spamassassin from procmail is to put something like this in your .procmailrc:
It indeed is. I started using getmail yesterday and it's much better. Much easier to setup to run in cron and much easier to get it to use Spamassassin. But the big problem was that spamassassin wasn't setup right. There were some flags not turned on by default that, when I flipped them on, totally changed the way it filtered. Suddenly all the stuff that Evolution wasn't "learning" as spam, even though I've been marking it as junk for weeks, was suddenly getting marked as spam. So I'm happy.
Actually what I probably need now is a good book on overall Linux administration so I can tighten up procmail and my apache setup to use 443 only. I setup our server with squirrelmail for my wife. It pulls from IMAP which gets email from getmail via spamassassin. She's been having a terrible time with spam and her domain's ISP wasn't filtering it well, so this will help. I still need a little procmail reference, though, so I can get it to filter out email from certain lists or from certain people.
the fw means the recipe is a filter, and that procmail needs to wait for it to finish.
the < 256000 refers to the message size in bytes. anything bigger will be bypassed.
Okay, thanks.
While i'm talking procmail, here's my favorite recipe:
# weed out duplicate messages, first thing :0 Wh: msgid.lock | formail -D 8192 msgid.cache
Put this at the top of your procmailrc and you'll never see two copies of the same message again, as long as they have matching message-ids.
Cool, thanks. Have a recipe for filtering out people, lists? Also, what's a good generic book for stuff like this? I mean, I know how to run Linux, but then when more specific situations like this come up it would be nice to have a dead tree to reach for.
Preston
On Thu, Oct 13, 2005 at 02:46:26PM -0700, Preston Crawford wrote:
Actually what I probably need now is a good book on overall Linux administration so I can tighten up procmail and my apache setup to use 443 only.
The best generic system administration book for linux that i know is "linux system administration handbook" by nemeth, hein, et al.
they have a "unix system administration handbook" which is similar and covers various unix flavors and i think some linux distro is one of them.
this will help. I still need a little procmail reference, though, so I can get it to filter out email from certain lists or from certain people.
A good first reference is the "procmailex" man page (ex meaning examples).
For dead trees, I haven't read it, but there's this:
http://procmail.non-prophet.org/
also, this web site looks pretty good:
http://www.ii.com/internet/robots/procmail/qs/
drop me a note off-list if you need further help. The procmail syntax is somewhat baroque but the 90/10 rule applies.
danno -- dan pritts - systems administrator - internet2 734/352-4953 office 734/834-7224 mobile