[Dovecot] dovecot-antispam: pipe backend with spamc failing to parse args

Micah Anderson micah at riseup.net
Thu Dec 15 02:37:36 EET 2011


I'm trying to get the pipe backend to work with the new
dovecot-antispam (I was very pleased to see the new version, thanks
Johannes!)

Before I would run the following over the maildir: 

spamc -d 10.0.1.109 -L ham < $file 2>&1 > /dev/null

now, i'm using dovecot-antispam and mdbox and have the following
configured:

antispam_backend = pipe
antispam_signature = X-Spam-Flag
antispam_signature_missing = error
antispam_trash_pattern = trash;Trash;Deleted *
antispam_spam_pattern_ignorecase = SPAM
antispam_pipe_tmpdir = /var/tmp
antispam_pipe_program_spam_arg = -L spam
antispam_pipe_program_notspam_arg = -L ham
antispam_pipe_program = /usr/bin/spamc
antispam_pipe_program_args = -d 10.0.1.109

Now, when I move a message to Spam, dovecot-antispam detects it and
attempts to run, but it fails:

Dec 14 16:22:45 grosbeak [username 10.0.1.74 uid]: antispam: run program
failed with exit code 64

Exit code 64 is spamc's exit code for "command line usage error" - but I
can't see exactly the command that is being constructed by
dovecot-antispam to know where the error is.

Any ideas?
micah

-- 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20111214/9ace5dda/attachment.bin>


More information about the dovecot mailing list