[Dovecot] letters local filter duplicated
two servers with replicated master/master. dovecot.conf = http://pastebin.com/jVnvyWZM with this setup letters processed local filter duplicated. ie when the mail client receives a letter begins processing using rules (filters) to move the letters in a different folder. summarized in this folder is two duplicate letters. if you disable the filter, the message is not duplicated. But does not move to another location. -- Best Regards, Evgeny Senior System Administrator OOO Vaz Service Hurley
Re: [Dovecot] FTS solr issue with second private namespace
Am 02.12.2013 12:00, schrieb Andreas Oster: Hi all, I have just stumbled over an issue with the FTS plugin of dovecot. For our primary namespace, INBOX and its subfolders, searching works without any problems but in a second namespace, which I have created for old/archived mails, searching of the mail text/body does not work. I can see the search request in the tomcat log but no result is created and the mail client (Thunderbird) keeps displaying the serach message without returning any results. Tomcat6 catalina.out: Dez 02, 2013 11:58:00 AM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={fl=uid,scoresort=uid+ascq=body:schillerfq=%2Bbox:1b4de60d0a6287522d0c4424cda4+%2Buser:testuserrows=2} hits=0 status=0 QTime=1 I am currently using Dovecot 2.2.9 and do not have any special FTS config: mail_plugins = quota mailbox_alias fts fts_solr plugin { fts = solr fts_solr = break-imap-search url=http://localhost:8080/solr/ fts_autoindex = yes } Thank you for your kind help best regards Andreas Hi all, does nobody have an idea what could be the cause of this issue or has run into the same problem with fts ? Thank you for your kind help best regards Andreas
[Dovecot] file descriptor errors
Hi, I use dovecot 2.2.9 on Gentoo Linux and I get lots of these erors in my log file: Dec 4 08:53:37 mx dovecot: auth: Error: close failed in file object destructor: Dec 4 08:53:37 mx dovecot: auth: Error: IOError: [Errno 9] Bad file descriptor What could cause these error messages? My mailboxes are stored on an ext4 filesystem: /dev/vdb1 on /srv/mail type ext4 (rw,noatime) doveconf -n: # OS: Linux 3.11.2-hardened x86_64 Gentoo Base System release 2.2 ext4 auth_master_user_separator = * auth_mechanisms = plain login auth_verbose = yes disable_plaintext_auth = no imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes mail_access_groups = mail mail_attachment_dir = /srv/mail/copymail/attachments mail_gid = mail mail_location = maildir:/srv/mail/virtual/%d/%n mail_plugins = quota acl zlib mail_log notify mail_privileged_group = mail mail_uid = vmail 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 namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk-E-Mail { auto = subscribe special_use = \Junk } mailbox Junk { special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = INBOX. } passdb { args = /usr/local/sbin/ispcp-decrypt.py driver = checkpassword } plugin { acl = vfile acl_shared_dict = file:/srv/mail/virtual/shared-mailboxes.db quota = dict:User quota::file:/srv/mail/virtual/%d/%n/dovecot-quota quota_rule = *:storage=300M:messages=2 quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve zlib_save = gz zlib_save_level = 6 } postmaster_address = postmas...@deltaweb.de protocols = imap pop3 lmtp sieve service auth-worker { extra_groups = ssl-cert unix_listener auth-worker { mode = 0600 user = vmail } user = vmail } service auth { extra_groups = ssl-cert unix_listener /var/spool/postfix.relay/private/auth { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0660 user = vmail } user = vmail } service config { unix_listener config { mode = 0600 user = vmail } } service dict { unix_listener dict { mode = 0600 user = vmail } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } service lmtp { inet_listener lmtp { address = ::1 port = 24 } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } } service quota-status { client_limit = 1 executable = quota-status -p postfix inet_listener { port = 12340 } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = dovecot } ssl_cert = /etc/ssl/certs/mx_deltaweb_de.crt ssl_key = /etc/ssl/private/mx_deltaweb_de.key userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol lmtp { mail_plugins = quota acl zlib mail_log notify sieve } protocol lda { mail_plugins = quota acl zlib mail_log notify sieve } protocol imap { mail_max_userip_connections = 50 mail_plugins = quota acl zlib mail_log notify imap_quota imap_acl imap_zlib } Thanks in advance -Christian Rößner -- Bachelor of Science Informatik Erlenwiese 14, 36304 Alsfeld T: +49 6631 78823400, F: +49 6631 78823409, M: +49 176 93118939 USt-IdNr.: DE225643613, http://www.roessner-network-solutions.com smime.p7s Description: S/MIME cryptographic signature
Re: [Dovecot] Complete migration from Cyrus on remote server
On 2013-12-03 22:55, Oscar del Rio wrote: On 12/ 3/13 02:17 PM, Timo Sirainen wrote: On 3.12.2013, at 16.01, Alan McGinlay - SICS al...@sics.se wrote: * I have looked at dsync but the docs state that the mailbox should not be accessed during sync, this is not possible for me (it doesn't say why this is the case however) dsync is intended for these kinds of migrations. I’m not sure where you read that mailbox shouldn’t be accessed during it? http://wiki2.dovecot.org/Migration/Dsync The source IMAP/POP3 mailboxes shouldn't be modified while dsync is running. Thanks, yes indeed that is where I read that factoid. So what does that mean, it works but might produce corrupt messages on the receiver if the other side is accessed simultaneously? I did actually use Imapsync without first blocking access and it seemed to work (aside from the UID issues i mentioned)
[Dovecot] file descriptor errors
Hi, I use dovecot 2.2.9 on Gentoo Linux and I get lots of these erors in my log file: Dec 4 08:53:37 mx dovecot: auth: Error: close failed in file object destructor: Dec 4 08:53:37 mx dovecot: auth: Error: IOError: [Errno 9] Bad file descriptor What could cause these error messages? My mailboxes are stored on an ext4 filesystem: /dev/vdb1 on /srv/mail type ext4 (rw,noatime) doveconf -n: # OS: Linux 3.11.2-hardened x86_64 Gentoo Base System release 2.2 ext4 auth_master_user_separator = * auth_mechanisms = plain login auth_verbose = yes disable_plaintext_auth = no imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes mail_access_groups = mail mail_attachment_dir = /srv/mail/copymail/attachments mail_gid = mail mail_location = maildir:/srv/mail/virtual/%d/%n mail_plugins = quota acl zlib mail_log notify mail_privileged_group = mail mail_uid = vmail 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 namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk-E-Mail { auto = subscribe special_use = \Junk } mailbox Junk { special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = INBOX. } passdb { args = /usr/local/sbin/ispcp-decrypt.py driver = checkpassword } plugin { acl = vfile acl_shared_dict = file:/srv/mail/virtual/shared-mailboxes.db quota = dict:User quota::file:/srv/mail/virtual/%d/%n/dovecot-quota quota_rule = *:storage=300M:messages=2 quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve zlib_save = gz zlib_save_level = 6 } postmaster_address = postmas...@deltaweb.de protocols = imap pop3 lmtp sieve service auth-worker { extra_groups = ssl-cert unix_listener auth-worker { mode = 0600 user = vmail } user = vmail } service auth { extra_groups = ssl-cert unix_listener /var/spool/postfix.relay/private/auth { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0660 user = vmail } user = vmail } service config { unix_listener config { mode = 0600 user = vmail } } service dict { unix_listener dict { mode = 0600 user = vmail } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } service lmtp { inet_listener lmtp { address = ::1 port = 24 } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } } service quota-status { client_limit = 1 executable = quota-status -p postfix inet_listener { port = 12340 } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = dovecot } ssl_cert = /etc/ssl/certs/mx_deltaweb_de.crt ssl_key = /etc/ssl/private/mx_deltaweb_de.key userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol lmtp { mail_plugins = quota acl zlib mail_log notify sieve } protocol lda { mail_plugins = quota acl zlib mail_log notify sieve } protocol imap { mail_max_userip_connections = 50 mail_plugins = quota acl zlib mail_log notify imap_quota imap_acl imap_zlib } Thanks in advance -Christian Rößner -- [*] 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, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [Dovecot] file descriptor errors
Hi, just a short question: I had sent exactly this same email with a wrong email address (not the c...@sys4.de) and unfortunately I was to late deleting it in Mailman. Now I get replies to the c...@roessner-network-solutions.com address, which will not succeed at the moment, because of DMARC policy. So if you already sent answers, could you please email it again to the c...@sys4.de mail. Thanks a lot in advance Am 04.12.2013 um 10:50 schrieb Christian Rößner c...@sys4.de: Hi, I use dovecot 2.2.9 on Gentoo Linux and I get lots of these erors in my log file: Dec 4 08:53:37 mx dovecot: auth: Error: close failed in file object destructor: Dec 4 08:53:37 mx dovecot: auth: Error: IOError: [Errno 9] Bad file descriptor What could cause these error messages? My mailboxes are stored on an ext4 filesystem: /dev/vdb1 on /srv/mail type ext4 (rw,noatime) doveconf -n: # OS: Linux 3.11.2-hardened x86_64 Gentoo Base System release 2.2 ext4 auth_master_user_separator = * auth_mechanisms = plain login auth_verbose = yes disable_plaintext_auth = no imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes mail_access_groups = mail mail_attachment_dir = /srv/mail/copymail/attachments mail_gid = mail mail_location = maildir:/srv/mail/virtual/%d/%n mail_plugins = quota acl zlib mail_log notify mail_privileged_group = mail mail_uid = vmail 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 namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk-E-Mail { auto = subscribe special_use = \Junk } mailbox Junk { special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = INBOX. } passdb { args = /usr/local/sbin/ispcp-decrypt.py driver = checkpassword } plugin { acl = vfile acl_shared_dict = file:/srv/mail/virtual/shared-mailboxes.db quota = dict:User quota::file:/srv/mail/virtual/%d/%n/dovecot-quota quota_rule = *:storage=300M:messages=2 quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve zlib_save = gz zlib_save_level = 6 } postmaster_address = postmas...@deltaweb.de protocols = imap pop3 lmtp sieve service auth-worker { extra_groups = ssl-cert unix_listener auth-worker { mode = 0600 user = vmail } user = vmail } service auth { extra_groups = ssl-cert unix_listener /var/spool/postfix.relay/private/auth { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0660 user = vmail } user = vmail } service config { unix_listener config { mode = 0600 user = vmail } } service dict { unix_listener dict { mode = 0600 user = vmail } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } service lmtp { inet_listener lmtp { address = ::1 port = 24 } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } } service quota-status { client_limit = 1 executable = quota-status -p postfix inet_listener { port = 12340 } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = dovecot } ssl_cert = /etc/ssl/certs/mx_deltaweb_de.crt ssl_key = /etc/ssl/private/mx_deltaweb_de.key userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol lmtp { mail_plugins = quota acl zlib mail_log notify sieve } protocol lda { mail_plugins = quota acl zlib mail_log notify sieve } protocol imap { mail_max_userip_connections = 50 mail_plugins = quota acl zlib mail_log notify imap_quota imap_acl imap_zlib } Thanks in advance -Christian Rößner -- [*] 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, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein -Christian Rößner -- [*] 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, Axel von
Re: [Dovecot] Complete migration from Cyrus on remote server
Zitat von Timo Sirainen t...@iki.fi: On 3.12.2013, at 23.55, Oscar del Rio del...@mie.utoronto.ca wrote: On 12/ 3/13 02:17 PM, Timo Sirainen wrote: On 3.12.2013, at 16.01, Alan McGinlay - SICS al...@sics.se wrote: * I have looked at dsync but the docs state that the mailbox should not be accessed during sync, this is not possible for me (it doesn't say why this is the case however) dsync is intended for these kinds of migrations. I’m not sure where you read that mailbox shouldn’t be accessed during it? http://wiki2.dovecot.org/Migration/Dsync The source IMAP/POP3 mailboxes shouldn't be modified while dsync is running.” I’m not sure why I wrote that. Maybe it didn’t work as well in earlier versions. I removed the text now from the page. We have done it by simply copy the Cyrus Mailbox, use the cyrus2dovecot script listed here http://wiki2.dovecot.org/Migration/Cyrus and afterwards apply dsync to convert if maildir is not the intended target format for Dovecot. The 2.0.19 Dovecot version is the one included in Ubuntu 12.04 LTS BTW. Regards Andreas smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] Complete migration from Cyrus on remote server
On 2013-12-04 11:35, lst_ho...@kwsoft.de wrote: Zitat von Timo Sirainen t...@iki.fi: On 3.12.2013, at 23.55, Oscar del Rio del...@mie.utoronto.ca wrote: On 12/ 3/13 02:17 PM, Timo Sirainen wrote: On 3.12.2013, at 16.01, Alan McGinlay - SICS al...@sics.se wrote: * I have looked at dsync but the docs state that the mailbox should not be accessed during sync, this is not possible for me (it doesn't say why this is the case however) dsync is intended for these kinds of migrations. I’m not sure where you read that mailbox shouldn’t be accessed during it? http://wiki2.dovecot.org/Migration/Dsync The source IMAP/POP3 mailboxes shouldn't be modified while dsync is running.” I’m not sure why I wrote that. Maybe it didn’t work as well in earlier versions. I removed the text now from the page. We have done it by simply copy the Cyrus Mailbox, use the cyrus2dovecot script listed here http://wiki2.dovecot.org/Migration/Cyrus and afterwards apply dsync to convert if maildir is not the intended target format for Dovecot. The 2.0.19 Dovecot version is the one included in Ubuntu 12.04 LTS BTW. Regards Andreas Yeah unfortunately ubuntu / debian packages are somewhat outdated but the Dovecot docs say them selves not to use the later (nightly built) packages on systems that need to be stable.
Re: [Dovecot] file descriptor errors
Just fyi, you missed no answers... sorry I can't help... Maybe problem with the filesystem? Have you fsck'd it? On 2013-12-04 5:00 AM, Christian Rößner c...@sys4.de wrote: Hi, just a short question: I had sent exactly this same email with a wrong email address (not the c...@sys4.de) and unfortunately I was to late deleting it in Mailman. Now I get replies to the c...@roessner-network-solutions.com address, which will not succeed at the moment, because of DMARC policy. So if you already sent answers, could you please email it again to the c...@sys4.de mail. Thanks a lot in advance Am 04.12.2013 um 10:50 schrieb Christian Rößner c...@sys4.de: Hi, I use dovecot 2.2.9 on Gentoo Linux and I get lots of these erors in my log file: Dec 4 08:53:37 mx dovecot: auth: Error: close failed in file object destructor: Dec 4 08:53:37 mx dovecot: auth: Error: IOError: [Errno 9] Bad file descriptor What could cause these error messages? My mailboxes are stored on an ext4 filesystem: /dev/vdb1 on /srv/mail type ext4 (rw,noatime) doveconf -n: # OS: Linux 3.11.2-hardened x86_64 Gentoo Base System release 2.2 ext4 auth_master_user_separator = * auth_mechanisms = plain login auth_verbose = yes disable_plaintext_auth = no imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes mail_access_groups = mail mail_attachment_dir = /srv/mail/copymail/attachments mail_gid = mail mail_location = maildir:/srv/mail/virtual/%d/%n mail_plugins = quota acl zlib mail_log notify mail_privileged_group = mail mail_uid = vmail 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 namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk-E-Mail { auto = subscribe special_use = \Junk } mailbox Junk { special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = INBOX. } passdb { args = /usr/local/sbin/ispcp-decrypt.py driver = checkpassword } plugin { acl = vfile acl_shared_dict = file:/srv/mail/virtual/shared-mailboxes.db quota = dict:User quota::file:/srv/mail/virtual/%d/%n/dovecot-quota quota_rule = *:storage=300M:messages=2 quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve zlib_save = gz zlib_save_level = 6 } postmaster_address = postmas...@deltaweb.de protocols = imap pop3 lmtp sieve service auth-worker { extra_groups = ssl-cert unix_listener auth-worker { mode = 0600 user = vmail } user = vmail } service auth { extra_groups = ssl-cert unix_listener /var/spool/postfix.relay/private/auth { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0660 user = vmail } user = vmail } service config { unix_listener config { mode = 0600 user = vmail } } service dict { unix_listener dict { mode = 0600 user = vmail } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } service lmtp { inet_listener lmtp { address = ::1 port = 24 } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } } service quota-status { client_limit = 1 executable = quota-status -p postfix inet_listener { port = 12340 } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = dovecot } ssl_cert = /etc/ssl/certs/mx_deltaweb_de.crt ssl_key = /etc/ssl/private/mx_deltaweb_de.key userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol lmtp { mail_plugins = quota acl zlib mail_log notify sieve } protocol lda { mail_plugins = quota acl zlib mail_log notify sieve } protocol imap { mail_max_userip_connections = 50 mail_plugins = quota acl zlib mail_log notify imap_quota imap_acl imap_zlib } Thanks in advance -Christian Rößner -- [*] 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, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein -Christian Rößner -- [*] 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
Re: [Dovecot] letters local filter duplicated
On 2013-12-04 3:09 AM, John Smith open...@gmail.com wrote: dovecot.conf =http://pastebin.com/jVnvyWZM Please post these things inline... Many people won't click on $randomlinks from $randompeople... Also, this breaks continuity for archival purposes (when the link target disappears)... -- Best regards, */Charles/*
Re: [Dovecot] file descriptor errors
Hi, Am 04.12.2013 um 10:50 schrieb Christian Rößner c...@sys4.de: Hi, I use dovecot 2.2.9 on Gentoo Linux and I get lots of these erors in my log file: Dec 4 08:53:37 mx dovecot: auth: Error: close failed in file object destructor: Dec 4 08:53:37 mx dovecot: auth: Error: IOError: [Errno 9] Bad file descriptor I found the problem, but do not know, if my solution is okay. It is the checkpassword script that I wrote in python: … # Return data to Dovecot try: fd = os.fdopen(dovecot_out, w) except: sl.syslog(sl.LOG_ERR, Can not write to FD 4) sys.exit(1) os.write(fd.fileno(), \tuserdb_uid=%i \tuserdb_gid=%i % (uid, gid)) #os.close(fd.fileno()) try: os.putenv('USER', username) os.putenv('HOME', local_part_dir) except: sl.syslog(sl.LOG_WARN, Can not set environment variables“) … When it comes to the os.close(fd.fileno()) call dovecot throws an error. So for now, I leave the file descriptor open and wait for the script to terminate. I thought, I would have to close the descriptor after using it, do I? -Christian Rößner -- [*] 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, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [Dovecot] Different settings for SSL/non-SSL protocols
Greetings 03.12.2013 17:29, Алексей Прокопчук пишет: Good time of the day! It is possible to setup dovecot with different requirements for SSL and non-SSL protocols? What would I like to do: pop3/imap non-SSL = allowed plain text authentication. pop3/imap with SSL = allowed plain text authentication with required valid SSL certificates. I examined in detail dovecot's behavior with 'auth_ssl_require_client_cert=yes'. Dovecot misinterprets configuration in case with parameters: ssl = yes auth_ssl_require_client_cert = yes If ssl is not equal 'required', so not necessarily required, then unencrypted connection permissible. And case 'ssl = required' processed separately when connection begins. But dovecot answers to client with unencrypted connection Client didn't sent a valid SSL certificate. This is wrong because with unencrypted connection can't be any certificates at all. I use dovecot-2.1.16. In auth-request-handler.c I found: if (request-set-ssl_require_client_cert !request-valid_client_cert) { /* we fail without valid certificate */ auth_request_handler_auth_fail(handler, request, Client didn't present valid SSL certificate); return TRUE; } Here is need to check encrypted connection, and if connection not encrypted, condition should not be triggered. And as I said above, case with 'ssl = required' processed early and in this case we don't get to this place in code. Sources of dovecot is quite complex, and I can't find a way how to determine encrypted connection or not at this place for a while. Can you give me the hint how I can determine it? Thanks for attention, with best regards, Alexey Prokopchuk (AP8686-RIPE)
Re: [Dovecot] letters local filter duplicated
OK # 2.2.7: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.23.2.el6.x86_64 x86_64 CentOS release 6.4 (Final) auth_debug = yes auth_mechanisms = plain login auth_use_winbind = yes auth_verbose = yes base_dir = /var/run/dovecot/ disable_plaintext_auth = no doveadm_password = pa$$word dsync_remote_cmd = doveadm dsync-server -u%u hostname = s1mx1ls.city.local listen = * mail_access_groups = vmail mail_debug = yes mail_gid = 5000 mail_location = mdbox:~/:LAYOUT=fs mail_plugins = quota acl notify replication mail_privileged_group = vmail mail_uid = 5000 mbox_write_locks = fcntl namespace { hidden = no list = children location = mdbox:~/:INDEX=%h/shared/%%u prefix = shared/%%u/ separator = / subscriptions = no type = shared } namespace inbox { inbox = yes location = mailbox Drafts { auto = no special_use = \Drafts } mailbox Junk { auto = create special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Sent Messages { auto = no special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = } passdb { args = dovecot driver = pam } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile:/etc/dovecot/acls acl_shared_dict = file:/home/vmail/shared-mailboxes.db mail_replica = tcp:192.168.3.14:4092 quota = dirsize:User quota quota_rule = *:storage=1G quota_rule2 = Trash:storage=+10%% quota_rule3 = Sent:storage=+20%% quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u replication_full_sync_interval = 1 hours } service aggregator { fifo_listener replication-notify-fifo { user = vmail } process_limit = 100 process_min_avail = 3 unix_listener replication-notify { user = vmail } } service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { mode = 0666 user = vmail } } service config { unix_listener config { mode = 0600 user = vmail } } service doveadm { inet_listener { port = 4092 } process_limit = 100 process_min_avail = 3 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = dovecot } service replicator { process_limit = 100 process_min_avail = 3 unix_listener replicator-doveadm { group = vmail mode = 0660 } } ssl_cert = /etc/pki/dovecot/certs/dovecot.pem ssl_key = /etc/pki/dovecot/private/dovecot.pem userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } userdb { args = uid=5000 gid=5000 driver = static } valid_chroot_dirs = /home/vmail/ protocol imap { mail_plugins = quota acl notify replication imap_quota imap_acl } 2013/12/4 Charles Marcus cmar...@media-brokers.com On 2013-12-04 3:09 AM, John Smith open...@gmail.com wrote: dovecot.conf =http://pastebin.com/jVnvyWZM Please post these things inline... Many people won't click on $randomlinks from $randompeople... Also, this breaks continuity for archival purposes (when the link target disappears)... -- Best regards, */Charles/* -- Best Regards, Evgeny Senior System Administrator OOO Vaz Service Hurley
[Dovecot] Ubuntu packages and broken link in docs
Hi, Two things: 1. Does anyone know of a good PPA with updated packages of Dovecot for Ubuntu? For the latest Dovecot for latest Ubuntu LTS see Xiaoka APT Repository. (Outdated. Could someone provide a ppa for latest stable Dovecot, please?) 2. On the http://wiki2.dovecot.org/PrebuiltBinaries#Ubuntu page there is a link to a supposedly outdated PPA, the ppa page now redirects to an ad for the guys services so should probably be removed. /Alan
Re: [Dovecot] Different settings for SSL/non-SSL protocols
Greetings 04.12.2013 13:49, Алексей Прокопчук пишет: I examined in detail dovecot's behavior with 'auth_ssl_require_client_cert=yes'. Dovecot misinterprets configuration in case with parameters: ssl = yes auth_ssl_require_client_cert = yes If ssl is not equal 'required', so not necessarily required, then unencrypted connection permissible. And case 'ssl = required' processed separately when connection begins. But dovecot answers to client with unencrypted connection Client didn't sent a valid SSL certificate. This is wrong because with unencrypted connection can't be any certificates at all. I use dovecot-2.1.16. In auth-request-handler.c I found: if (request-set-ssl_require_client_cert !request-valid_client_cert) { /* we fail without valid certificate */ auth_request_handler_auth_fail(handler, request, Client didn't present valid SSL certificate); return TRUE; } Here is need to check encrypted connection, and if connection not encrypted, condition should not be triggered. And as I said above, case with 'ssl = required' processed early and in this case we don't get to this place in code. Finally, I found everything that is needed. I patched auth-request-handler.c and now: case1: ssl = yes, auth_ssl_require_client_cert = yes. If we trying to authenticate via pop3 or imap with SSL enabled, and valid certificate present, and password is correct, result is success. If we trying to authenticate via pop3 or imap with SSL enabled, and no valid certificate present - result is error. If we trying to authenticate via pop3 or imap without SSL, and password is correct - result is success. case2: ssl = required, auth_ssl_require_client_cert = yes If we trying to authenticate via pop3 or imap with SSL enabled, and valid certificate present, and password is correct, result is success. If we trying to authenticate via pop3 or imap with SSL enabled, and no valid certificate present - result is error. If we trying to authenticate via pop3 or imap without SSL - result is error (SSL connection required). Patch for dovecot-2.1.16 is attached to this message. Thanks for attention, with best regards, Alexey Prokopchuk (AP8686-RIPE) diff -ur dovecot-2.1.16.orig/src/auth/auth-request-handler.c dovecot-2.1.16/src/auth/auth-request-handler.c --- dovecot-2.1.16.orig/src/auth/auth-request-handler.c 2012-10-30 19:57:35.0 +0200 +++ dovecot-2.1.16/src/auth/auth-request-handler.c 2013-12-04 16:07:06.0 +0200 @@ -525,9 +525,9 @@ auth_request_timeout, request); hash_table_insert(handler-requests, POINTER_CAST(id), request); - if (request-set-ssl_require_client_cert + if ((request-set-ssl_require_client_cert request-secured) !request-valid_client_cert) { - /* we fail without valid certificate */ + /* we fail without valid certificate if request is secured */ auth_request_handler_auth_fail(handler, request, Client didn't present valid SSL certificate); return TRUE;
Re: [Dovecot] Full text search improvements
Substring match is important to us, so we'd love to see Squat reinstated with speed improvements. It seems like Solr can handle substrings as well ([Edge]NGramFilterFactory), but for small deployments, having the engine built right in is a plus.
[Dovecot] Question regarding quotas (is this a bug or intended behavior) ?
Hi, I was wondering if this is a normal behavior (test was made using Dovecot v2.2.9). In my config, quotas are configured as follows: plugin { quota = dict:Userquota::file:%h/dovecot-quota quota_rule = *:storage=1G quota_rule2 = Trash:ignore } # doveadm mailbox status -u my_user messages vsize '*' Trash messages=4997 vsize=229535631 Drafts messages=0 vsize=0 Sent messages=0 vsize=0 Junk messages=0 vsize=0 INBOX messages=0 vsize=0 # doveadm -f flow quota get -u my_user Quota name=Userquota Type=STORAGE Value=0 Limit=1048576 %=0 Quota name=Userquota Type=MESSAGE Value=0 Limit=- %=0 The 4997 mails in the Trash mailbox are ignored as desired, but now, if I have the following case: # doveadm mailbox status -u my_user messages vsize '*' Trash messages=0 vsize=0 Trash/TEST messages=4997 vsize=229535631 Drafts messages=0 vsize=0 Sent messages=0 vsize=0 Junk messages=0 vsize=0 INBOX messages=0 vsize=0 (As you can see mails were moved to a Trash/TEST mailbox) # doveadm -f flow quota get -u my_user Quota name=Userquota Type=STORAGE Value=220918 Limit=1048576 %=21 Quota name=Userquota Type=MESSAGE Value=4997 Limit=- %=0 I tried to add the following quota_rule: quota_rule3 = Trash/*:ignore But this doesn't fix anything. Do you have any idea about why this is not working ? Thanks, Regards, Gilles.
Re: [Dovecot] Full text search improvements
Quoting Timo Sirainen t...@iki.fi: 1. Support for multiple languages. Use textcat while indexing to guess the language of the indexed data. FWIW, you could probably use the Content-Language header (if it exists) to at least give a hint. No guarantee it is correct, but it's a better starting place than simply scanning all languages. And, for that matter, you could leverage Accept-Language also (again, if it exists). Which might be more useful, since it lists all the languages the user recognizes. michael
[Dovecot] Dovecot readable compressed mail archive
Hello. Is Dovecot able to create and/or read any sort of compressed mail archive? We have a large installation with a few users who need to keep a large amount of email available. With maildir this means a large number of individual files, leading to additional load on our backup process. Even using a compressed mbox file as an archive would help, but only if Dovecot is able to interact with this file seamlessly while keeping current email in the maildir format. Please pardon if this is old business, but I haven't been able to find any reference to it by searching. Thanks. -Dave -- Dave Hall System Administrator Computer Science Binghamton University daveh...@cs.binghamton.edu 607-760-2328 (Cell) 607-777-4641 (Office)
Re: [Dovecot] Dovecot readable compressed mail archive
On 2013-12-04 1:52 PM, Dave Hall daveh...@cs.binghamton.edu wrote: Is Dovecot able to create and/or read any sort of compressed mail archive? We have a large installation with a few users who need to keep a large amount of email available. With maildir this means a large number of individual files, leading to additional load on our backup process. Even using a compressed mbox file as an archive would help, but only if Dovecot is able to interact with this file seamlessly while keeping current email in the maildir format. Maybe http://wiki2.dovecot.org/Plugins/Zlib helps? -- Best regards, */Charles Marcus/* I.T. Director Media Brokers International, Inc. *678.514.6224 | 678.514.6299 fax*
Re: [Dovecot] Ubuntu packages and broken link in docs
On 12/04/2013 02:35 PM Alan McGinlay - SICS wrote: Hi, Two things: 1. Does anyone know of a good PPA with updated packages of Dovecot for Ubuntu? For the latest Dovecot for latest Ubuntu LTS see Xiaoka APT Repository. (Outdated. Could someone provide a ppa for latest stable Dovecot, please?) I don't know how 'stable' PPAs are. There is a list of Dovecot PPAs: https://launchpad.net/ubuntu/+ppas?name_filter=dovecot You may also try Stephan's auto builds: http://wiki2.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages 2. On the http://wiki2.dovecot.org/PrebuiltBinaries#Ubuntu page there is a link to a supposedly outdated PPA, the ppa page now redirects to an ad for the guys services so should probably be removed. Thanks for the info. I've removed the outdated link. Regards, Pascal -- The trapper recommends today: 5e1f1e55.1333...@localdomain.org
Re: [Dovecot] BUG: Authentication client sent unknown handshake command
Emmanuel Dreyfus m...@netbsd.org wrote: I checked with a test program: on a non open, or closed socket, getsockname() returns -1. However on a socket that was not bound, it returns 0 and fills the buffer with garbage. Wrong diagnostic. I am now tracking synchronisation problems between auth and imap-login. -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@netbsd.org
[Dovecot] Postfix Dovecot Sieve Advice
Hi, I've configured up Dovecot Pigeonhole with Postfix for delivery (all working perfectly). Seeing as I'm about to use this in production, I'm just after any advice or tips people might have to safeguard email delivery from Postfix to Dovecot via LMTP? Spec: postfix-2.6.6-2.2.el6_1.x86_64 dovecot-2.0.9-5.el6.x86_64 dovecot-pigeonhole-2.0.9-5.el6.x86_64 Postfix: virtual_transport = lmtp:unix:private/dovecot-lmtp Dovecot (key settings): vim /etc/dovecot/conf.d/10-auth.conf auth_username_format = %Ln vim /etc/dovecot/conf.d/10-master.conf service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } vim /etc/dovecot/conf.d/20-lmtp.conf protocol lmtp { mail_plugins = $mail_plugins sieve } vim /etc/dovecot/conf.d/90-sieve.conf plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_vacation_min_period = 1h sieve_vacation_default_period = 10d sieve_vacation_max_period = 30d } Regards, Craig