On Sunday 22 June 2003 14:33, Glen Wagley wrote: > Ok, so I've finally bit the bullet and decided to filter email for > clients on my mail server. So far I've gotten Postfix to run with a few > more restrictions to keep spam out but nothing else. I do have > Postfix's mail_command set to /usr/bin/procmail but I pass no parameters > to procmail. I don't know if I need to or not, I haven't dug through > the man pages yet. I also have a very simple /etc/procmailrc:
The prcomailrc file looks good. Since you're implementing spamassassin sitewide anyway, you might as well run spamd all the time so you can run spamc (from procmailrc instead of "spamassassin" proper) and get a performance benefit. I haven't worked with postfix, but a test message or two should tell you if things are working as you expect. > Now do I need to put .procmailrc files in each of user home dir's? Most > of them just pop their mail from the box and are just wanting to have > the spam filtered out. I admit I haven't read through the spamassassin > documentation in full yet but I don't know what all I need to do for > procmail either. Any help would be great! That depends on what you want. The spamassassin documentation is pretty good, both in the manpages and on the website. If you just want to run spamassassin against incoming e-mail, then no you don't need per-user procmailrc files. If you want to discard _all_ mail marked as spam, then you can do that from the sitewide procmailrc as well. That's really not a good idea though, at least until you tune your rules a bit and adjust the spam threshold to something everyone can agree on. So if you're not dealing with the spam on a sitewide level (just identifying it), then you will want to do something on a per-user basis. If your users are using POP3 to get their mail, the best thing for you to do is to tell them to set up whatever filters they want in effect in their POP3 clients. If you have IMAP clients (or anyone else that can access folders on the server), you probably want to create a 'spam' folder for each user and educate them what to do about it. A per-user .procmailrc can divert messages tagged as spam into the spam folder on the server automatically. In both cases, the "X-Spam-Status: Yes" header is probably what you want to filter on. This procmail recipe (for a per-user ~/.procmailrc file) will put spam messages into a folder (mbox format by default) called 'spam' in the $MAILDIR directory: # Put spam in its place :0 D * X-Spam-Status: Yes spam I use spamassassin and procmail on both of my mail servers and I love it. :D JN ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
