Is it also possible to change the mail path, thereby changing the user as which dspam is run?
Currently: postfix->(via lmtp)dspam(via smtp)->postfix->procmail Possible: postfix->dspam(as lda)->procmail ? On 5/30/08, Hugo Monteiro <[EMAIL PROTECTED]> wrote: > > Michael Blinn wrote: > >> I'm using the dovecot-antispam plugin as a front end to 3.6.8, however in >> order to reprocess through the plugin, I'm passing a --user argument to the >> dspam executable by way of the following line in dovecot.conf: >> >> antispam_dspam_args = --user;%u >> >> I've tried real system users on this line, email addresses ( >> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> as in my dspam_virtual_uids >> table), as well as root and %u. >> >> When I retrain, the mail.log shows this: >> Option --user requires special privileges when user does not match current >> user, e.g.. root or Trusted User [uid=1001([EMAIL PROTECTED])] >> >> However, If I Trust each recipient user I have, then it will work and >> retraining goes through. How do I get around having to add a Trust for every >> email user I have? It seems likt he retraining dspam executable is running >> as the individual user who is retraining the email. Maybe I can get around >> this with a setuid bit? >> >> Regards, >> Michael >> >> >> >> -- >> Only morality in our actions can give beauty and dignity to our lives. >> - Albert Einstein >> > > Hello Michael, > > You can solve the problem in two ways. > > 1 - Use the dovecot antispam plugin in mailtrain mode, rather than > dspam-exec. Then you can set up retraining addresses with the retrain dspam > call, or use ParseToHeaders option in dspam.conf to use retrain addresses in > the form of spam/[EMAIL PROTECTED] > > 2 - You can choose to use the dspam cvs version which has a new feature > called external user lookup. You can set it up to make dspam match the > dspam's username by the user address or system user id. Right now you can > use the builting LDAP lookup or cook your own lookup script and use the > external lookup method = program. > > Regards, > > Hugo Monteiro. > > -- > ci.fct.unl.pt:~# cat .signature > > Hugo Monteiro > Email : [EMAIL PROTECTED] > Telefone : +351 212948300 Ext.15307 > > Centro de Informática > Faculdade de Ciências e Tecnologia da > Universidade Nova de Lisboa > Quinta da Torre 2829-516 Caparica Portugal > Telefone: +351 212948596 Fax: +351 212948548 > www.ci.fct.unl.pt [EMAIL PROTECTED] > > ci.fct.unl.pt:~# _ > > -- -- Only morality in our actions can give beauty and dignity to our lives. - Albert Einstein !DSPAM:1011,48482d13150925358716341!
