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... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20100511/0c03a8be/attachment-0002.bin>
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... >
With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now here so: May 11 14:51:50 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 14:51:50 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --deliver= --user vmail May 11 14:51:50 evil imap: antispam: plugin initialising (1.2-notgit) On 12:31 Tue 11 May , Philipp wrote:> Try to add a --debug to dspam, and if that doesn't produce any > additional output try to start dspam not with init.d (I assume you do?) > but run it manually on the command line as 'sudo dspam --debug > --daemon', that should give you a better idea of what's going on. > To change the gid just add -g \#1010 to sudo. Maybe also try to add > --stdout or leave away the --client in your call to dspam, might make it > easier to pin down the error. > I'm also experiencing quite a bit of trouble with dspam, memory leaks > and stuff but I haven't been able to get in contact with their mailing > list (the address I found was deemed non-existent..) > > > Danila a ?crit : > > 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: > > 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, > > > >> > >
-------- Original-Nachricht --------> Datum: Tue, 11 May 2010 13:36:57 +0600 > Von: Danila <atckoe.zlo at gmail.com> > An: dovecot at 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
Apparently Analagous Threads
- Dovecot 2.2.7/2.2.8 failing to call dspam with antispam
- Dovecot With DSpam AntiSpam Plugin Replacement With Sieve
- dovecot antispam plugin is not woking
- dovecot-antispam plugin and "Failed to call dspam" message
- Another dovecot-antispam plugin can't call dspam