Re: [Dovecot] how to setup different quota for multiple namespaces
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 11 Jan 2013, Andreas Oster wrote: Am 10.01.2013 15:30, schrieb Steffen Kaiser: On Wed, 9 Jan 2013, Andreas Oster wrote: namespace { type = private separator = . prefix = Archives. location = maildir:/var/vmail/archive/%Ln/Maildir subscriptions = yes list = children inbox = no } I configured the quota plugin in the following way: plugin { quota = maildir:User quota:ns= quota2 = maildir:Archive quota:ns=Archives. quota_rule = *:storage=1G quota_rule2 = ns=Archives.:ignore } unfortunately this does not give the desired result. Folders under the Archives namespace use the same quota as INBOX. If I understand the Wiki correctly, you need to write: quota2_rule = *:storage=10G The quota2_rule# settings apply to the quota2 root by namespace. Whereas the quota_rule# settings apply to the default, the first quota root. unfortunately this does not work. when I configure it the way you have proposed the 10G quote will be assigned to the base namespace (INBOX) the Archives namespace has no quota assigned. I tried this setup: namespace { type = private separator = . prefix = Archive. location = mdbox:/home/%u/archive #subscriptions = no #list = children } plugin { quota = dict:User quota::proxy::quota quota2 = dict:Archive quota:ns=Archive.:proxy::quota quota2_rule = *:storage=1048576 } telnet localhost 143 1 login .. .. 2 list * * LIST (\HasNoChildren \Sent) . Sent * LIST (\HasNoChildren \Trash) . Trash * LIST (\HasNoChildren \Junk) . Junk * LIST (\HasNoChildren \Drafts) . Drafts * LIST (\HasNoChildren) . INBOX * LIST (\Noselect \HasChildren) . Archive * LIST (\HasNoChildren) . Archive.Test 2 OK List completed. 2 getquotaroot * QUOTAROOT User quota Archive quota * QUOTA User quota (STORAGE 259 7540259) * QUOTA Archive quota (STORAGE 2109 1048576) 2 OK Getquotaroot completed. So the configuration is running in Dovecot v2.1.13. The value of User quota comes from LDAP. What I did not tested was, if the quota is actually calculated and tracked in the database. Kind regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUPZrD13r2wJMiz2NAQIibgf9Gdf9esxTnKRuA1cDV9fS3leQep06U6Lt C70Zbqasi0E8ePow3qHZlTljJZm1xJGvRhBw6C6KD6FM6s48erjBL2yNTT37RHoJ F1vJqXyZ23MYOOf5fBRQ2HkgtlBVYnivG3Gtqliz0NBIABZzR9IE31rham1PmUDa Dgi2EBUepJyVU7WmK5ZPjaXPMvguicboSA10VMh/RQkd+1c1dLjNisVSzKZ+h2/6 lIlXLHb0uyPIecbni6j/bmkkp3Ps3lTQZ7mfoFGTp7WtVCIdJBFpGkPMXm6R3WAg QQoIqOyDiAIZwShWMx5vfVE9fcmMDbulvpXW83laAXARwuIVAC7+jQ== =lVxH -END PGP SIGNATURE-
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 16.01.2013 09:55, schrieb Steffen Kaiser: On Fri, 11 Jan 2013, Andreas Oster wrote: Am 10.01.2013 15:30, schrieb Steffen Kaiser: On Wed, 9 Jan 2013, Andreas Oster wrote: namespace { type = private separator = . prefix = Archives. location = maildir:/var/vmail/archive/%Ln/Maildir subscriptions = yes list = children inbox = no } I configured the quota plugin in the following way: plugin { quota = maildir:User quota:ns= quota2 = maildir:Archive quota:ns=Archives. quota_rule = *:storage=1G quota_rule2 = ns=Archives.:ignore } unfortunately this does not give the desired result. Folders under the Archives namespace use the same quota as INBOX. If I understand the Wiki correctly, you need to write: quota2_rule = *:storage=10G The quota2_rule# settings apply to the quota2 root by namespace. Whereas the quota_rule# settings apply to the default, the first quota root. unfortunately this does not work. when I configure it the way you have proposed the 10G quote will be assigned to the base namespace (INBOX) the Archives namespace has no quota assigned. I tried this setup: namespace { type = private separator = . prefix = Archive. location = mdbox:/home/%u/archive #subscriptions = no #list = children } plugin { quota = dict:User quota::proxy::quota quota2 = dict:Archive quota:ns=Archive.:proxy::quota quota2_rule = *:storage=1048576 } telnet localhost 143 1 login .. .. 2 list * * LIST (\HasNoChildren \Sent) . Sent * LIST (\HasNoChildren \Trash) . Trash * LIST (\HasNoChildren \Junk) . Junk * LIST (\HasNoChildren \Drafts) . Drafts * LIST (\HasNoChildren) . INBOX * LIST (\Noselect \HasChildren) . Archive * LIST (\HasNoChildren) . Archive.Test 2 OK List completed. 2 getquotaroot * QUOTAROOT User quota Archive quota * QUOTA User quota (STORAGE 259 7540259) * QUOTA Archive quota (STORAGE 2109 1048576) 2 OK Getquotaroot completed. So the configuration is running in Dovecot v2.1.13. The value of User quota comes from LDAP. What I did not tested was, if the quota is actually calculated and tracked in the database. Kind regards, -- Steffen Kaiser Hello Steffen, thank you for creating a test setup. I will try to implement it the way you did it, but I will stay with maildir. Meanwhile I have recognized another issue, this time with our webmail system (roundcube). It seems that it is not able to handle multiple namespaces so I might need to stay with the single private namespance setup. Thank you very much for your kind help. best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 16.01.2013 10:29, schrieb Andreas Oster: Am 16.01.2013 09:55, schrieb Steffen Kaiser: On Fri, 11 Jan 2013, Andreas Oster wrote: Am 10.01.2013 15:30, schrieb Steffen Kaiser: On Wed, 9 Jan 2013, Andreas Oster wrote: namespace { type = private separator = . prefix = Archives. location = maildir:/var/vmail/archive/%Ln/Maildir subscriptions = yes list = children inbox = no } I configured the quota plugin in the following way: plugin { quota = maildir:User quota:ns= quota2 = maildir:Archive quota:ns=Archives. quota_rule = *:storage=1G quota_rule2 = ns=Archives.:ignore } unfortunately this does not give the desired result. Folders under the Archives namespace use the same quota as INBOX. If I understand the Wiki correctly, you need to write: quota2_rule = *:storage=10G The quota2_rule# settings apply to the quota2 root by namespace. Whereas the quota_rule# settings apply to the default, the first quota root. unfortunately this does not work. when I configure it the way you have proposed the 10G quote will be assigned to the base namespace (INBOX) the Archives namespace has no quota assigned. I tried this setup: namespace { type = private separator = . prefix = Archive. location = mdbox:/home/%u/archive #subscriptions = no #list = children } plugin { quota = dict:User quota::proxy::quota quota2 = dict:Archive quota:ns=Archive.:proxy::quota quota2_rule = *:storage=1048576 } telnet localhost 143 1 login .. .. 2 list * * LIST (\HasNoChildren \Sent) . Sent * LIST (\HasNoChildren \Trash) . Trash * LIST (\HasNoChildren \Junk) . Junk * LIST (\HasNoChildren \Drafts) . Drafts * LIST (\HasNoChildren) . INBOX * LIST (\Noselect \HasChildren) . Archive * LIST (\HasNoChildren) . Archive.Test 2 OK List completed. 2 getquotaroot * QUOTAROOT User quota Archive quota * QUOTA User quota (STORAGE 259 7540259) * QUOTA Archive quota (STORAGE 2109 1048576) 2 OK Getquotaroot completed. So the configuration is running in Dovecot v2.1.13. The value of User quota comes from LDAP. What I did not tested was, if the quota is actually calculated and tracked in the database. Kind regards, -- Steffen Kaiser Hello Steffen, thank you for creating a test setup. I will try to implement it the way you did it, but I will stay with maildir. Meanwhile I have recognized another issue, this time with our webmail system (roundcube). It seems that it is not able to handle multiple namespaces so I might need to stay with the single private namespance setup. Thank you very much for your kind help. best regards Andreas try upgrade roundcube with reconfigure some issues with namespace were solved http://trac.roundcube.net/ticket/1486796 http://trac.roundcube.net/attachment/ticket/1486796/imap_namespace.patch however i am not sure if that fixes your special problem 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, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
[Dovecot] dovecot-2.2.beta1: do not removes e-mail with enabled replication
Hello. I'm created two installations of dovecot-2.2.beta1 with identical config. Without replication each server works good. With replication enabled every changes are replicated between these ones. When I probe remove or move some email in another folder it is disappears and reappears again and again in source folder and appears in destination folder. Thus increasing number of letters like with copy. Possible reasons cause of the problem: - bug - configuration settings of dovecot - users with wich dovecot works and users rights. Which version is true? If this not a bug, what should be corrected in the configuration? Configuration: auth_debug = yes auth_mechanisms = plain login auth_verbose = yes import_environment = TZ lock_method = flock mail_debug = yes mail_location = mdbox:/var/vmail/%d/%n:INDEX=/var/vmail_indexes/%d/%n/ mail_plugins = quota notify replication mail_temp_dir = /var/spool/lmtp-dovecot mdbox_preallocate_space = yes mdbox_rotate_interval = 1 days mdbox_rotate_size = 50 M namespace inbox { inbox = yes location = mailbox Шаблоны { auto = create } mailbox Archive { auto = create special_use = \Archive } mailbox Archives { auto = create special_use = \Archive } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { mail_replica = remote:vm...@mailsys.office.megagroup.ru quota = dict:Domain quota:%d:redis:host=127.0.0.1:prefix=domain/ quota2 = dict:User quota::redis:host=127.0.0.1:prefix=user/ quota2_rule = *:storage=0 quota2_rule2 = Trash:storage=+5%% quota_rule = *:storage=0 quota_rule2 = Trash:storage=+5%% } service aggregator { fifo_listener replication-notify-fifo { mode = 0600 user = vmail } unix_listener replication-notify { mode = 0600 user = vmail } } service auth-worker { user = $default_internal_user } service auth { unix_listener auth-userdb { group = $default_internal_user mode = 0666 user = $default_internal_user } } service config { unix_listener config { mode = 0600 user = vmail } } service dict { unix_listener dict { mode = 0600 user = $default_internal_user } } service doveadm { user = vmail } service imap-login { process_min_avail = 5 service_count = 1 } service imap-postlogin { executable = script-login /usr/local/bin/imaptrackLastLogin.sh user = $default_internal_user } service imap { executable = imap imap-postlogin process_limit = 1024 } service lmtp { inet_listener lmtp { address = *, :: port = 24 } process_min_avail = 5 } service pop3-login { process_min_avail = 5 service_count = 1 } service pop3-postlogin { executable = script-login /usr/local/bin/pop3trackLastLogin.sh user = $default_internal_user } service pop3 { executable = pop3 pop3-postlogin process_limit = 1024 } service replicator { process_limit = 1024 process_min_avail = 3 } ssl_cert = /etc/ssl/dovecot/server.pem ssl_key = /etc/ssl/dovecot/server.key userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } verbose_proctitle = yes protocol imap { mail_plugins = quota notify replication imap_quota } Filesystem permissions: # ls -l /var/ drwxr-xr-x 3 vmail vmail 24 Jan 16 16:14 vmail drwxr-xr-x 3 vmail vmail 24 Jan 16 16:14 vmail_indexes # ls -l /var/spool/ drwxrwx--- 2 dovecot dovecot 6 Jan 16 15:11 lmtp-dovecot Users: dovecot:x:97:97:added by portage for dovecot:/dev/null:/sbin/nologin uid=97(dovecot) gid=97(dovecot) groups=97(dovecot) dovenull:x:102:102:added by portage for dovecot:/dev/null:/sbin/nologin uid=102(dovenull) gid=102(dovenull) groups=102(dovenull) vmail:x:999:999:User for work with local mail storage:/home/vmail:/bin/bash uid=999(vmail) gid=999(vmail) groups=999(vmail),97(dovecot) Selects from user database are rights because isolated installations are works and not get errors.
Re: [Dovecot] dovecot-2.2.beta1: do not removes e-mail with enabled replication
On Wed, 2013-01-16 at 17:21 +0400, Евгений Басов wrote: Hello. I'm created two installations of dovecot-2.2.beta1 with identical config. Without replication each server works good. With replication enabled every changes are replicated between these ones. When I probe remove or move some email in another folder it is disappears and reappears again and again in source folder and appears in destination folder. Thus increasing number of letters like with copy. There are a bunch of dsync fixes since beta1. Please try the latest hg version / nightly snapshot.
[Dovecot] Reviewing end-user ham/spam submissions before feeding them to sa-learn via Dovecot Antispam plug-in
Currently, I'm using the Dovecot Antispam plug-in with great success. Everything works as expected. However, I would like to change the plug-in's behavior such that it simply sends a copy of a message that is moved from Inbox - Junk (or Junk - Inbox) to an administrator, instead of calling sa-learn (I'm using SpamAssassin) automatically. Basically, I would like to be able to review messages that end-users submit for training before they are actually fed to sa-learn. Has anyone had a similar need? If the Antispam plug-in already supports this, if the necessary commands can simply be added to the shell script that Antispam calls, or if there is a better method altogether, any help is greatly appreciated. Thank you! -Ben
[Dovecot] dovecot + antispam plugin - no retraining
Hi, dovecot -n # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.8.0-0-generic x86_64 Ubuntu Raring Ringtail (development branch) listen = 10.10.200.39 login_log_format_elements = user=%u method=%m rip=%r lip=%l mpid=%e %c mail_debug = yes mail_location = maildir:~/Maildir 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 = prefix = } passdb { driver = pam } plugin { antispam_backend = pipe antispam_mail_notspam = h...@example.org antispam_mail_sendmail = /usr/sbin/sendmail antispam_mail_sendmail_args = -f;%u...@example.org antispam_mail_spam = s...@example.org antispam_mail_tmpdir = /tmp antispam_signature = X-DSPAM-Signature antispam_signature_missing = error antispam_spam_pattern_ignorecase = SPAM;Junk antispam_trash = trash;Trash;Deleted Items; Deleted Messages mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap sieve pop3 service auth { unix_listener /var/spool/postfix/private/dovecot-auth { group = postfix mode = 0660 user = postfix } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } ssl_cert = /etc/ssl/certs/mail.dmz.example.org.cert.pem ssl_key = /etc/ssl/private/mail.dmz.example.org.key.pem userdb { driver = passwd } protocol imap { imap_client_workarounds = delay-newmail mail_max_userip_connections = 15 mail_plugins = antispam } protocol pop3 { mail_max_userip_connections = 10 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh } protocol lda { deliver_log_format = msgid=%m: %$ mail_plugins = sieve postmaster_address = postmaster quota_full_tempfail = yes rejection_reason = Your message to %t was automatically rejected:%n%r } filesystem is ext4 antispam util is dspam I'm trying to utilize the imap plugin antispam for retraining spam/ham when moving mail from/to spam folders. antispam plugin is loaded and imap service itself runs correctly logfile excerp for login: Jan 16 21:04:33 mailhost dovecot: imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules Jan 16 21:04:33 mailhost dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_antispam_plugin.so Jan 16 21:04:33 mailhost dovecot: imap(user): Debug: Effective uid=1001, gid=1001, home=/home/user Jan 16 21:04:33 mailhost dovecot: imap(user): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Jan 16 21:04:33 mailhost dovecot: imap(user): Debug: maildir++: root=/home/user/Maildir, index=, control=, inbox=/home/user/Maildir, alt= Jan 16 21:04:34 mailhost dovecot: imap-login: Login: user=user, method=PLAIN, rip=10.10.99.205, lip=10.10.200.39, mpid=5936, TLS Jan 16 21:04:34 mailhost dovecot: imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules Jan 16 21:04:34 mailhost dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_antispam_plugin.so Jan 16 21:04:34 mailhost dovecot: imap(user): Debug: Effective uid=1001, gid=1001, home=/home/user Jan 16 21:04:34 mailhost dovecot: imap(user): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Jan 16 21:04:34 mailhost dovecot: imap(user): Debug: maildir++: root=/home/user/Maildir, index=, control=, inbox=/home/user/Maildir, alt= When I move mail into or out of imap folders named Junk or SPAM I would expect, that the antispam plugin kicks in and pipes the mail to dspam. Apparently this does not happen, nothing gets piped, though the mail is still moved to the folder. I've already tried dspam-exec as a backend as well, but that fails even ealier right after imap login with: Jan 16 19:26:15 mailhost dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled) Jan 16 19:26:45 mailhost dovecot: imap-login: Login: user=user, method=PLAIN, rip=10.10.99.205, lip=10.10.200.39, mpid=4701, TLS Jan 16 19:26:45 mailhost dovecot: imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules Jan 16 19:26:45 mailhost dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_antispam_plugin.so Jan 16 19:26:45 mailhost dovecot: imap(user): Debug: Effective uid=1001, gid=1001, home=/home/user Jan 16 19:26:45 mailhost dovecot: imap(user): Fatal: master: service(imap): child 4701 returned error 3 settings were: antispam_backend = dspam-exec antispam_dspam_binary = /usr/bin/dspam antispam_dspam_args = --client;--source=error;--user;%u;--signature=%%s I've also tried with: antispam_backend = dspam-exec antispam_dspam_binary = /usr/bin/dspam antispam_dspam_args = --source=error;--user;%u those settings actually do not produce the
[Dovecot] Benchmarking: Dovecot vs Courier. Courier wins as POP3 server
Hi All, I have compared Dovecot performance to Courier and it appears that as a POP3 server Dovecot is slower in 2 times but as an IMAP server it is faster in 1.5 times. The same node (16CPUs), testing time is 30 min, please see results and dovecot configs attached. Benchmark software is MStone used by Sendmail Inc so is is quite reliable. I do not see anything else to tweak in Dovecot to increase POP3 performance. Can we all have some tips to improve it please ? This is how my Dovecot set up: (LDAP user) - Dovecot Director - (Master user) - Dovecot Dovecot Director: dovecot-shared-4:~# /usr/local/dovecot/bin/doveconf -n -c /usr/local/dovecot/etc/dovecot/dovecot-proxy.conf # 2.1.12: /usr/local/dovecot/etc/dovecot/dovecot-proxy.conf # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.6 auth_debug = yes auth_mechanisms = plain login cram-md5 ntlm auth_verbose = yes base_dir = /var/run/dovecot-proxy default_internal_user = webmail director_mail_servers = 192.168.100.102 director_servers = 192.168.100.101 disable_plaintext_auth = no doveadm_password = blah doveadm_proxy_port = 9292 instance_name = dovecot-proxy listen = 192.168.100.101 log_path = /var/log/dovecot-proxy.log login_greeting = Dovecot Proxy ready. mail_location = maildir:~/ passdb { args = /usr/local/dovecot/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } service auth-worker { user = webmail } service auth { client_limit = 2400 } service director { fifo_listener login/proxy-notify { mode = 0666 } inet_listener { port = 9191 } unix_listener director-userdb { mode = 0600 } unix_listener login/director { mode = 0666 } } service doveadm { inet_listener { port = 9292 } } service imap-login { executable = imap-login director inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service imap { service_count = 0 } service lmtp { inet_listener lmtp { port = 24 } } service pop3-login { executable = pop3-login director inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service pop3 { service_count = 0 } ssl_cert = /usr/local/dovecot/ssl/dovecot.pem ssl_key = /usr/local/dovecot/ssl/dovecot.pem userdb { args = /usr/local/dovecot/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol imap { mail_max_userip_connections = 100 } protocol doveadm { auth_socket_path = director-userdb } Dovecot (back-end): dovecot-shared-4:~# /usr/local/dovecot/bin/doveconf -n # 2.1.12: /usr/local/dovecot/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.6 auth_debug = yes auth_master_user_separator = * auth_mechanisms = plain login auth_verbose = yes base_dir = /var/run/dovecot/ default_internal_user = webmail disable_plaintext_auth = no doveadm_password = blah listen = 192.168.100.102 log_path = /var/log/dovecot.log mail_fsync = always mail_location = maildir:~/ mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = quota fts fts_lucene mmap_disable = yes namespace { inbox = yes location = prefix = INBOX. separator = . } passdb { args = /usr/local/dovecot/etc/dovecot/passwd.masterusers driver = passwd-file master = yes pass = yes } passdb { driver = static } plugin { fts = lucene fts_lucene = whitespace_chars=@. quota = maildir:User quota } service director { unix_listener director-admin { mode = 00 } } service doveadm { inet_listener { port = 9292 } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_limit = 20 process_min_avail = 8 } service imap-postlogin { executable = script-login /usr/local/dovecot/bin/imap-postlogin.sh user = webmail } service imap { executable = imap imap-postlogin } service lmtp { inet_listener lmtp { port = 24 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } process_limit = 20 process_min_avail = 8 } service pop3-postlogin { executable = script-login /usr/local/dovecot/bin/pop3-postlogin.sh user = webmail } service pop3 { executable = pop3 pop3-postlogin } ssl_cert = /usr/local/dovecot/ssl/dovecot.pem ssl_key = /usr/local/dovecot/ssl/dovecot.pem userdb { args = /usr/local/dovecot/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol imap { mail_plugins = quota fts fts_lucene imap_quota } Best Regards, Alexandr Sabitov Netregistry MStone Results 20130116.1333 NR Courier POP3 Test Some sort of testing... Test duration: 30 minutes. Rampup: 20 seconds. Reported duration 30.0min Number of reporting clients: 1 of 1 POP3 TryError BytesR BytesW Time TMin TMax TStd POP3:blocks 27715 POP3:total 2494320 1237641991 2232351 0.0070.0011.182
[Dovecot] failure trying to autocreate an Inbox that already exists
I have a new installation of Dovecot 2.1.12 and cannot select the Inbox without getting this error: c select inbox c NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2013-01-16 18:22:13] Here's the server log: dovecot[15643]: imap(u1): Error: Failed to autocreate mailbox INBOX: Mailbox already exists Auto create settings are currently set to 'no' -- when they were set to create, the problem was the same. Passwords are currently plaintext for testing purposes -- Imap authentication works. It's running on OS/X 10.7.3 Our config is below. Thanks for any suggestions... # 2.1.12: /usr/local/etc/dovecot/dovecot.conf # OS: Darwin 11.3.0 x86_64 auth_debug_passwords = yes auth_username_chars = disable_plaintext_auth = no mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_privileged_group = mail namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox INBOX { auto = no } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { args = scheme=plain /etc/passwd-imap driver = passwd-file } protocols = imap ssl = no userdb { args = username_format=%n /etc/passwd-imap driver = passwd-file }
Re: [Dovecot] Benchmarking: Dovecot vs Courier. Courier wins as POP3 server
On 17.1.2013, at 1.47, Alexandr Sabitov alexandr.sabi...@netregistry.com.au wrote: I do not see anything else to tweak in Dovecot to increase POP3 performance. Can we all have some tips to improve it please ? mail_fsync = always Courier POP3 does no fsyncing. Although I'm not sure how much difference it makes with NFS. mail_nfs_index = yes mail_nfs_storage = yes Both of these are unnecessary and slow things down. Also you should add: pop3_no_flag_updates = yes
Re: [Dovecot] Benchmarking: Dovecot vs Courier. Courier wins as POP3 server
On 17.1.2013, at 6.23, Timo Sirainen t...@iki.fi wrote: On 17.1.2013, at 1.47, Alexandr Sabitov alexandr.sabi...@netregistry.com.au wrote: I do not see anything else to tweak in Dovecot to increase POP3 performance. Can we all have some tips to improve it please ? Oh, and because of Dovecot index files it has to do a bit more work than Courier, so with indexes Dovecot POP3 is probably slower for POP3 clients that download+delete all mails, but faster when POP3 clients leave (a lot of) mail lying around on the server. You could get Courier-like unindexed behavior by setting: mail_location = maildir:~/:INDEX=MEMORY
Re: [Dovecot] mbox INBOX out of sync (?)
Hello again, Permissions seems to be ok; all mboxes has 660 with group 'mail'. --- -rw-rw 1 tbarreno mail 1337814 ene 17 06:10 tbarreno --- However, the dovecot service was changed last October in Debian distro: --- * Dovecot uses two system users for internal purposes now by default: dovenull and dovecot. dovenull user is used by completely untrustworthy processes, while dovecot user is used for slightly more trusted processes. --- The dovecot user isn't included in the 'mail' group; I've tryed but it doesn't work. I'll take a look at the Postfix configuration just to see if it's locking the files. Many thanks again. Best wishes, Tinguaro Barreno On Tue, Jan 15, 2013 at 08:43:13AM +0200, Timo Sirainen wrote: On Sun, 2013-01-13 at 20:38 +0100, Tinguaro Barreno Delgado wrote: Hello all, I've running a Dovecot's installation for several years without problems but since last system upgrade (Dec 26) I'm facing a kind of sync issue with the /var/mail/ inbox files. We have got mobile and desktops IMAP clients (mostly Mozilla Thunderbird). The problem is that /var/mail/ files (mbox) aren't updated: we can delete mail from clients but they persist in de /var/mail, so the same user can see the mail again from other IMAP client. Logs seems to be correct. Sounds like Dovecot thinks the INBOX is read-only. What are the filesystem permissions in the files? -- Tinguaro Barreno Delgado tbarr...@alameda.homeip.net
Re: [Dovecot] Benchmarking: Dovecot vs Courier. Courier wins as POP3 server
On Wed, 16 Jan 2013 23:47:33 + Alexandr Sabitov wrote: Hi All, I have compared Dovecot performance to Courier and it appears that as a POP3 server Dovecot is slower in 2 times but as an IMAP server it is faster in 1.5 times. The same node (16CPUs), testing time is 30 min, please see results and dovecot configs attached. Benchmark software is MStone used by Sendmail Inc so is is quite reliable. I do not see anything else to tweak in Dovecot to increase POP3 performance. Can we all have some tips to improve it please ? The Middle Age has called, it wants POP3 back. --Frank Elsner