Re: [Dovecot] dovecot-antispam: pipe backend with spamc failing to parse args
On 15/12/11 01:37, Micah Anderson wrote: 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!) 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. I use dspam as backend, but multiple args need to be specified separated by semicolons (';') if spaces aare needed on the original commandline. i.e.: 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 Note that this is the fork from Eugene as documented on the wiki, which is based on the same code. Did I miss the announcement from Johannes somewhere?:) -- Regards, Tom
[Dovecot] dovecot-antispam: pipe backend with spamc failing to parse args
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 21 /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 -- pgpvqEZKd1stL.pgp Description: PGP signature