Hello, I'm trying to setup dovecot-antispam, and even though the configuration and the installation seem to have gone well, dovecot is telling me it's not finding it. Here is the symptom: schmitta at top-wifi ~> /usr/local/Cellar/dovecot/2.2.10/libexec/dovecot/imap -c ~/.dovecotzimbra.rc Fatal: Plugin 'antispam' not found from directory /usr/local/Cellar/dovecot/2.2.10/lib/dovecot However there seems to be a plugin there: schmitta at top-wifi ~> ls -al /usr/local/Cellar/dovecot/2.2.10/lib/dovecot/ | grep antispam -rwxr-xr-x 1 schmitta admin 38460 18 f?v 22:40 lib90_antispam_plugin.bundle I note that it is the only plugin with the ".bundle" extension, if it's important. My configuration file is as follows (I'm not finished with the antispam configuration yet): --8<---------------cut here---------------start------------->8--- protocols = imap mail_location = maildir:~/.Maildir/zimbra:INBOX=~/.Maildir/zimbra/.INBOX default_login_user = _dovenull default_internal_user = _dovecot protocol imap { # mail_plugins = $mail_plugins antispam } protocol lda { log_path = ~/.logs/dovecot-lda-errors.log info_log_path = ~/.logs/dovecot-lda.log mail_plugins = $mail_plugins sieve } plugin { sieve = ~/.dovecot.sieve sieve_plugins = sieve_extprograms sieve_extensions = +vnd.dovecot.filter sieve_filter_bin_dir = /usr/local/lib/dovecot/sieve-filter antispam_backend = DSPAM antispam_signature = X-DSPAM-Signature } --8<---------------cut here---------------end--------------->8--- Should I do something special to be able to load the antispam plugin? Thanks, Alan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 18 Feb 2014, Alan Schmitt wrote:> I'm trying to setup dovecot-antispam, and even though the configuration > and the installation seem to have gone well, dovecot is telling me it's > not finding it. > > schmitta@top-wifi ~> /usr/local/Cellar/dovecot/2.2.10/libexec/dovecot/imap -c ~/.dovecotzimbra.rc > Fatal: Plugin 'antispam' not found from directory /usr/local/Cellar/dovecot/2.2.10/lib/dovecotYou are not running a full Dovecot install, so doveconf -n is not working?> schmitta@top-wifi ~> ls -al /usr/local/Cellar/dovecot/2.2.10/lib/dovecot/ | grep antispam > -rwxr-xr-x 1 schmitta admin 38460 18 fév 22:40 lib90_antispam_plugin.bundle > > I note that it is the only plugin with the ".bundle" extension, if it's > important.what OS is this? Did you've seen some like this: make install Entering directory src. Leaving directory src. Entering directory doc. Leaving directory doc. Entering directory src. Successfully installed lib90_antispam_plugin.so. Leaving directory src. Entering directory doc. Successfully installed dovecot-antispam.7. Leaving directory doc. Does build.mk contain "LIB_SUFFIX=.bundle" ? What happens if you rename lib90_antispam_plugin.bundle to whatever the other plugins are named? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUwRdDXD1/YhP6VMHAQLSkQgA5/PbRq61vkfmZ7MYgn1ObAQxjj421px4 wvEMcMw2dt2tO9pPKiqUJj5Xkj/QnUA1hU13vgdp++0lOQFPTjo2H/t7WsO9tYhX gi6sE7DoUnOGVQDIWP25IT+u3o8Z7zhDZ0hqMc8CW6gftN7AqRW04x6Jj59exVQQ Vtm00UXwJo9jQwb5HLZ2q4OY0eFVaujJFSHXsDYzv0Bh+38rNuSnAGMECwEBRwUa mgK7igeRcA5t8ejfL4TBv3fcrp2KfMISC6X5s7CEH3Aw39SDRP1F95K0MDeLG/7d OobE82iNMzNfI4PL5G4plXwMNcBzZJZOZ+JYrjAzbSy3VS/GxQP29Q==d3fo -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 18 Feb 2014, Alan Schmitt wrote:> I'm trying to setup dovecot-antispam, and even though the configuration > and the installation seem to have gone well, dovecot is telling me it's > not finding it. > > schmitta at top-wifi ~> /usr/local/Cellar/dovecot/2.2.10/libexec/dovecot/imap -c ~/.dovecotzimbra.rc > Fatal: Plugin 'antispam' not found from directory /usr/local/Cellar/dovecot/2.2.10/lib/dovecotYou are not running a full Dovecot install, so doveconf -n is not working?> schmitta at top-wifi ~> ls -al /usr/local/Cellar/dovecot/2.2.10/lib/dovecot/ | grep antispam > -rwxr-xr-x 1 schmitta admin 38460 18 f?v 22:40 lib90_antispam_plugin.bundle > > I note that it is the only plugin with the ".bundle" extension, if it's > important.what OS is this? Did you've seen some like this: make install Entering directory src. Leaving directory src. Entering directory doc. Leaving directory doc. Entering directory src. Successfully installed lib90_antispam_plugin.so. Leaving directory src. Entering directory doc. Successfully installed dovecot-antispam.7. Leaving directory doc. Does build.mk contain "LIB_SUFFIX=.bundle" ? What happens if you rename lib90_antispam_plugin.bundle to whatever the other plugins are named? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUwRdDXD1/YhP6VMHAQLSkQgA5/PbRq61vkfmZ7MYgn1ObAQxjj421px4 wvEMcMw2dt2tO9pPKiqUJj5Xkj/QnUA1hU13vgdp++0lOQFPTjo2H/t7WsO9tYhX gi6sE7DoUnOGVQDIWP25IT+u3o8Z7zhDZ0hqMc8CW6gftN7AqRW04x6Jj59exVQQ Vtm00UXwJo9jQwb5HLZ2q4OY0eFVaujJFSHXsDYzv0Bh+38rNuSnAGMECwEBRwUa mgK7igeRcA5t8ejfL4TBv3fcrp2KfMISC6X5s7CEH3Aw39SDRP1F95K0MDeLG/7d OobE82iNMzNfI4PL5G4plXwMNcBzZJZOZ+JYrjAzbSy3VS/GxQP29Q==d3fo -----END PGP SIGNATURE-----
Alan Schmitt
2014-Feb-19 09:05 UTC
[Dovecot] [Solved] Re: dovecot antispam plugin not found
Hello Steffen, Long story short: changing the plugin extension worked, thanks! Now for the details ... Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> writes:> On Tue, 18 Feb 2014, Alan Schmitt wrote: > >> I'm trying to setup dovecot-antispam, and even though the configuration >> and the installation seem to have gone well, dovecot is telling me it's >> not finding it. >> >> schmitta at top-wifi ~> /usr/local/Cellar/dovecot/2.2.10/libexec/dovecot/imap -c ~/.dovecotzimbra.rc >> Fatal: Plugin 'antispam' not found from directory /usr/local/Cellar/dovecot/2.2.10/lib/dovecot > > You are not running a full Dovecot install, so doveconf -n is not > working?doveconf -n is working: --8<---------------cut here---------------start------------->8--- schmitta at top-wifi ~> doveconf -c ~/.dovecotzimbra.rc -n # 2.2.10: /Users/schmitta/.dovecotzimbra.rc # OS: Darwin 13.0.0 x86_64 default_internal_user = _dovecot default_login_user = _dovenull mail_location = maildir:~/.Maildir/zimbra:INBOX=~/.Maildir/zimbra/.INBOX managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave vnd.dovecot.filter plugin { antispam_backend = DSPAM antispam_signature = X-DSPAM-Signature sieve = ~/.dovecot.sieve sieve_extensions = +vnd.dovecot.filter sieve_filter_bin_dir = /usr/local/lib/dovecot/sieve-filter sieve_plugins = sieve_extprograms } protocols = imap protocol imap { mail_plugins = " antispam" } protocol lda { info_log_path = ~/.logs/dovecot-lda.log log_path = ~/.logs/dovecot-lda-errors.log mail_plugins = " sieve" } --8<---------------cut here---------------end--------------->8--->> schmitta at top-wifi ~> ls -al /usr/local/Cellar/dovecot/2.2.10/lib/dovecot/ | grep antispam >> -rwxr-xr-x 1 schmitta admin 38460 18 f?v 22:40 lib90_antispam_plugin.bundle >> >> I note that it is the only plugin with the ".bundle" extension, if it's >> important. > > what OS is this?OS X 10.9.1> Did you've seen some like this: > > make install > Entering directory src. > Leaving directory src. > Entering directory doc. > Leaving directory doc. > Entering directory src. > Successfully installed lib90_antispam_plugin.so. > Leaving directory src. > Entering directory doc. > Successfully installed dovecot-antispam.7. > Leaving directory doc.Almost (the extension of the plugin was different): --8<---------------cut here---------------start------------->8--- schmitta at top-wifi ~/s/dovecot-antispam-plugin> make install Entering directory src. Leaving directory src. Entering directory doc. Leaving directory doc. Entering directory src. Successfully installed lib90_antispam_plugin.bundle. Leaving directory src. Entering directory doc. Successfully installed dovecot-antispam.7. Leaving directory doc. --8<---------------cut here---------------end--------------->8---> Does build.mk contain "LIB_SUFFIX=.bundle" ?No. I don't have a "build.mk" but a "buildsys.mk", and it has the following regarding LIB_SUFFIX: --8<---------------cut here---------------start------------->8--- schmitta at top-wifi ~/s/dovecot-antispam-plugin> grep LIB_SUFFIX buildsys.mk LIB_SUFFIX = .dylib --8<---------------cut here---------------end--------------->8---> What happens if you rename lib90_antispam_plugin.bundle to whatever the > other plugins are named?That was it! Renaming to ".dylib" did nothing, but renaming to ".so" worked (insofar as the plugin loaded, I'm getting the expected error that antispam plugin folders are not configured). Where should I report this building issue? Is there an antispam bug tracker? Thanks again, Alan