[Dovecot] antispam - Unable to determine the destination user
Hello, I'm trying to install dovecot antispam plugin and I've some problems with dspam user. When I move a mail out of 'SPAM' folder I have this error in my /var/log/messages :
Oct 28 17:01:41 tony2 imap: antispam: /usr/bin/dspam --source=error --class=innocent --signature=47de4679174462472577556 ... Oct 28 17:01:41 tony2 dspam[24313]: Unable to determine the destination user Oct 28 17:01:41 tony2 dspam[24313]: DSPAM agent misconfigured: aborting
I've tried to install it by 'emerging' and compiling from sources but with the same result.
plugin .config :
BACKEND=dspam-exec
DOVECOT=/usr/include/dovecot
INSTALLDIR=/usr/lib/dovecot/imap
USER=vpopmail
GROUP=vpopmail
#(same result with different user/group)
antispam_dspam_args = --user;$EXT@$USER
DEBUG=syslog
DEBUG_VERBOSE=1
PLUGINNAME=antispam
Mail server configuration :
- NetQmail (1.05-r8)
- Vpopmail (5.4.16)
- Dovecot (1.1.4-r1)
- dspam (3.8.0-r13) All these packages are emerge without mysql support.
If someone is able to give me some help...
-- Guillaume Romanczyk Itaapy http://itaapy.com Tel +33 (0)1 42 23 67 45 9 rue Darwin, 75018 Paris Fax +33 (0)1 53 28 27 88
Try to put in dspam.conf that line:
MySQLUIDInSignature on
Romanczyk Guillaume ha scritto:
Hello, I'm trying to install dovecot antispam plugin and I've some problems with dspam user. When I move a mail out of 'SPAM' folder I have this error in my /var/log/messages :
Oct 28 17:01:41 tony2 imap: antispam: /usr/bin/dspam --source=error --class=innocent --signature=47de4679174462472577556 ... Oct 28 17:01:41 tony2 dspam[24313]: Unable to determine the destination user Oct 28 17:01:41 tony2 dspam[24313]: DSPAM agent misconfigured: aborting
I've tried to install it by 'emerging' and compiling from sources but with the same result.
plugin .config :
BACKEND=dspam-exec DOVECOT=/usr/include/dovecot INSTALLDIR=/usr/lib/dovecot/imap USER=vpopmail GROUP=vpopmail #(same result with different user/group) antispam_dspam_args = --user;$EXT@$USER DEBUG=syslog DEBUG_VERBOSE=1 PLUGINNAME=antispam
Mail server configuration :
- NetQmail (1.05-r8)
- Vpopmail (5.4.16)
- Dovecot (1.1.4-r1)
- dspam (3.8.0-r13) All these packages are emerge without mysql support.
If someone is able to give me some help...
--
Claudio Prono Systems Development @ Atpss.net Srl, Divisione Implementazione Sistemi Via San Bernardino, 17 - 10137 Torino (TO) - IT Tel +39-011.32.72.100 Fax +39-011.32.46.497 PGP Fingerprint: 75C2 4049 E23D 2FBF A65F 40DB EA5C 11AC C2B0 3647 Disclaimer: http://atpss.net/disclaimer
Claudio Prono a écrit :
Try to put in dspam.conf that line:
MySQLUIDInSignature on
Even if I do not use MySql ?
-- Guillaume Romanczyk ~ System Administrator Itaapy http://itaapy.com Tel +33 (0)1 42 23 67 45 9 rue Darwin, 75018 Paris Fax +33 (0)1 53 28 27 88
Romanczyk Guillaume wrote:
Claudio Prono a écrit :
Try to put in dspam.conf that line:
MySQLUIDInSignature on
Even if I do not use MySql ?
If you don't use MySQL you will need to use the --user parameter to set the corresponding owner of the signature.
Then you have another problem. You either run the dspam call as the same _system_ user as what you are providing in the --user parameter, eg. run it as real system user johndoe with --user johndoe, or you are running the dspam call as a generic system user, such as "mail" or other. In that case you will need to tell dspam to trust that user in dspam.conf - look for the Trust directive.
Another way would be to use the recent (CVS) external lookup feature to remap the virtual user to an authorized system user. Either the "johndoe" if there are real system users, or the generic one.
Regards,
Hugo Monteiro.
-- ci.fct.unl.pt:~# cat .signature
Hugo Monteiro Email : hugo.monteiro@fct.unl.pt 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 apoio@fct.unl.pt
ci.fct.unl.pt:~# _
Hello,
If you don't use MySQL you will need to use the --user parameter to set the corresponding owner of the signature.
Then you have another problem. You either run the dspam call as the same _system_ user as what you are providing in the --user parameter, eg. run it as real system user johndoe with --user johndoe, or you are running the dspam call as a generic system user, such as "mail" or other. In that case you will need to tell dspam to trust that user in dspam.conf - look for the Trust directive.
Thank's for this reply, I've check the user used to launch dspam in .config file of dovecot antispam and it's vpopmail. In my dspam.conf I've Trust vpopmail, so I think it should be great.
When a mail comes into qmail I use the .qmail-default to check the mail with dspam : | /usr/bin/dspam --mode=teft --deliver=innocent --feature=noise --tokenizer=chained --user $EXT@$USER --stdout | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox
In this configuration the "virtual' user is mentionned by $EXT@$USER , but if I write : antispam_dspam_args = --user;$EXT@$USER It doesn't work as If I write : antispam_dspam_args = --user;%u
Regards, Guillaume Romanczyk.
-- Guillaume Romanczyk ~ System Administrator Itaapy http://itaapy.com Tel +33 (0)1 42 23 67 45 9 rue Darwin, 75018 Paris Fax +33 (0)1 53 28 27 88
participants (3)
-
Claudio Prono
-
Hugo Monteiro
-
Romanczyk Guillaume