[Dovecot] dovecot + antispam plugin - no retraining

Michael Moerz michael at moerz.co.at
Thu Jan 17 19:03:31 EET 2013


On Thursday, January 17, 2013 11:16:45 AM Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, 16 Jan 2013, Michael Moerz wrote:
> > plugin {
> > 
> >  antispam_backend = pipe
> 
> Er, this module is called "mailtrain", isn't it? At least in antispam
> changeset 50:0319240072d8. You should get an error "configured
> non-existent antispam backend: pipe"
tmp = getenv("BACKEND", getenv_data);
        if (tmp) {
                if (strcmp(tmp, "crm114") == 0)
                        cfg->backend = &crm114_backend;
                else if (strcmp(tmp, "dspam") == 0)
                        cfg->backend = &dspam_backend;
                else if (strcmp(tmp, "pipe") == 0)
                        cfg->backend = &pipe_backend;
                else if (strcmp(tmp, "spool2dir") == 0)
                        cfg->backend = &spool2dir_backend;
                else {
                        debug(&cfg->dbgcfg, "selected invalid backend!\n");
                        exit(3);
                }

probably i fail to see something important here, but to me 'pipe' seems 
correct.
> >  antispam_mail_notspam = ham at example.org
> >  antispam_mail_sendmail = /usr/sbin/sendmail
> 
> You could replace this program by a shell script to get the info, that it
> is called, e.g.:
> 
This is really a nifty idea, i'll give it a try and report back on that.

kind regards,
Michael Moerz



More information about the dovecot mailing list