AFP548

Squirrelmail Postfix Procmail SpamAssassin

Hi!

We have spent 20+ hours trying to get SpamAssassin working with a procmail filter on our XServe 10.3.7 (for a public school system).

We have followed to two top articles on setting up procmail and SpamAssassin. But we still have a problem -- it seems that procmail cannot pull the user names from anywhere. Here's an excerpt from the procmail log that we finally got working:

Here's an excerpt from the log (look for the "65" error);

procmail: [6981] Fri Feb 4 01:42:31 2005
procmail: Match on "^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
procmail: Notified comsat: "cyrus@0:/dev/null"
Subject: *****SPAM***** Re [7]
Folder: /dev/null 17627
procmail: [7016] Fri Feb 4 01:43:56 2005
procmail: Assigning "HOME=/Users/"
procmail: Assigning "DROPPRIVS=yes"
procmail: Assuming identity of the recipient, VERBOSE=off
procmail: Executing "spamc"
procmail: [7016] Fri Feb 4 01:44:00 2005
procmail: No match on "^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*"
procmail: Executing "/usr/bin/cyrus/bin/deliver,-a,-m,user/"
procmail: Program failure (65) of "/usr/bin/cyrus/bin/deliver"
procmail: Assigning "LASTFOLDER=/usr/bin/cyrus/bin/deliver -a -m user/"
procmail: Notified comsat: "cyrus@:**Requeued**"
Subject: Miller: Equity Release Statement
Folder: **Requeued**


Our procmailrc looks like this:

OGFILE=/var/log/procmail # this can be deleted after testing
# changed by CHS
# VERBOSE=no
VERBOSE=yes
HOME=/Users/$USER
DROPPRIVS=yes

:0fiw
| spamc # call spamassassin

# modified by CHS; may allow in the future
# INCLUDERC=$HOME/.procmail # allow users to create their own recipes

:0:
# * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null
#trash all messages with a very high spam score

:0w
| /usr/bin/cyrus/bin/deliver -a $USER -m user/$USER
# if not told otherwise, deliver all messages to the user's inbox


Notes:

None of our users have actual home folders on the server.

The IMAP store is /var/spool/imap/user/

A few of our users have pop enabled, but we encourage webmail only with SquirrelMail.

Our main.cf and master.cf files are no different that as recommended here and by Apple.

Any help would be greeatly appreciated,
Charlie

Exit mobile version