?Hi All, I am using dovecot? version 2.0.9 DSPAM Anti-Spam Suite 3.10.2 (agent/library) ClamAV 0.97.7/17102 and dspam antispam plugin ?dovecot-antispam-plugin-43880985e3dd and plugin configuration is given below: protocol imap { ? mail_plugins = " antispam autocreate" } protocol pop3 { ? mail_plugins = antispam autocreate } plugin { ? antispam_allow_append_to_spam = YES ? antispam_backend = dspam ? antispam_crm_args = --config=/home/vmail ? antispam_dspam_args = --client;--user vmail ? antispam_dspam_binary = /usr/bin/dspam ? antispam_dspam_notspam = --class=innocent ? antispam_dspam_result_header = X-DSPAM-Result ? antispam_dspam_spam = --class=spam ? antispam_mail_tmpdir = /tmp ? antispam_signature = X-DSPAM-Signature ? antispam_signature_missing = error ? antispam_spam = Spam } dspam bin path: [root at sogo ~]# which dspam /usr/bin/dspam but my dspam plugin configuration is not working. and I am not getting any log from dspam. My dspam server is working prefect. cna anyone help me Regard's Ravi Kanchan Sharma
On Tue, 30 Apr 2013 12:36:44 +0300, Ravi Kanchan <ravi_kanchan2004 at yahoo.com> wrote:> I am using dovecot version 2.0.9 > DSPAM Anti-Spam Suite 3.10.2 (agent/library) > ClamAV 0.97.7/17102 > > and dspam antispam plugin > dovecot-antispam-plugin-43880985e3ddThat is quite an old revision. However, there were no significant changes since then. If you update to the latest revision you might need to revert 5e8351bcfb29, given your dovecot version.> and plugin configuration is given below: > > protocol imap { > mail_plugins = " antispam autocreate" > } > protocol pop3 { > mail_plugins = antispam autocreate > }I'm not sure this plugin could be used with POP3.> plugin { > antispam_allow_append_to_spam = YES > antispam_backend = dspam > antispam_crm_args = --config=/home/vmailThis line isn't used for dspam backend.> antispam_dspam_args = --client;--user vmail"--user vmail" is treated like a single argument due to missing semicolon. That is definitely not what you want. Put it like "--client;--user;vmail". Also, you might consider adding these two: "--source=error;--signature=%%s". But I've never used dspam, so can't know for sure.> antispam_dspam_binary = /usr/bin/dspam > antispam_dspam_notspam = --class=innocentThese are default, could be removed.> antispam_dspam_result_header = X-DSPAM-Result > antispam_dspam_spam = --class=spamThis last line could also be removed because it's default.> antispam_mail_tmpdir = /tmpNo such setting at all for this plugin.> antispam_signature = X-DSPAM-Signature > antispam_signature_missing = errorAgain, default.> antispam_spam = Spam > } > > dspam bin path: > > [root at sogo ~]# which dspam > /usr/bin/dspam > > but my dspam plugin > configuration is not working. and I am not getting any log from > dspam. My dspam server is working prefect. > > cna anyone help mePlease fix antispam_dspam_args and let me know whether it works. -- Eugene Paskevich | *==)----------- | Plug me into eugene at raptor.kiev.ua | -----------(==* | The Matrix
On 30-04-13 17:14, Eugene Paskevich wrote:> On Tue, 30 Apr 2013 15:56:19 +0300, Ravi Kanchan > <ravi_kanchan2004 at yahoo.com> wrote: > >> thank you for your valuable response >> >> >> I have changed the configuration as per your suggestion. > > Try putting it this way: > > plugin { > antispam_spam = Spam > antispam_allow_append_to_spam = YES > antispam_backend = dspam > antispam_dspam_args > --client;--user;vmail;--source=error;--signature=%%s > antispam_dspam_result_header = X-DSPAM-Result > antispam_signature = X-DSPAM-Signature > } >I run dovecot, dspam and antispam plugin on dovecot 2.1.16 with: plugin { antispam_backend = dspam antispam_dspam_args --user;mail;--deliver=;--source=error;--signature=%%s antispam_dspam_binary = /usr/bin/dspamc antispam_dspam_notspam = --class=innocent antispam_dspam_spam = --class=spam antispam_signature = X-DSPAM-Signature antispam_signature_missing = move antispam_spam_pattern_ignorecase = Junk;Junk.* antispam_trash_pattern_ignorecase = Trash;Deleted Items;Deleted Messages } And it works great :) -- Tom