I'm using dovecot with the antispam plugin to allow for training, but how do I delete emails once they've been trained? If I delete them from the folder using an email client they get retrained as valid emails when they're moved to the trash folder! D'oh. I'm looking, ideally, for a solution that doesn't need a script to be run per user as I have a number of users using this feature. Also, the cleanspam script doesn't seem to be able to find the folder I'm using ('SpamTrain') so what format should I use? Thanks. david
David Reid wrote:> I'm using dovecot with the antispam plugin to allow for training, but > how do I delete emails once they've been trained? If I delete them from > the folder using an email client they get retrained as valid emails when > they're moved to the trash folder! D'oh. > > I'm looking, ideally, for a solution that doesn't need a script to be > run per user as I have a number of users using this feature. Also, the > cleanspam script doesn't seem to be able to find the folder I'm using > ('SpamTrain') so what format should I use? > > Thanks. > > davidWhen you configure the trash folder in the antispam plugin correctly, messages moved from spam to trash are not retrained as ham. With Thunderbird as your client in default configuation, the dovecot plugin config should look like: antispam_trash: Trash antispam_spam: Junk You need to add the appropriate (default) folder names for all used clients though, or standardize the folders and let users adapt the settings in their clients. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20080412/f2088a0a/attachment-0002.bin>
Tom Hendrikx wrote:> David Reid wrote: >> I'm using dovecot with the antispam plugin to allow for training, but >> how do I delete emails once they've been trained? If I delete them from >> the folder using an email client they get retrained as valid emails when >> they're moved to the trash folder! D'oh. >> >> I'm looking, ideally, for a solution that doesn't need a script to be >> run per user as I have a number of users using this feature. Also, the >> cleanspam script doesn't seem to be able to find the folder I'm using >> ('SpamTrain') so what format should I use? >> >> Thanks. >> >> david > > When you configure the trash folder in the antispam plugin correctly, > messages moved from spam to trash are not retrained as ham. With > Thunderbird as your client in default configuation, the dovecot plugin > config should look like: > > antispam_trash: Trash > antispam_spam: JunkHmm, I thought I had done that! These are the lines I have antispam_trash = trash;Trash;Deleted Items antispam_spam = SpamTrain;INBOX.SpamTrain> > You need to add the appropriate (default) folder names for all used > clients though, or standardize the folders and let users adapt the > settings in their clients.Have I messed up the syntax? Thanks for the prompt reply!> > -- > Tom > > > ------------------------------------------------------------------------ > > !DSPAM:16,48009999124071709054984!