Sieve: Saving "pristine" messages for backups and spam training

Robert Schetterer rs at sys4.de
Mon Aug 11 16:01:34 UTC 2014


Am 11.08.2014 um 17:42 schrieb Jeff Rice:
> Hello,
> I'm trying to work out a way to have my Sieve filter save a "pristine"
> version of email messages as a backup, primarily to use for training the
> spam filter. 

why , mail passes your smtp server with i.e spamass-milter ( i.e tagged
spam will train bayes auto ,depend to setup  )
the very rest of false postive or untagged spam, should send from users
to i.e a train script etc, spam tagged mail could be filter auto to Junk
folder by sieve global rule ( with pop3 use virtual dove setup )

 I would like is to have every message saved into a single,
> site-wide directory (in the global sieve) before being processed
> additionally and delivered.  The messages in that directory will be used
> to train the spam filter without having to worry about removing
> Spamassassin headers and so forth.
> 
> I thought fileinto :copy might do what I wanted, but this creates a
> backup directory individually for each user.  That's unmanageable for
> the spam training process I use. redirect *could* work, but that adds a
> header during the process so the email saved would not be "pristine".
> 
> I'm thinking of using the extprograms plugin to pipe to a program that
> will do a simple copy.  That feels very hackish, however, and I'm hoping
> there is a more elegant solution.
> 
> Am I missing something obvious here?

keep stuff simple

> 
> Thanks!
> Jeff



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


More information about the dovecot mailing list