On 19 Aug 2014, opensuse@antonaylward.com wrote:
My procmail is doing spamassassin checking among many other things and unless other things are triggered it goes into the INBOX.
Like you I prefer to do my spam checking and mail splitting with procmail. The splitting is done through an auxiliary file of rule set that is auto-generated when I save my address book (I use bbdb).
My INBOX is a Maildir just as is specified in James listing aboe The relevant line from my .procmailrc are
MAILDIR=/$HOME/Mail/ DEFAULT="$MAILDIR/INBOX/" # Thee trailing / makes it a maildir LOGFILE=/dev/null # LOGFILE=$HOME/procmail.log # For Troubleshooting: # VERBOSE=yes # LOGABSTRACT=all
Here is where we differ. I prefer using dovecot for final deliver. Here is the relevant lines from my .procmailrc: ,---- | VERBOSE=off | DELIVER="/usr/lib/dovecot/dovecot-lda" | LOGFILE=$HOME/.procmail.log | LOCKEXT=.lock | MAILDIR=$HOME/Maildir | LOG=" | " `---- To deliver to the default inbox, all you need is a rule like this: ,---- | # Default | :0 w | | $DELIVER `---- To deliver mail to a specific mailbox, just use the "-m" option. For example: ,---- | # Mails with a score of 15 or higher are almost certainly spam (with 0.05% | # false positives according to rules/STATISTICS.txt). Let's put them in a | # different mbox. (This one is optional.) | :0 w | * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* | | $DELIVER -m Trash | | # All mail tagged as spam (eg. with a score higher than the set threshold) | # is moved to "probably-spam". | :0 w | * ^X-Spam-Status: Yes | | $DELIVER -m Probable_Spam `---- The advantages of using dovecot-lda is: ,---- | * Mailbox indexing during mail delivery, providing faster mailbox access later | | * Quota enforcing by the quota plugin | | * Sieve language support by the Pigeonhole sieve plugin `---- Charles -- Linux: Because a PC is a terrible thing to waste. (By komarimf@craft.camp.clarkson.edu, Mark Komarinski)