Micah Anderson
2011-Dec-15 00:37 UTC
[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 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-0004.bin>
Tom Hendrikx
2011-Dec-15 10:55 UTC
[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
Apparently Analagous Threads
- antispam plugin, pipe backend, how to make it work?
- Exit status code 134; what is it, in the context of Dovecot Antispam plug-in?
- antispam plugin pipe backend error when moving multiple emails
- plugin antispam sa-learn run program failed with exit code -1
- [SERVERBUG] failed to send mail with SA and antispam plugin