-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 06-03-14 19:04, Alan Chandler wrote: > 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
Dspam needs to know who is calling it, so it can check if it's a trusted user. Real question is of course why you are trying to run it as a numeric uid that does not belong to any system account :) If you have a valid reason for doing that (can't really think of any, but it's your call), then try wrapping the call to dspam in the antispam config with sudo: run the command (passwordless) as an existing system user/group. > > 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 > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTGOc5AAoJEJPfMZ19VO/1saQQAKZt84ZiXiHQZQ1dhV1qzLRg zQ5EPVzjBE/3APaLWljpRCzLisPhUMc6c/QTAVspOtI7DIWQyCq8w4qaaFIbScKk mpBdg1qpauB3c51+xX+3+/GFX7YNFGOlzrE7b6Qi0CQUjcQE12b9+oMXoZ3sRnC6 aMnBRxqO6UKdSFQTnxL020fr2LlvRPGwATATWdiRrLIuenbRBwy7RwKRBPpyZHnO aByltSJCGYsfViRnpJufQHRAC4c+p71iyWYOW/ielEjCrM2ox2uGNdNTQup3lF0J SUiifqeM43cdKim28Irtl1V1vCHArxQ217Gv2FYED5KjsSv+iVLPXM5otMCsuECT oGwlSfV2BeCvsIwSZpxF6pcdswdsNMGwf19neyTRKg20uiAMllF8yISviNBM+F0u aXO4jJpqtSOo06QKcpY0aN6PAKMiAhgPpukR08lL3PEnDSu6mg2KrB6ZX3GGExpC pKMfxyvR7/1xztiKhOLrACeGfOZMe9eyQ5tHRGeOv762dEeiJlXaJOdKG6GUjkO6 zzYfxivnLQ6vsT1wwGywCU38sfj5bkk8twkFzc6VqOi4DSgn1xo1XWT5nPFgBYNh W2nCpRzBzOybPdE2WGBLPw9Wx0vD8EcyeW5tRpq3B+vlY1Y09dw4hpyywsS7hoe2 49uAkX9pgSP/J/UPE2Wn =GX0s -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ 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