Hi all, A few months ago, I set up my personal server following the tutorials : - perfect setup for etch - amavis/clamav/spamassassin The result is great ! However, I'd like an additionnal feature : to deliver the messages identified as SPAM by spamassassin directly into the SPAM maildir folder. Moreover, I'd like to do this system-wide, so that it doesn't depends of users .procmailrc file, neither of email clients configurations (like filters one can define in thunderbird). Any idea ? Thanks and congratulations for all these wonderful tutorials !
Courier imap server does not implement sieve functionality if you were using dovecot or cyrus imap it would be easy to file specific messages in any folder you want to file into.
LOL... Okay, topdog! I'm actually USING Dovecot's (imap and pop3) for my etch configuration rather than Courier. I chose that one and had it installed before I realized Falko's tutorial chose to use Courier instead. It may also be worth noting that I'm running squirrelmail as my webmail client. Like mumblee before me, I would ALSO like to be able to divert inbound mails that SpamAssassin flags as spam into a mail folder of their own. Since you say it can be done easily with Dovecot, Can you offer some tips as to how to do this? Thanks!
partial solution : with procmail Hi, Pity that Courier is not the right imap server I found a way to get want I wanted but with procmail. 1) I added in postfix main.cf : mailbox_command=/usr/bin/procmail 2) I created a global /etc/procmailrc file : Code: LOGNAME=$USER SHELL=/bin/sh PATH=/bin:/usr/bin:/usr/local/bin:$HOME/bin VERBOSE=yes LOGFILE=/var/log/procmail.log MAILDIR=$HOME/Maildir/ DEFAULT=$MAILDIR/new DROPPRIVS=yes :0: * ^Subject:.*SPAM $MAILDIR/.SPAM/ 3) reload postfix This is probably not ideal as it requires procmail, and I would gladly test another -better- solution. thx.
Here is how you do it with sieve on dovecot http://wiki.dovecot.org/LDA/Sieve http://wiki.dovecot.org/ManageSieve the sieve plugin rpm can be obtained from http://ATrpms.net/