[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 skdove...@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@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@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@top-wifi ~ ls -al /usr/local/Cellar/dovecot/2.2.10/lib/dovecot/ | grep antispam -rwxr-xr-x 1 schmitta admin38460 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@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@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
Re: [Dovecot] Virtual folder for selected users only? (1.2.15)
Am 19.02.2014 02:52, schrieb Benny Pedersen: On 2014-02-18 14:28, Robert Schetterer wrote: Am 18.02.2014 13:42, schrieb Sebastian Schäfer: dovecot --version 1.2.15 thats very outdated, you should upgrade 2.1.x / 2.2.x latest outdated?, well its still very stable here on gentoo, and upgradeing is not just emerge dovecot, this is why i keep 1.2.17 self here can you stop that again and again? * it IS outdated at all * it IS outdated even if we speak about 1.2.x signature.asc Description: OpenPGP digital signature
[Dovecot] BUG antispam build chain uses wrong extension for plugin (was Re: [Solved] Re: dovecot antispam plugin not found)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 19 Feb 2014, Alan Schmitt wrote: # 2.2.10: /Users/schmitta/.dovecotzimbra.rc # OS: Darwin 13.0.0 x86_64 --8---cut here---start-8--- schmitta@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--- --8---cut here---start-8--- schmitta@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? Let's post it here with BUG antispam subject :-) - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUwR+x3D1/YhP6VMHAQIF4AgAgPVwA/U7mKmhW/7ryMYP0HIekYJEv+UB MOAtgDpBEARLBAwMv2BVwk9XFvlzuhT8TrhSz0eGMxEvpYAG01nlVGt1/jgAfRWa aozBWiGWVSfnU+Smw9U3OO0fd4hof1lz7odAgP82R3r+xvuslhSlmAG0G/zaP9SN qtCn94Nf2Aa2dXqdUydzdDKygStKQ5Okm+L2ML/EhCfM0RZzil6J0lfKylJDOJ04 sNpd0tcr0hvUCpaqwLegqgTUukWrOtdiZv9MscxFlb53HhA2IehgJsyFeAAPlsen V7fd6huyQJRnbF9uBLeMQ24k+3wKiX5xkPPp3upncwwTlHweV/l2QA== =+eBD -END PGP SIGNATURE-
Re: [Dovecot] Filtering spam in an offlineimap + dovecot setup
Hi Damon, d...@member.fsf.org (Damon K. Haley) writes: Here are my relevant config files: https://github.com/dhaley/feedyourbaby/blob/master/conf.d/15-lda.conf https://github.com/dhaley/feedyourbaby/blob/master/conf.d/90-sieve.conf Hopefully that helps, although I'm guessing you've already figured it out. Thanks. I found out how to call dovecot as a lda from fetchmail, but could not see how to do it from offlineimap. So I'm now using the following architecture, which works well in practice but is a little bit complex. #+begin_example ++ +---+ imap sync +--+ ++ |mail clients|-|remote imap|--|local imap|--| mail clients | |(webmail, | +---+(offlineimap) |(dovecot) | |(gnus, Mail.app)| | smartphone)| |+--+ ++ ++ V ^ | | fetch mail and filter it| | \__/ | (fetchmail + dovecot lda) | | ++ +---+ |mail storage|-| mail indexing | | (maildir) | | (notmuch) | ++ +---+ #+end_example Alan
Re: [Dovecot] Filtering spam in an offlineimap + dovecot setup
Am 19.02.2014 12:20, schrieb Alan Schmitt: Hi Damon, d...@member.fsf.org (Damon K. Haley) writes: Here are my relevant config files: https://github.com/dhaley/feedyourbaby/blob/master/conf.d/15-lda.conf https://github.com/dhaley/feedyourbaby/blob/master/conf.d/90-sieve.conf Hopefully that helps, although I'm guessing you've already figured it out. Thanks. I found out how to call dovecot as a lda from fetchmail, but could not see how to do it from offlineimap. So I'm now using the following architecture, which works well in practice but is a little bit complex. #+begin_example ++ +---+ imap sync +--+ ++ |mail clients|-|remote imap|--|local imap|--| mail clients | |(webmail, | +---+(offlineimap) |(dovecot) | |(gnus, Mail.app)| | smartphone)| |+--+ ++ ++ V ^ | | fetch mail and filter it| | \__/ | (fetchmail + dovecot lda) | | ++ +---+ |mail storage|-| mail indexing | | (maildir) | | (notmuch) | ++ +---+ #+end_example Alan guess not what you want but using getmail maybe more easy i.e like https://sys4.de/de/blog/2013/04/12/abholdienst-fur-mail/ Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Re: [Dovecot] Filtering spam in an offlineimap + dovecot setup
Hi Robert, Robert Schetterer r...@sys4.de writes: guess not what you want but using getmail maybe more easy i.e like https://sys4.de/de/blog/2013/04/12/abholdienst-fur-mail/ Thank you for the suggestion. It seems like using getmail would allow me to avoid needing the extprograms pigeonhole plugin. Another nice thing is that it does not need to have the IMAP password in clear text. I'll definitely give it a try. Alan
[Dovecot] ID command and dovecot
Heya, we are seeing some strange issues with IMAP ID command using latest Roundcube builds on dovecot 2.2.10 responding Input buffer full, aborting. Roundcube webmail connects to IMAP server and issues ID command first with some long arguments to ID command, however shorter than 1024 octets, which are specified in RFC2971 for ID IMAP extension. The situation is easily reproducible (see http://pastebin.com/q4HX4wqb): # telnet hostname 143 * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Server ready. . ID (name Roundcube version 1.0-git php 5.3.3 os Linux command $long_less_than_1024_octets_string) * BYE Input buffer full, aborting However, this problem does not occur when user is already logged in. RFC2971 is saying Field strings MUST NOT be longer than 30 octets. Value strings MUST NOT be longer than 1024 octets. Implementations MUST NOT send more than 30 field-value pairs. IMHO, dovecot is handling ID command before successful login successfully only if the length of the whole command is less than 1024 octets (exactly 861 octets is working fine, over that Input buffer full occurs). I tried finding the reference in the source code, however I am unable to find where this limit actually occurs (maybe IMAP_ARG_STRING imap_arg-type?) thank you in advance, regards, Jernej
Re: [Dovecot] Use header from instead envelope sender - quota exceed
On 2014-02-18 7:44 AM, pgala pg...@ospartner.pl wrote: i want use dovecot and plugin quota to inform users about exceeded space. I also configure postfix to rewrite envelope_sender so envelope_senderheader: from. Not sure I understand this, but if you are saying what I think you are saying, why on earth would you do this? This totally BREAKS smtp. The null envelope sender is used for very specific reasons, and you simply should NEVER rewrite it, unless you have a very special use case and know precisely what you are doing and why.
Re: [Dovecot] Use header from instead envelope sender - quota exceed
Am 19.02.2014 14:24, schrieb Charles Marcus: On 2014-02-18 7:44 AM, pgala pg...@ospartner.pl wrote: i want use dovecot and plugin quota to inform users about exceeded space. I also configure postfix to rewrite envelope_sender so envelope_senderheader: from. Not sure I understand this, but if you are saying what I think you are saying, why on earth would you do this? This totally BREAKS smtp. The null envelope sender is used for very specific reasons he does not talk about the null envelope he tries to send back to the not relevant from-header and ignore the envelope-sender which is not much better do not violate SMTP there is a reason that the return path exists instead break RFCs please do yourself and any other mailuser on this earth which maybe randomly affected by your misconfigurations a favour and read documentations mailservers are a dangerous playground signature.asc Description: OpenPGP digital signature
[Dovecot] virtualfolders all mails minus duplicates
Hello everyone, i'm trying to mess up a bit with virtual folders and i'm trying to perform something like this: i'd like to create an IMAP virtual folder which shows me all the emails in in INBOX and subfolders but by removing duplicates what i mean as duplicates? simply i can recognize duplicate emails as the ones with the same message-id in the header (this was just an idea). in that way if i have a message which is present in more then one folder then it's displayed only once. i considered the idea of using message-id in the header as a criteria, but i don't know if this can be done in this way or in any way at all. any suggestion is really welcome. i'm using dovecot 1.2.15. this is a namespace example just for reference: for INBOX: namespace private { separator = . prefix = INBOX. #subscriptions = yes #list = no inbox = yes } for virtuals: namespace private { prefix = v. separator = . location = virtual:/var/utenti/%Ld/%n/VirtualFolders list = yes inbox = no subscriptions = yes hidden = no } as of now i'm running a virtualfolder which shows messages flagged as important which is done like this: INBOX INBOX.* all flagged hope you can provide me with some hints. Thanks very much Francesco
Re: [Dovecot] virtualfolders all mails minus duplicates
Am 19.02.2014 17:33, schrieb Francesco: Hello everyone, i'm trying to mess up a bit with virtual folders and i'm trying to perform something like this: i'd like to create an IMAP virtual folder which shows me all the emails in in INBOX and subfolders but by removing duplicates what i mean as duplicates? simply i can recognize duplicate emails as the ones with the same message-id in the header (this was just an idea). in that way if i have a message which is present in more then one folder then it's displayed only once. i considered the idea of using message-id in the header as a criteria, but i don't know if this can be done in this way or in any way at all. any suggestion is really welcome. i'm using dovecot 1.2.15. this is a namespace example just for reference: for INBOX: namespace private { separator = . prefix = INBOX. #subscriptions = yes #list = no inbox = yes } for virtuals: namespace private { prefix = v. separator = . location = virtual:/var/utenti/%Ld/%n/VirtualFolders list = yes inbox = no subscriptions = yes hidden = no } as of now i'm running a virtualfolder which shows messages flagged as important which is done like this: INBOX INBOX.* all flagged hope you can provide me with some hints. Thanks very much Francesco not really the same but for pop3 cons which should see global sieve prefiltered spam mails in Imap Junk Folder https://sys4.de/de/blog/2013/02/11/dovecot-virtual-setup-mit-globaler-sieve-spamfilter-regel-fur-pop3-nutzer/ sorry german ,but config might give you ideas how to solve your stuff Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
[Dovecot] Enable mail logger plugin
Hello, I'm trying to get more info about user activity (especially when they delete some email). So, I follow info from http://wiki2.dovecot.org/Plugins/MailLog to enabled mail logger plugin, but I don't see anything in my logs. Can you tell me what I'm missing ? Thanks. # doveconf -n # 2.2.10.3: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4 auth_mechanisms = plain login base_dir = /var/run/dovecot/ hostname = mail.numeezy.com imap_capability = +XLIST lda_mailbox_autocreate = yes listen = 188.165.154.169 login_greeting = Ready. mail_gid = 5000 mail_location = maildir:/var/vmail/%d/%n/Maildir mail_plugins = quota mail_log notify mail_privileged_group = mail mail_uid = 5000 namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } mailbox name { special_use = \Drafts \Junk \Sent \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { antispam_backend = mailtrain antispam_mail_notspam = --ham antispam_mail_sendmail = /usr/local/bin/sa-learn-pipe.sh antispam_mail_spam = --spam antispam_spam = Junk antispam_trash = Trash mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size quota = dict:user::file:/var/vmail/%d/%n/.quotausage quota_grace = 10%% quota_rule = Trash:storage=+200M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = /var/vmail/%d/%n/.sieve sieve_before = /etc/dovecot/sieve_before sieve_vacation_send_from_recipient = yes } postmaster_address = postmas...@numeezy.com protocols = imap pop3 service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } service_count = 1 } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } service_count = 1 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { mode = 0666 user = vmail } user = vmail } ssl_cert = /etc/postfix/smtpd.cert ssl_key = /etc/postfix/smtpd.key userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocol lda { mail_plugins = sieve quota } protocol imap { mail_max_userip_connections = 80 mail_plugins = quota imap_quota antispam } protocol pop3 { mail_max_userip_connections = 30 mail_plugins = quota }
Re: [Dovecot] Enable mail logger plugin
Am 2014-02-19 22:24, schrieb Alexandre Ellert: Hello, I'm trying to get more info about user activity (especially when they delete some email). So, I follow info from http://wiki2.dovecot.org/Plugins/MailLog to enabled mail logger plugin, but I don't see anything in my logs. Can you tell me what I'm missing ? Thanks. It is quite tough to read through such a long config. Skimming through though, and I am not an expert at all, it looks like your mail_plugins line comes in front of other mail_plugins lines. Maybe the later ones override yours? In /etc/dovecot/local.conf I have mail_plugins = $mail_plugins mail_log notify and this works nicely, maybe because local.conf will be executed after the other config files? (That line also keeps the previously requested ones…) # doveconf -n # 2.2.10.3: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4 auth_mechanisms = plain login base_dir = /var/run/dovecot/ hostname = mail.numeezy.com imap_capability = +XLIST lda_mailbox_autocreate = yes listen = 188.165.154.169 login_greeting = Ready. mail_gid = 5000 mail_location = maildir:/var/vmail/%d/%n/Maildir mail_plugins = quota mail_log notify mail_privileged_group = mail mail_uid = 5000 namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } mailbox name { special_use = \Drafts \Junk \Sent \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { antispam_backend = mailtrain antispam_mail_notspam = --ham antispam_mail_sendmail = /usr/local/bin/sa-learn-pipe.sh antispam_mail_spam = --spam antispam_spam = Junk antispam_trash = Trash mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size quota = dict:user::file:/var/vmail/%d/%n/.quotausage quota_grace = 10%% quota_rule = Trash:storage=+200M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = /var/vmail/%d/%n/.sieve sieve_before = /etc/dovecot/sieve_before sieve_vacation_send_from_recipient = yes } postmaster_address = postmas...@numeezy.com protocols = imap pop3 service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } service_count = 1 } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } service_count = 1 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { mode = 0666 user = vmail } user = vmail } ssl_cert = /etc/postfix/smtpd.cert ssl_key = /etc/postfix/smtpd.key userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocol lda { mail_plugins = sieve quota } protocol imap { mail_max_userip_connections = 80 mail_plugins = quota imap_quota antispam } protocol pop3 { mail_max_userip_connections = 30 mail_plugins = quota } -- peter
Re: [Dovecot] Bug Report
Since I’m obviously using version 2.2.5, which is apparently a supported version by dovecot, I’d still maintain that it should be submitted as a bug. I’ve also submitted the bug to Apple as well. Regardless, has anyone compiled a drop-in update that supports Apple Push Notifications, Sieve, and Open Directory? I’m trying to, but the first two are causing my configuration files to fail. -- - Jon On Feb 17, 2014, at 5:21 PM, Reindl Harald h.rei...@thelounge.net wrote: since you are obviously using the binary shipped with Mac OSX and packaged by Apple Inc. which is heavily outdated while current dovecot is version 2.2.12 you may complain to Apple Inc. Am 18.02.2014 00:19, schrieb Jon Thompson: So when I try and create a sub mailbox in shared-folders, I get this error… imap(pid 56143 user -): Fatal: master: service(imap): child 56143 killed with signal 11 (core dumps disabled) I’ve not been able to figure out how to get dovecot in OS X to core dump, so I haven’t included that. The documentation on the web doesn’t seem to apply to the version Apple ships. Here’s dovecotd -n, with the ssl certs removed and the domain replaced with the word domain. # 2.2.5: /Library/Server/Mail/Config/dovecot/dovecot.conf
Re: [Dovecot] Enable mail logger plugin
On Feb 19, 2014, at 1:24 PM, Alexandre Ellert aell...@numeezy.com wrote: Hello, I'm trying to get more info about user activity (especially when they delete some email). So, I follow info from http://wiki2.dovecot.org/Plugins/MailLog to enabled mail logger plugin, but I don't see anything in my logs. Can you tell me what I'm missing ? Thanks. # doveconf -n ... mail_location = maildir:/var/vmail/%d/%n/Maildir mail_plugins = quota mail_log notify mail_privileged_group = mail mail_uid = 5000 ... protocol imap { mail_max_userip_connections = 80 mail_plugins = quota imap_quota antispam } protocol pop3 { mail_max_userip_connections = 30 mail_plugins = quota } I see mail_plugins = quota mail_log notify at the top there, but in the protocol imap block it's mail_plugins = quota imap_quota antispam. Doesn't the imap block override the global setting? Sean