[Dovecot] antispam plugin claims "antispam signature not found"
Hi,
I am trying to setup the antispam plugin using the direct dspam backend. I have set
antispam_signature = X-DSPAM-Signature
in dovecot.conf and in all mails I have signature lines like
X-DSPAM-Signature: 1,49084a24139132188715614
but still, if I try to move a mail into the spam folder, i get the IMAP error message
"antispam signature not found".
I thought it might have to do with permissions and made sure that the user running dovecot is able to execute the dspam binary. I also tried to enable debug logging to syslog (via the .config file in the make process) but I do not see any debug messages showing up; where should these go? to the mail facility?
Perhaps somebody who has a working setup can shed some light on this?
Yours, JC
Some weeks ago I asked a question on the antispam plugin; obviously nobody could help me. I just worked on it again but made no progress. Is actually anybody out there running the antispam plugin with dspam?? I am willing to write a Wiki page for configuring this as soon as I get it to work.
The problem still remains and the outlines are:
- antispam plugin is compiled, configured for dspam and debug is switched on.
- plugin starts with dovecot and throws debug info to /var/log/messages (debug logging activated via syslog)
- as soon as I move a message into the spam folder it gives an error message saying "antispam signature not found"
I checked that the given location for the dspam executable is correct, that the user executing it (dovecot?) is actually able to execute dspam and that dspam trusts this user. I triple-checked that the signature is configured correctly. I have lines like
X-DSPAM-Signature: 1,49084a24139132188715614
in all mails and my plugin conf says
# mail signature (used with any backend requiring a signature)
antispam_signature = X-DSPAM-Signature
I do not get any error messages in the debug output, only dovecot says: dovecot: Nov 09 13:19:40 Error: IMAP(****): Next message unexpectedly lost from 49
Any ideas? How can I get a more specific debugging for the signature? Or might this still be a permission problem?
Here is my plugin config:
# antispam plugin - learn spam from folder antispam_signature = X-DSPAM-Signature antispam_spam = spam antispam_dspam_binary = /usr/local/bin/dspam
Regards, Jakob
On Sunday 09 November 2008, Jakob Curdes wrote:
Some weeks ago I asked a question on the antispam plugin; obviously nobody could help me. I just worked on it again but made no progress. Is actually anybody out there running the antispam plugin with dspam?? I am willing to write a Wiki page for configuring this as soon as I get it to work.
The problem still remains and the outlines are:
- antispam plugin is compiled, configured for dspam and debug is switched on.
- plugin starts with dovecot and throws debug info to /var/log/messages (debug logging activated via syslog)
- as soon as I move a message into the spam folder it gives an error message saying "antispam signature not found"
I checked that the given location for the dspam executable is correct, that the user executing it (dovecot?) is actually able to execute dspam and that dspam trusts this user. I triple-checked that the signature is configured correctly. I have lines like
X-DSPAM-Signature: 1,49084a24139132188715614
in all mails and my plugin conf says
# mail signature (used with any backend requiring a signature) antispam_signature = X-DSPAM-Signature
I do not get any error messages in the debug output, only dovecot says: dovecot: Nov 09 13:19:40 Error: IMAP(****): Next message unexpectedly lost from 49
Any ideas? How can I get a more specific debugging for the signature? Or might this still be a permission problem?
Here is my plugin config:
# antispam plugin - learn spam from folder antispam_signature = X-DSPAM-Signature antispam_spam = spam antispam_dspam_binary = /usr/local/bin/dspam
Regards, Jakob
Personally, I don't set anything but the spam folder, trash folder names and the args to pass to the dspam executable. It works here flawlessly.
plugins { antispam_trash = trash;Trash;Deleted Items antispam_spam = SPAM;Spam;Junk antispam_dspam_args = --client;--deliver=;--user;%u }
-- Elisamuel Resto samuel@dragonboricua.net Source Mage Tome Lead / http://sourcemage.org GPG ID: 18615F19/1024D / http://simplysam.us
plugins { antispam_trash = trash;Trash;Deleted Items antispam_spam = SPAM;Spam;Junk antispam_dspam_args = --client;--deliver=;--user;%u
I am using dspam in a different setup; I run it under amavis so the user is always the user amavis. I don't run a daemon so --client makes no sense. What does "deliver=" do? Is that the same as "deliver=innocent,spam" ?
I think it must be related to permissions in some way but I do not see how. I would like to debug it further but am no C programmer. I cannot see why it is not able to extract the signature.
JC
On Sunday 09 November 2008, Jakob Curdes wrote:
plugins { antispam_trash = trash;Trash;Deleted Items antispam_spam = SPAM;Spam;Junk antispam_dspam_args = --client;--deliver=;--user;%u
I am using dspam in a different setup; I run it under amavis so the user is always the user amavis. I don't run a daemon so --client makes no sense. What does "deliver=" do? Is that the same as "deliver=innocent,spam" ?
I think it must be related to permissions in some way but I do not see how. I would like to debug it further but am no C programmer. I cannot see why it is not able to extract the signature.
JC
Yes, you are correct about not needing '--client' in your case. '--deliver=' means deliver nothing, just process it. Since I don't use quarantine on my setup, and the message is existent already in IMAP, there is no need to deliver anything.
-- Elisamuel Resto samuel@dragonboricua.net Source Mage General Guru / http://sourcemage.org GPG ID: 18615F19/1024D / http://simplysam.us
participants (2)
-
Elisamuel Resto
-
Jakob Curdes