[Dovecot] enabling quota.
I'm reading http://wiki.dovecot.org/Quota to enable quota management with dovecot. The first question is: I need to enable dovecot deliver, lda protocol, to have quota work?
Re: [Dovecot] Upgrade to 1.1 maildir shared folders problems
On Sat, 28 Jun 2008, Timo Sirainen wrote: On Fri, 2008-06-27 at 10:50 +0300, [EMAIL PROTECTED] wrote: Hello, We recently upgraded to Dovecot 1.1 from 1.0.5 and we are having few issues: 1) Maildir's are not created anymore for new users if they dont excits, the directories where created before, is this a configuration issue? I did change the code so that the maildir creation is delayed until it's really needed. But I don't know of any bugs in this, and I can't reproduce your problem. Could you show the error messages from the log file you get when a new user tries to access the mailbox? Hello, Telnet: Escape character is '^]'. * OK ready. AUTH LOGIN testi33 testi33 AUTH OK Logged in. Connection closed by foreign host. Log: Jun 30 11:14:47 [dovecot] imap-login: Login: user=testi33, method=PLAIN, rip=212.116.32.210, lip=212.116.32.130 Jun 30 11:14:47 [dovecot] child 23578 (imap) killed with signal 11 Not much to go on here, i remember running in to this same problem in some early 1.0 rc's, but if i remember correctly it just was fixed in a later release and started working. Any ideas how to proceed on this one? i could setup a test enviroment and run strace if needed? 2) Cannot subscribe to shared folders, if currently subscribed they work fine but cannot re-subscribe, also i noticed that the control directory for the namespace is not created anymore, before it was, any ideas? Again the control directory creation is delayed until it's needed. So that might not be the actual problem. Are there anything in error logs when this happens? Also could you try manually so you can see what exactly Dovecot replies to the subscribe commands? Try something like: telnet localhost 143 a login username password b unsubscribe shared/some-mailbox c subscribe shared/some-mailbox What are the replies? if i list the mail boxes it does not show the folders under shared: * LIST (\Noselect \HasNoChildren) / shared . OK List completed. The subscribe and unsubscribe seems to be working: C unsubscribe shared/shared-folder C OK Unsubscribe completed. C subscribe shared/shared-folder C OK Subscribe completed. I get this in the logs: Jun 30 11:17:44 [dovecot] imap-login: Login: user=username, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jun 30 11:19:07 [dovecot] IMAP(username): fchown(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted Jun 30 11:19:07 [dovecot] IMAP(username): dovecot-acl-list creation failed: safe_mkstemp(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted It seems to be the problem is with listing the folders? as if im subscribed to the folders they work fine, but can not see the folders again in imap? The /var/mail/jaetut folder has write permission to everyone. any ideas? //sami
[Dovecot] Multiple auth client sockets
I use two seperate Postfix instances as MSAs (so that different policies are simpler to configure), and both of them require Dovecot SASL support. Since Postfix' smtpd is chrooted (at least in the Debian package), the client socket needs to be somewhere under the instance's queue_directory. This means I need two different auth client socket paths. When I simply specify two client { ... } in dovecot.conf, the second takes precedence over the first. Besides using a second dovecot instance, which I'd like to avoid, what ways are there to run a second client socket? Ulrich
Re: [Dovecot] enabling quota.
Mauro Sanna wrote: I'm reading http://wiki.dovecot.org/Quota to enable quota management with dovecot. The first question is: I need to enable dovecot deliver, lda protocol, to have quota work? It depends on the backend you use. If you use filesystem quota's, then there is no need to use the dovecot LDA, because the actual quota usage is already being updated by the filesystem/kernel itself. However if you use Maildir++ quota, then something has to update the maildirsize file so that it contains the actual usage of that Maildir. So you need the dovecot LDA here, or another LDA that can update those files in a compatible way. However I prefer to always use dovecot's deliver, because it automatically updates indexes and caches when a mail arrives, and this cannot be done by another LDA because the indexes and caches are dovecot specific. Alexander
Re: [Dovecot] enabling quota.
Il giorno lun, 30/06/2008 alle 12.15 +0200, Alexander Prinsier ha scritto: Mauro Sanna wrote: I'm reading http://wiki.dovecot.org/Quota to enable quota management with dovecot. The first question is: I need to enable dovecot deliver, lda protocol, to have quota work? It depends on the backend you use. If you use filesystem quota's, then there is no need to use the dovecot LDA, because the actual quota usage is already being updated by the filesystem/kernel itself. However if you use Maildir++ quota, then something has to update the maildirsize file so that it contains the actual usage of that Maildir. So you need the dovecot LDA here, or another LDA that can update those files in a compatible way. However I prefer to always use dovecot's deliver, because it automatically updates indexes and caches when a mail arrives, and this cannot be done by another LDA because the indexes and caches are dovecot specific. Thank you for ther answerlast question: if I use dovecot deliver, in dovecot.conf I need to enable only protocol lda { mail_plugins = quota } or I must enable also protocol pop3 { mail_plugins = quota } and in case I have imap protocol imap { mail_plugins = quota imap_quota } ?
Re: [Dovecot] enabling quota.
Mauro Sanna wrote: if I use dovecot deliver, in dovecot.conf I need to enable only protocol lda { mail_plugins = quota } or I must enable also protocol pop3 { mail_plugins = quota } and in case I have imap protocol imap { mail_plugins = quota imap_quota } ? You also need to specify what backend you want to use (fs quota, maildir++ quota's, ...). See here: http://wiki.dovecot.org/Quota/1.0 Alexander
Re: [Dovecot] enabling quota.
Il giorno lun, 30/06/2008 alle 13.32 +0200, Alexander Prinsier ha scritto: Mauro Sanna wrote: if I use dovecot deliver, in dovecot.conf I need to enable only protocol lda { mail_plugins = quota } or I must enable also protocol pop3 { mail_plugins = quota } and in case I have imap protocol imap { mail_plugins = quota imap_quota } ? You also need to specify what backend you want to use (fs quota, maildir++ quota's, ...). Yes I've just specified it, it's maildir butI need to enable quota only for protocol lda or also for pop3 and imap?
Re: [Dovecot] Upgrade to 1.1 maildir shared folders problems
On Mon, 2008-06-30 at 11:31 +0300, [EMAIL PROTECTED] wrote: Jun 30 11:14:47 [dovecot] imap-login: Login: user=testi33, method=PLAIN, rip=212.116.32.210, lip=212.116.32.130 Jun 30 11:14:47 [dovecot] child 23578 (imap) killed with signal 11 That's a crash. Could you get gdb backtrace from it? See http://dovecot.org/bugreport.html how to do it. Jun 30 11:19:07 [dovecot] IMAP(username): fchown(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted Jun 30 11:19:07 [dovecot] IMAP(username): dovecot-acl-list creation failed: safe_mkstemp(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted Do you use SELinux or something like that? Operation not permitted is not the same as Permission denied which comes with normal filesystem permission problems. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Upgrade to 1.1 maildir shared folders problems
On Mon, 30 Jun 2008, Timo Sirainen wrote: On Mon, 2008-06-30 at 11:31 +0300, [EMAIL PROTECTED] wrote: Jun 30 11:14:47 [dovecot] imap-login: Login: user=testi33, method=PLAIN, rip=212.116.32.210, lip=212.116.32.130 Jun 30 11:14:47 [dovecot] child 23578 (imap) killed with signal 11 That's a crash. Could you get gdb backtrace from it? See http://dovecot.org/bugreport.html how to do it. Here is a backtrace from a test-server, running newer debian than the production boxes: #0 fs_quota_mount_init (root=0x81098f0, mount=0x0) at quota-fs.c:210 roots = (struct quota_root * const *) 0x8109890 i = 1 #1 0xb7e34bd1 in fs_quota_storage_added (quota=0x8109850, storage=0x810a148) at quota-fs.c:253 mount = (struct fs_quota_mountpoint *) 0x0 root = value optimized out dir = value optimized out is_file = false #2 0xb7e32d66 in quota_add_user_storage (quota=0x8109850, storage=0x810a148) at quota.c:467 roots = value optimized out storages = value optimized out backends = value optimized out path = 0x810a540 /var/spool/mail/testi33/ path2 = value optimized out i = 1 is_file = false #3 0xb7e37d44 in quota_mail_storage_created (storage=0x810a148) at quota-storage.c:469 qstorage = (union mail_storage_module_context *) 0x810a240 #4 0x080a0646 in mail_storage_create (ns=0x8109d40, driver=0x8100178 maildir, data=value optimized out, user=0xbf971f65 testi33, flags=3328, lock_method=FILE_LOCK_METHOD_FCNTL, error_r=0xbf971028) at mail-storage.c:254 _data_stack_cur_id = 3 storage_class = (struct mail_storage *) 0x80f9640 storage = (struct mail_storage *) 0x810a148 classes = (struct mail_storage * const *) 0xa home = value optimized out value = value optimized out i = 0 count = 1 #5 0x0809eaa0 in mail_namespaces_init (pool=0x8109d28, user=0xbf971f65 testi33, namespaces_r=0xbf971084) at mail-namespace.c:81 _data_stack_cur_id = 2 namespaces = (struct mail_namespace *) 0x0 ns = value optimized out ns_p = (struct mail_namespace **) 0xbf971038 flags = 3072 lock_method = FILE_LOCK_METHOD_FCNTL mail = value optimized out data = 0xbf971d30 maildir:/var/spool/mail/testi33//:INDEX=/var/dovecot/index/testi33:CONTROL=/var/dovecot/control/testi33 error = value optimized out i = 1 #6 0x080681bf in main (argc=135305456, argv=0xbf971124, envp=0xbf971134) at main.c:234 home = 0x0 Seems to be quota plugin related, i removed the plugin and i could log on with a new user that did not have a maildir yet. When we upgraded to 1.1 i enabled the quota plugin witch i forgot to mention (sorry) since it was working nicely and reporting the quota to the users. quota is from a netapp filer that we use over nfs, any idea if we can make this work? later we will change to dovecots deliver and use it's quota, but mean time it would be nice for the users to see their quota directly from the mail client. Jun 30 11:19:07 [dovecot] IMAP(username): fchown(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted Jun 30 11:19:07 [dovecot] IMAP(username): dovecot-acl-list creation failed: safe_mkstemp(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted Do you use SELinux or something like that? Operation not permitted is not the same as Permission denied which comes with normal filesystem permission problems. Not using SELinux, the location is also nfs if it makes a diffrence (control + index files are going to a local disk). i get the same error on the testbox as well, anything i could do to find out more why it's not creating the file? //sami
[Dovecot] No log for hitting login_max_processes_count?
I think today just due to increased use, my mail servers hit login_max_processes_count. It wasn't obvious what was happening, logins just weren't acting like they should and sometimes would get disconnected before given a prompt from the server. Something made me think to check if I had too many of certain dovecot processes and I found I had 128 imap-login processes on both servers, but nothing in the logs seemed to point that out for me. Should there be? It would have been alot easier to debug. Also, this seems to be from general use, doesn't seem like a DoS, so is this just a setting I should keep an eye on and increase it by reasonable amounts as needed? Thanks.
Re: [Dovecot] No log for hitting login_max_processes_count?
We ran into a similiar problem after migrating to Dovecot on Solaris with an LVS in front. Tweaking some config options cleared it up. Specifically turning on auth_cache: # Authentication Cache auth_cache_size = 10240 auth_cache_ttl = 18000 It went from hundreds of login processes down to 20-60. Bryan Polk Unix Systems Administrator Communication and Multimedia Services FAMU-FSU College of Engineering (850) 410-6164 [EMAIL PROTECTED] On Mon, 30 Jun 2008, Adam McDougall wrote: I think today just due to increased use, my mail servers hit login_max_processes_count. It wasn't obvious what was happening, logins just weren't acting like they should and sometimes would get disconnected before given a prompt from the server. Something made me think to check if I had too many of certain dovecot processes and I found I had 128 imap-login processes on both servers, but nothing in the logs seemed to point that out for me. Should there be? It would have been alot easier to debug. Also, this seems to be from general use, doesn't seem like a DoS, so is this just a setting I should keep an eye on and increase it by reasonable amounts as needed? Thanks.
[Dovecot] Dovecot + Postfix for Squirrel Webmail??
Hi, I would like to use Dovecot as IMAP Server in order to Develope a Squirrel Webmail. I have a problem with the Dovecot configuration; I have my Postfix server in the host: 192.168.100.100, and I have installed Dovecot in the host: 192.168.1.253. Everything goes right, but I can't see any mail that I had received in my mailbox. How can I configure the dovecot.conf in order to use an mbox placed in a different host?? Thanks. Bye Marcos Cabrera Goñi Departamento de Operaciones Comitas Comunicaciones S.A. Ronda de Poniente 4 Centro Empresarial Euronova 3 28760 - Tres Cantos - Madrid - España Central: +34 91 151 76 00 Móvil:+34 666 578 885 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[Dovecot] Vacation?
CentOS 5.1 Dovecot Postfix (part of CentOS install updated) I understand that there is a package which is part of Dovecot to handle Auto Responses known as Vacation. Where I can find more info on this package especially how to install configure it? Thanks Kirt
[Dovecot] Poor pop3 over nfs performance
Hi, About a week ago I upgraded our reasonably heavily loaded mail servers from a pretty recent courier version to dovecot-1.1rc10. IMAP performance on dovecot is amazing, however POP3 performance is worse than courier :-( I have uploaded some munin graphs taken today to http://linweb.atlas.pipex.net/dovecot/; the dovecot server is handling about 2000 pop logins/sec and 300 imap sessions (but these are negligible in terms of nfs ops). The courier server is handling a similar number of pop logins/sec but no imap (slightly less traffic overall but a similar number of logins). As you can see, dovecot seems to issue an awful lot more read requests than courier. The big spike at 10am is where I tried setting the :INDEX=MEMORY flag on dovecot as I assumed that's what courier is doing. I've also attached graphs of the relative network usage - as you can see, dovecot is using up to 100mbps whereas courier is using less than 10mbps; I believe this is due to the read. I initially assumed this high read load was due to courier building up its index files, but this has now been happening for about a week with little variation. The servers are both centos 5.0 (perhaps 5.1 actually, but with the latest centosplus kernel which fixes the nfs lookup bug in the standard kernels); and are not running any other nfs programs. The NFS server is a high performance NAS unit - no issues there. We're only using Maildirs; relevant config options are: mmap_disable: yes dotlock_use_excl: no mail_nfs_storage: yes mail_nfs_index: yes lock_method: dotlock maildir_copy_preserve_filename: yes Thanks, Mark
Re: [Dovecot] Poor pop3 over nfs performance
Sorr I can't give you an answer for your problem, but... On 6/30/2008 12:05 PM, Mark Zealey wrote: About a week ago I upgraded our reasonably heavily loaded mail servers from a pretty recent courier version to dovecot-1.1rc1o. 1.1.1 was released on 6/22, so you're a bit behind the curve... its normally recommended to upgrade to a release version before reporting problems... relevant config options are: Output of dovecot -n is preferred to selective snips from dovecot.conf... Also, dovecot is primarily an IMAP server, but someone else will have to tell you if the POP performance you are experiencing is normal or not... -- Best regards, Charles
Re: [Dovecot] Vacation?
On 6/30/2008, kbajwa ([EMAIL PROTECTED]) wrote: I understand that there is a package which is part of Dovecot to handle Auto Responses known as Vacation. Where I can find more info on this package especially how to install configure it? http://wiki.dovecot.org/LDA/Sieve -- Best regards, Charles
Re: [Dovecot] courier IMAP to dovecot migration: folders not showing up
Charles Marcus wrote: On 6/27/2008 8:27 PM, Jacob Yocom-Piatt wrote: any clues on how to fix this issue would be welcome. It will probably be helpful to provide output of dovecot -n so we can see your config... ? hope this sheds some light on the matter... will try recopying the maildirs and redoing the suggested conversion procedure. # 1.0.13: /usr/pkg/etc/dovecot.conf protocols: imaps disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/pkg/libexec/dovecot/imap-login valid_chroot_dirs: /var/vmail first_valid_uid: 1001 last_valid_uid: 1002 first_valid_gid: 100 last_valid_gid: 1000 mail_location: maildir:/var/vmail/%d/%n mail_debug: yes auth default: mechanisms: plain login cram-md5 passdb: driver: passwd-file args: /usr/pkg/etc/dovecot.passdb passdb: driver: passwd userdb: driver: passwd userdb: driver: static args: uid=1002 gid=100 home=/var/vmail/%d/%n socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix cheers, jake
Re: [Dovecot] can't download attachment from the wiki
On Mon, 2008-06-30 at 17:32 -0400, Andrew Schulman wrote: Hi. At http://wiki.dovecot.org/ManageSieve#line-229 , I want to download the patch that's supposed to fix two problems in Avelsieve. Unfortunately, when I click on the link to the patch, I always get an error message: You are not allowed to do AttachFile on this page. Ouch, sorry, I advised Timo to disable AttachFile because somebody was using the dovecot wiki to distribute some key files for something that had nothing to do with dovecot. Johannes, thanks. While we're waiting for that to get sorted out, could someone be so kind as to email me the patch? Thanks, Andrew. Sorry, I can't, I can't access the wiki outside of the regular web interface either. johannes signature.asc Description: This is a digitally signed message part
[Dovecot] newbie: problem with IMAPS + mutt + Thunderbird
Hi, I'm a Dovecot newbie and have some problems with the configuration/the resulting interoperability. My setup looks like this: I receive my mail using qmail-ldap and sort it with a number of means into ~/Mailbox/ (= INBOX) and ~/Mail/folder/ for various values of 'folder' (generally one folder per mailing list). The sorting is done via .qmail-* files, LDAP entries, and procmail (this is a legacy setup that I'd rather not change too much). I usually access my mail using 'mutt' on the local machine (Debian 4.0), and everything is fine. I'd like to be able to access the same email using Thunderbird over IMAPS as well, to gain foreign character support (ie, Chinese), while continuing to use mutt as my main MUA. There are, so far, two problems with this setup: 1. I can't find the folders in ~/Mail/. As an interim solution, I symlinked them from my ~/Mailbox/ dir, but this is _dead_ugly_. 2. (MUCH more serious) As soon as I access the email using Thunderbird, Dovecot moves all new mail from somefolder/new to somefolder/cur, thereby making mutt flag all my new mail as 'O' (old) which was flagged 'N' (new) before. If I remember which the new mails were, I can flag them as 'N' in mutt, and they get moved to .../new again, but this isn't usually the case because my mailboxen are often large ( 10.000 messages), and it's undone as soon as I access the mailbox with Thunderbird (over IMAPS). I also have a wish list. Both Mutt and Dovecot (can) make use of index files to speed mail access. It would be great if this could be unified so that both programs use the same index files (in a consistent manner, of course). The software versions I currently use are these: Mutt: 1.5.17+2008011 Dovecot: 1.0.13-1~bpo40 Thunderbird: 1.5.0.13+1.5.0 Dovecot configuration: log_timestamp: %Y-%m-%dT%H:%M:%S protocols: imaps ssl_listen: 10.10.10.1:993 login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login login_processes_count: 2 login_max_processes_count: 20 max_mail_processes: 30 first_valid_uid: 2000 first_valid_gid: 2000 mail_location: maildir:~/Mail:INBOX=~/Mailbox/ mail_debug: yes auth default: verbose: yes passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf Kind regards, --Toni++
Re: [Dovecot] Vacation?
I tried installing Dovecot Sieve Plugin. When I enter the command: % ./configure --with-dovecot=../dovecot-1.0.7 I get the error: Error: C processor lib/cpp fails sanity check. I think the problem may be that I am installing wrong version of Dovecot-Sieve-Plugin. Here is my system, just in case I am right: CentOS 5.1 postfix-2.3.3 (Note) dovecot-1.0.7 (Note) dovecot-sieve-1.1.5 Note: Both postfix dovecot are installed from CentOS 5.1 distro. I am sure that there are also updates. Can somebody help with this problem? I am pretty GREEN, therefore, if you can provide with 4-5 installation lines, I will really appreciate it. Thanks. Kirti -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Marcus Sent: Monday, June 30, 2008 12:50 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] Vacation? On 6/30/2008, kbajwa ([EMAIL PROTECTED]) wrote: I understand that there is a package which is part of Dovecot to handle Auto Responses known as Vacation. Where I can find more info on this package especially how to install configure it? http://wiki.dovecot.org/LDA/Sieve -- Best regards, Charles
Re: [Dovecot] Vacation?
Hi Kirti, On Tuesday 01 July 2008, kbajwa wrote: I tried installing Dovecot Sieve Plugin. When I enter the command: % ./configure --with-dovecot=../dovecot-1.0.7 I get the error: Error: C processor lib/cpp fails sanity check. I think the problem may be that I am installing wrong version of Dovecot-Sieve-Plugin. Here is my system, just in case I am right: CentOS 5.1 postfix-2.3.3 (Note) dovecot-1.0.7 (Note) dovecot-sieve-1.1.5 Note: Both postfix dovecot are installed from CentOS 5.1 distro. I am sure that there are also updates. Can somebody help with this problem? I am pretty GREEN, therefore, if you can provide with 4-5 installation lines, I will really appreciate it. Thanks. Kirti I recommend that you use the CentOS RPMs from atrpms.net (1.1 branch) - they work very well for me and other people here on the list. You don't need to build anything from source then. Once you have them running, follow the Wiki article that Charles provided a link to - it describes how to work with dovecot's sieve interpreter. One of the possibilities that come with sieve is the 'vacation' extension. Patrick. -- STAR Software (Shanghai) Co., Ltd.http://www.star-group.net/ Phone:+86 (21) 3462 7688 x 826 Fax: +86 (21) 3462 7779 PGP key: https://stshacom1.star-china.net/keys/patrick_nagel.asc Fingerprint: E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005 signature.asc Description: This is a digitally signed message part.