[Dovecot] antispam plugin problem
Hi I have installed a plug-in an antispam and when I try to move the message to a folder a spam mutt produces an error "Failed to call dspam."
Here's my configuration(all built from ports): dovecot 1.2.11 dovecot-antispam 1.2_4,1 dspam 3.9.0_1 FreeBSD 8.0
Relevant sections from dovecot.conf:
protocol imap { mail_plugins = antispam ... }
plugin { antispam_signature = X-DSPAM-Signature antispam_dspam_result_header = X-DSPAM-Result antispam_signature_missing = error antispam_spam = SPAM;spam;JUNK antispam_dspam_binary = /usr/local/bin/dspam antispam_dspam_args = --client;--user vmail antispam_crm_args = --config=/home/vmail }
.config used by dovecot-antispam: BACKEND=dspam-exec PLUGINNAME=antispam DEBUG=syslog DEBUG_VERBOSE=1
May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010)
uid=1009, gid=1010 is vmail user
%> grep vmail /usr/local/etc/dspam.conf Trust vmail
Thanks
On 05/11/2010 12:02 AM, Danila wrote:
May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010)
uid=1009, gid=1010 is vmail user
%> grep vmail /usr/local/etc/dspam.conf Trust vmail
Thanks
Is dovecot running as vmail or as user dovecot? I had a similar problem and had to add "trust dovecot". Once I did that, the problem went away.
Trever
A traveler on the information superhighway who often stops and looks around...
Hi Dovecot running as user dovecot
%> grep dovecot /usr/local/etc/dspam.conf Trust dovecot
On 01:18 Tue 11 May , Trever L. Adams wrote:
On 05/11/2010 12:02 AM, Danila wrote:
May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010)
uid=1009, gid=1010 is vmail user
%> grep vmail /usr/local/etc/dspam.conf Trust vmail
Thanks
Is dovecot running as vmail or as user dovecot? I had a similar problem and had to add "trust dovecot". Once I did that, the problem went away.
Trever
A traveler on the information superhighway who often stops and looks around...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 11 May 2010, Danila wrote:
On 01:18 Tue 11 May , Trever L. Adams wrote:
On 05/11/2010 12:02 AM, Danila wrote:
May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010)
uid=1009, gid=1010 is vmail user
What happens, if you run the command from the shell as user vmail? E.g.:
sudo -u \#1009 /usr/local/bin/dspam --source=error --class=spam \
- --signature=4be87a9f953248352114216 --client --user vmail
Hmm, I don't know if you can also assign the gid...
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS+kP5b+Vh58GPL/cAQI+fQf9FJL1VxRzpXIHPelQqEwxspn1NH2tAOYt d4ngh5m5Uzui+/R8vWsF0zq9kl3TCeeAZQlxrnAn0+emkpB8Yf+CN4W4zAes/TKh 3cYD45QaRdGpEQKteJqhhU8nGrTaBXZwkp/0dzIwdZQFxZQkuNRcuX0ynXRyUHaR AVPW6Vw7n10tNmRndeEbfkK4dpCxa+ka0X/Y7Y57gpYgr99k9EIqgDAU6GboviZh awBslrdhYnJFXj5GY9+G65Z9HgYJMHHQl9CQsQdggDGf2t9+GozwhbO0S+glTzi+ A0AUHCtqdr78ZCqMWR5Im4rngoWdh6ypa+C/UBdFLeJSxGOds7lptQ== =sSJP -----END PGP SIGNATURE-----
Nothing happens #> su vmail -c "/usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail" #>
On 10:05 Tue 11 May , Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 11 May 2010, Danila wrote:
On 01:18 Tue 11 May , Trever L. Adams wrote:
On 05/11/2010 12:02 AM, Danila wrote:
May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010)
uid=1009, gid=1010 is vmail user
What happens, if you run the command from the shell as user vmail? E.g.:
sudo -u \#1009 /usr/local/bin/dspam --source=error --class=spam \
- --signature=4be87a9f953248352114216 --client --user vmail
Hmm, I don't know if you can also assign the gid...
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS+kP5b+Vh58GPL/cAQI+fQf9FJL1VxRzpXIHPelQqEwxspn1NH2tAOYt d4ngh5m5Uzui+/R8vWsF0zq9kl3TCeeAZQlxrnAn0+emkpB8Yf+CN4W4zAes/TKh 3cYD45QaRdGpEQKteJqhhU8nGrTaBXZwkp/0dzIwdZQFxZQkuNRcuX0ynXRyUHaR AVPW6Vw7n10tNmRndeEbfkK4dpCxa+ka0X/Y7Y57gpYgr99k9EIqgDAU6GboviZh awBslrdhYnJFXj5GY9+G65Z9HgYJMHHQl9CQsQdggDGf2t9+GozwhbO0S+glTzi+ A0AUHCtqdr78ZCqMWR5Im4rngoWdh6ypa+C/UBdFLeJSxGOds7lptQ== =sSJP -----END PGP SIGNATURE-----
-------- Original-Nachricht --------
Datum: Tue, 11 May 2010 13:36:57 +0600 Von: Danila atckoe.zlo@gmail.com An: dovecot@dovecot.org Betreff: Re: [Dovecot] antispam plugin problem
Hi Dovecot running as user dovecot
%> grep dovecot /usr/local/etc/dspam.conf Trust dovecot
On 01:18 Tue 11 May , Trever L. Adams wrote:
On 05/11/2010 12:02 AM, Danila wrote:
May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam:
1, src unsure: 0
May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail
Do you have DSPAM compiled with debug turned on? Could you try once to run in a shell the following command: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail --debug
Could you try to NOT use client mode? Aka: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --user vmail --debug
What is the output of the above commands? What does system.log/debug.log from DSPAM say about your attempts to reclassify the message?
Can you post the output of "dspam --version"? Can you post the output of: ls -lah /usr/local/bin/dspam
May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010)
uid=1009, gid=1010 is vmail user
%> grep vmail /usr/local/etc/dspam.conf Trust vmail
Thanks
Is dovecot running as vmail or as user dovecot? I had a similar problem and had to add "trust dovecot". Once I did that, the problem went away.
Trever
A traveler on the information superhighway who often stops and looks around...
-- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
participants (4)
-
Danila
-
Steffen Kaiser
-
Steve
-
Trever L. Adams