On 06/03/14 13:14, Tom Hendrikx wrote: > On 03/06/2014 12:58 PM, Alan Chandler wrote: >> I tried it and I couldn't make dspam run. (nor could I find anything in >> the log to say why) All that would happen is that the attempt to move a >> mail from my inbox to my junk box would fail in thunderbird >> >> So I gave up. I assumed at the time it was because antispam was calling >> it with uid 10001 (which doesn't have an account). I can't remember the >> exact message that made me think that, and looking back at syslog and >> mail.log at the time this happened I can't find any entries at all for dspam >> >> Just looking back at what I discovered since, it might be because dspam >> was having read problems with dspam.conf (permissions 660 with root.root >> as the owner) > The dspam binary should be installed with setgid bit enabled (the 's' in > ls output: -rwxr-sr-x 1 dspam dspam 105792 May 30 2013 /usr/bin/dspam) > which means that dspam.conf should be readable for the dspam binary when > dspam.conf is readable by group 'dspam'. > > To be able to retrain, the username of the calling user should probably > also be configured as trusted user ('Trust ...' in dspam.conf). > >
I have tried to set dovecot-antispam up again to run the dspam backend. but it still isn't working Here is the part of syslog where antispam starts up, The crux of it seems to be dspam saying "Unable to determine the runtime user" I think antispam will be running as user uid 10001 for which there is no system account. --user dspam, is set because I have a shared group called dspam Mar 6 17:59:12 piserver imap: antispam: plugin initialising (2.0-notgit) Mar 6 17:59:12 piserver imap: antispam: verbose debug enabled Mar 6 17:59:12 piserver imap: antispam: "Junk" is exact match spam folder Mar 6 17:59:12 piserver imap: antispam: no unsure folders Mar 6 17:59:12 piserver imap: antispam: "Trash" is exact match trash folder Mar 6 17:59:12 piserver imap: antispam: dspam binary set to /usr/bin/dspam Mar 6 17:59:12 piserver imap: antispam: dspam extra arg --deliver= Mar 6 17:59:12 piserver imap: antispam: dspam extra arg --user Mar 6 17:59:12 piserver imap: antispam: dspam extra arg dspam Mar 6 17:59:12 piserver imap: antispam: signature header line is "X-DSPAM-Signature" Mar 6 17:59:18 piserver imap: antispam: mailbox_is_unsure(Junk): 0 Mar 6 17:59:18 piserver imap: antispam: mailbox_is_trash(INBOX): 0 Mar 6 17:59:18 piserver imap: antispam: mailbox_is_trash(Junk): 0 Mar 6 17:59:18 piserver imap: antispam: mail copy: from trash: 0, to trash: 0 Mar 6 17:59:18 piserver imap: antispam: mailbox_is_spam(INBOX): 0 Mar 6 17:59:18 piserver imap: antispam: mailbox_is_spam(Junk): 1 Mar 6 17:59:18 piserver imap: antispam: mailbox_is_unsure(INBOX): 0 Mar 6 17:59:18 piserver imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Mar 6 17:59:18 piserver imap: antispam: /usr/bin/dspam --source=error --class=spam --signature=531890a5293641874011248 --deliver= --user dspam Mar 6 17:59:18 piserver dspam[30868]: Unable to determine the runtime user ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user