How to deliver tagged message into SPAM folder

Discussion in 'HOWTO-Related Questions' started by mumblee, Sep 7, 2008.

  1. mumblee

    mumblee New Member

    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 !
  2. falko

    falko Super Moderator ISPConfig Developer

    I think you can define this in the amavisd configuration.
  3. topdog

    topdog Active Member HowtoForge Supporter

    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.
  4. websissy

    websissy New Member

    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?

    Last edited: Sep 8, 2008
  5. mumblee

    mumblee New Member

    partial solution : with procmail


    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 :

    2) I created a global /etc/procmailrc file :
    * ^Subject:.*SPAM
    3) reload postfix

    This is probably not ideal as it requires procmail, and I would gladly test another -better- solution.

  6. topdog

    topdog Active Member HowtoForge Supporter

Share This Page