I have qmail / vpopmail / courier / qmail-scanner / clamd / spamassassin installed and running great almost a month with no false positives reported. My next step is to move the spam to a central "spam" directory system wide that I plan to watch and adjust rules as needed. I have checked into things and think maildrop is the way to go, but cannot find a good document that outlines this. I have about 15 domains and around 100 users, so .qmail files seem to be the long way to configure things.
This is what I have so far:
-------------------/var/qmail/rc:
exec env - PATH="/var/qmail/bin:$PATH" qmail-start '| /var/qmail/bin/preline /usr/local/bin/maildrop '
------------------/etc/maildroprc:
# Global maildrop filter file
# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.
DEFAULT="$HOME/Maildir/"
# the next line turns on spamassassin filtering for all users
# xfilter "/usr/bin/spamc -u $LOGNAME
# if (/^X-Spam-Status: *Yes/)
# to $HOME/Maildir/.Spam/
if (/^X-Spam-Flag: *YES/)
to "Maildir/.Spam/"
I can send a forced spam message that spamassassin marks with the "X-Spam-Flag: YES" but it doesn't get moved. I even put garbage in the maildroprc file to try to get a syntax error or something, but no luck. Am I missing something in the puzzle?
Thanks
This is what I have so far:
-------------------/var/qmail/rc:
exec env - PATH="/var/qmail/bin:$PATH" qmail-start '| /var/qmail/bin/preline /usr/local/bin/maildrop '
------------------/etc/maildroprc:
# Global maildrop filter file
# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.
DEFAULT="$HOME/Maildir/"
# the next line turns on spamassassin filtering for all users
# xfilter "/usr/bin/spamc -u $LOGNAME
# if (/^X-Spam-Status: *Yes/)
# to $HOME/Maildir/.Spam/
if (/^X-Spam-Flag: *YES/)
to "Maildir/.Spam/"
I can send a forced spam message that spamassassin marks with the "X-Spam-Flag: YES" but it doesn't get moved. I even put garbage in the maildroprc file to try to get a syntax error or something, but no luck. Am I missing something in the puzzle?
Thanks