[Dovecot] IMAP goes down from time to time

Juan Felipe Estrada estradaf at uninorte.edu.co
Thu Nov 5 16:30:46 EET 2009


Good Morning

I´m writing back cause the IMAP going down issue has changed a little, i 
still have the dovecot-1.0.7-7.el5 but with 2 changes; I added to the 
dovecot.conf the outlook-idle workaround, and the three login_processes 
parameters
login_process_per_connection = yes
login_processes_count = 3
login_max_processes_count = 128

Since I added this parameters the IMAP process has gone down just 1 time 
in 2 weeks, before this, the proccess was going down about 4 times a day 
so I think this is suitable, the next step i´ll take is to update the 
Dovecot.

Thanks for your help

Juan Felipe Estrada

dovecot-request at dovecot.org escribió:
> Send dovecot mailing list submissions to
> 	dovecot at dovecot.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://dovecot.org/cgi-bin/mailman/listinfo/dovecot
> or, via email, send a message with subject or body 'help' to
> 	dovecot-request at dovecot.org
>
> You can reach the person managing the list at
> 	dovecot-owner at dovecot.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dovecot digest..."
>
>
> Today's Topics:
>
>    1. Re: Panic when using QRESYNC (Michael M. Slusarz)
>    2. Re: Capability info in hello message not complete? (Timo Sirainen)
>    3. Re: Expire plugin per domain (Timo Sirainen)
>    4. Re: Expire plugin per domain (Jose Luis Marin Perez)
>    5. Re: Expire plugin per domain (Timo Sirainen)
>    6. Re: Expire plugin per domain (Jose Luis Marin Perez)
>    7. Re: IMAP goes down from time to time (Juan Felipe Estrada)
>    8. Re: deliver+sieve: Destination address (-a) parsing changes
>       (Timo Sirainen)
>    9. Re: deliver+sieve: Destination address (-a) parsing	changes
>       (Frank Behrens)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 20 Oct 2009 13:48:32 -0600
> From: "Michael M. Slusarz" <slusarz at curecanti.org>
> Subject: Re: [Dovecot] Panic when using QRESYNC
> To: Dovecot Mailing List <dovecot at dovecot.org>
> Message-ID: <20091020134832.Horde.gkck4wsoc00o at bigworm.curecanti.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes
>
> Quoting Timo Sirainen <tss at iki.fi>:
>
>   
>> On Tue, 2009-10-20 at 15:38 -0400, Timo Sirainen wrote:
>>     
>>> On Tue, 2009-10-20 at 13:34 -0600, Michael M. Slusarz wrote:
>>>       
>>>> Hmmm... Rebuilt with the latest 1.2.7-pre code yesterday, and I am
>>>> still seeing this (on at least 2 different mailboxes in the last day):
>>>>
>>>> Oct 20 13:23:32 bigworm dovecot: IMAP(slusarz): Panic: file
>>>> imap-fetch.c: line 2
>>>> 27 (get_expunges_fallback): assertion failed: (mail->uid > next_uid)
>>>>         
>>> Is it logging any other errors anymore? I can't really see how the code
>>> is broken to cause this.
>>>       
>> Oh, this actually should fix it:
>> http://hg.dovecot.org/dovecot-1.2/rev/36b8d97d0f58
>>     
>
> OK - I'm building with the latest source and will keep my eye out for  
> any issues.
>
> michael
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 20 Oct 2009 15:49:45 -0400
> From: Timo Sirainen <tss at iki.fi>
> Subject: Re: [Dovecot] Capability info in hello message not complete?
> To: Michal Hlavinka <mhlavink at redhat.com>
> Cc: dovecot at dovecot.org
> Message-ID: <1256068185.4605.834.camel at timo-desktop>
> Content-Type: text/plain; charset="us-ascii"
>
> On Tue, 2009-10-20 at 17:10 +0200, Michal Hlavinka wrote:
>   
>> On Tuesday 13 October 2009 19:10:15 Timo Sirainen wrote:
>>     
>>> On Tue, 2009-10-13 at 17:26 +0200, Michal Hlavinka wrote:
>>>       
>>>> would it be possible to:
>>>> a) send content of imap_capability in greeting message? It should be
>>>> user's responsibility if it's set to something "weird"
>>>>         
>>> I guess I could do this.
>>>       
>> "could" - does it mean you are waiting for my response? If yes this option is 
>> fine for me, since it should fix the issue.
>>     
>
> It meant I added it to my TODO list, but hadn't yet got around to doing
> it. Anyway, done now: http://hg.dovecot.org/dovecot-1.2/rev/ab32d7e2c0d6
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 197 bytes
> Desc: This is a digitally signed message part
> Url : http://dovecot.org/pipermail/dovecot/attachments/20091020/6ce7ff61/attachment-0001.bin 
>
> ------------------------------
>
> Message: 3
> Date: Tue, 20 Oct 2009 16:25:29 -0400
> From: Timo Sirainen <tss at iki.fi>
> Subject: Re: [Dovecot] Expire plugin per domain
> To: Jose Luis Marin Perez <jolumape_al at hotmail.com>
> Cc: dovecot at dovecot.org
> Message-ID: <1256070329.4605.835.camel at timo-desktop>
> Content-Type: text/plain; charset="us-ascii"
>
> On Tue, 2009-10-20 at 10:00 -0500, Jose Luis Marin Perez wrote:
>   
>>  My problem is that I have no idea how to create the userdb.sh 
>>     
>
> >From my previous mail:
>
>   
>> Then create /usr/local/bin/userdb.sh which does more or less what the
>> vchkpw-wrapper.sh does, except since it doesn't call vchkpw itself,
>> it'll need to get the username from $USER instead of $VPOPUSER.
>>
>> http://wiki.dovecot.org/AuthDatabase/CheckPassword#Checkpassword_as_userdb explains this extension.
>>     
>
> So start with copy&pasting your vchkpw-wrapper.sh.
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 197 bytes
> Desc: This is a digitally signed message part
> Url : http://dovecot.org/pipermail/dovecot/attachments/20091020/aa47e827/attachment-0001.bin 
>
> ------------------------------
>
> Message: 4
> Date: Tue, 20 Oct 2009 15:43:58 -0500
> From: Jose Luis Marin Perez <jolumape_al at hotmail.com>
> Subject: Re: [Dovecot] Expire plugin per domain
> To: <tss at iki.fi>
> Cc: dovecot at dovecot.org
> Message-ID: <COL103-W11921005964574B7B5B99C98C00 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi Timo,
>
> I copied vchkpw-wrapper.sh as userdb.sh, being as follows:
>
> userdb.sh
>
> #!/bin/bash
>
> DOMAIN=`echo $VPOPUSER|sed s/^.*@//`
>
> if [ "$DOMAIN" = "operaciones.qnet.com.pe" ]; then
>   export USERDB_AUTOCREATE=INBOX.Spam
>   export USERDB_AUTOSUBSCRIBE=INBOX.Spam
>   export USERDB_EXPIRE="INBOX.Spam 1 INBOX.Spam.* 1"
>   export USERDB_EXPIRE_DICT="proxy::expire"
>   export EXTRA="USERDB_AUTOCREATE USERDB_AUTOSUBSCRIBE USERDB_EXPIRE USERDB_EXPIRE_DICT"
> fi
>
> unset USER
> exec $*
>
> When I run the command /usr/local/sbin/dovecot --exec-mail ext /usr/local/bin/expire-tool.sh --test
>
>  I get the same error message
>
> Fatal: expire and expire_altmove settings not set
>
> expire-tool.sh
>
> #!/bin/bash
> MAIL_PLUGINS=${MAIL_PLUGINS//imap_quota/}
> MAIL_PLUGINS=${MAIL_PLUGINS//mail_log/}
> /usr/local/libexec/dovecot/expire-tool $1
>
> dovecot --build-options
> Build options: ioloop=epoll notify=dnotify ipv6 openssl
> Mail storages: cydir dbox maildir mbox raw shared
> SQL drivers: mysql
> Passdb: checkpassword pam passwd passwd-file shadow sql
> Userdb: nss passwd passwd-file prefetch sql static
>
> What's wrong?
>
> Thanks 
>
> Jose Luis
>
> dovecot -n
>
> # 1.2.6: /usr/local/etc/dovecot.conf
> # OS: Linux 2.6.9-67.0.15.plus.c4smp i686 CentOS release 4.6 (Final)
> log_path: /var/log/dovecot.log
> listen: *:10143
> ssl_listen: *:10943
> disable_plaintext_auth: no
> login_dir: /usr/local/var/run/dovecot/login
> login_executable: /usr/local/libexec/dovecot/imap-login
> first_valid_uid: 89
> last_valid_uid: 89
> first_valid_gid: 89
> last_valid_gid: 89
> mail_uid: 89
> mail_gid: 89
> mail_location: maildir:~/Maildir
> mail_debug: yes
> mail_plugins: quota imap_quota expire mail_log autocreate
> namespace:
>   type: private
>   separator: .
>   prefix: INBOX.
>   inbox: yes
>   list: yes
>   subscriptions: yes
> lda:
>   postmaster_address: postmaster at example.com
> auth default:
>   debug: yes
>   passdb:
>     driver: checkpassword
>     args: /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh
>   userdb:
>     driver: prefetch
>   userdb:
>     driver: checkpassword
>     args: /usr/local/bin/userdb.sh
>   socket:
>     type: listen
>     master:
>       path: /usr/local/var/run/dovecot/auth-master
>       mode: 384
>       user: vpopmail
>       group: vchkpw
> plugin:
>   quota: maildir
>   quota_rule: ?:storage=0
>   quota_rule2: Trash:ignore
>   mail_log_events: delete undelete expunge copy mailbox_delete
>   mail_log_group_events:
>   mail_log_fields: uid box msgid size
> dict:
>   expire: mysql:/usr/local/etc/dovecot-dict-expire.conf
>
>
>
>   
>> Subject: Re: [Dovecot] Expire plugin per domain
>> From: tss at iki.fi
>> To: jolumape_al at hotmail.com
>> CC: dovecot at dovecot.org
>> Date: Tue, 20 Oct 2009 16:25:29 -0400
>>
>> On Tue, 2009-10-20 at 10:00 -0500, Jose Luis Marin Perez wrote:
>>     
>>>  My problem is that I have no idea how to create the userdb.sh 
>>>       
>> From my previous mail:
>>
>>     
>>> Then create /usr/local/bin/userdb.sh which does more or less what the
>>> vchkpw-wrapper.sh does, except since it doesn't call vchkpw itself,
>>> it'll need to get the username from $USER instead of $VPOPUSER.
>>>
>>> http://wiki.dovecot.org/AuthDatabase/CheckPassword#Checkpassword_as_userdb explains this extension.
>>>       
>> So start with copy&pasting your vchkpw-wrapper.sh.
>>
>>     
>  		 	   		  
> _________________________________________________________________
> Connect to the next generation of MSN Messenger?
> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
>
> ------------------------------
>
> Message: 5
> Date: Tue, 20 Oct 2009 16:46:52 -0400
> From: Timo Sirainen <tss at iki.fi>
> Subject: Re: [Dovecot] Expire plugin per domain
> To: Jose Luis Marin Perez <jolumape_al at hotmail.com>
> Cc: dovecot at dovecot.org
> Message-ID: <1256071612.4605.837.camel at timo-desktop>
> Content-Type: text/plain; charset="us-ascii"
>
> On Tue, 2009-10-20 at 15:43 -0500, Jose Luis Marin Perez wrote:
>   
>> DOMAIN=`echo $VPOPUSER|sed s/^.*@//`
>>     
> ..
>   
>>>> vchkpw-wrapper.sh does, except since it doesn't call vchkpw
>>>>         
>> itself,
>>     
>>>> it'll need to get the username from $USER instead of $VPOPUSER.
>>>>
>>>>         
>
> The above explains the first problem...
>
> Sorry, but I've spent already way too much time answering your
> questions. My previous email+wiki contains all the information necessary
> to write the script. If you can't do it yourself, find/pay someone else
> who isn't as busy as me.
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 197 bytes
> Desc: This is a digitally signed message part
> Url : http://dovecot.org/pipermail/dovecot/attachments/20091020/78382dc3/attachment-0001.bin 
>
> ------------------------------
>
> Message: 6
> Date: Tue, 20 Oct 2009 15:56:09 -0500
> From: Jose Luis Marin Perez <jolumape_al at hotmail.com>
> Subject: Re: [Dovecot] Expire plugin per domain
> To: <dovecot at dovecot.org>
> Message-ID: <COL103-W64893BB2B6CCF6EB56259A98C00 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Thanks Timo
>
>   
>> From: tss at iki.fi
>> To: jolumape_al at hotmail.com
>> Date: Tue, 20 Oct 2009 16:46:52 -0400
>> CC: dovecot at dovecot.org
>> Subject: Re: [Dovecot] Expire plugin per domain
>>
>> On Tue, 2009-10-20 at 15:43 -0500, Jose Luis Marin Perez wrote:
>>     
>>> DOMAIN=`echo $VPOPUSER|sed s/^.*@//`
>>>       
>> ..
>>     
>>>>> vchkpw-wrapper.sh does, except since it doesn't call vchkpw
>>>>>           
>>> itself,
>>>       
>>>>> it'll need to get the username from $USER instead of $VPOPUSER.
>>>>>
>>>>>           
>> The above explains the first problem...
>>
>> Sorry, but I've spent already way too much time answering your
>> questions. My previous email+wiki contains all the information necessary
>> to write the script. If you can't do it yourself, find/pay someone else
>> who isn't as busy as me.
>>
>>     
>  		 	   		  
> _________________________________________________________________
> Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
>
> ------------------------------
>
> Message: 7
> Date: Tue, 20 Oct 2009 16:27:29 -0500
> From: Juan Felipe Estrada <estradaf at uninorte.edu.co>
> Subject: Re: [Dovecot] IMAP goes down from time to time
> To: dovecot at dovecot.org
> Message-ID: <4ADE2B41.9080100 at uninorte.edu.co>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Good afternoon again
>
> I was thinking about the Dovecot upgrading so i?m doing this in the next 
> hours. in the other hand here i show you the dovecot-ldap.conf file I 
> think it has just the necessary options to bind the LDAP server.
>
> /hosts = *********
> base = ou=People,o=*****,o=******
> ldap_version = 3
> auth_bind = yes
> auth_bind_userdn = uid=%u,ou=People,o=******,o=******
>
> /About the dovecot.conf should I use some login options as 
> /login_process_per_connection = yes  /or  /login_processes_count = 1/?
>
> For now thanks so much for the help i?ll inform about the new version 
> installation
>
> Juan Felipe Estrada
>
> dovecot-request at dovecot.org escribi?:
>   
>> Send dovecot mailing list submissions to
>> 	dovecot at dovecot.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://dovecot.org/cgi-bin/mailman/listinfo/dovecot
>> or, via email, send a message with subject or body 'help' to
>> 	dovecot-request at dovecot.org
>>
>> You can reach the person managing the list at
>> 	dovecot-owner at dovecot.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of dovecot digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: Need a little shadow to MySQL conversion help (Jerry)
>>    2. Re: Need a little shadow to MySQL conversion help (Marc Perkel)
>>    3. Re: Need a little shadow to MySQL conversion help
>>       (Andreas Ntaflos)
>>    4. Re: Need a little shadow to MySQL conversion help
>>       (Andreas Ntaflos)
>>    5. IMAP goes down from time to time (Juan Felipe Estrada)
>>    6. Re: VZW Blackberry BIS problems? (Patrick Domack)
>>    7. Re: IMAP goes down from time to time (Andreas Ntaflos)
>>    8. Re: IMAP goes down from time to time (Timo Sirainen)
>>    9. Re: VZW Blackberry BIS problems? (Timo Sirainen)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 20 Oct 2009 12:49:16 -0400
>> From: Jerry <gesbbb at yahoo.com>
>> Subject: Re: [Dovecot] Need a little shadow to MySQL conversion help
>> To: dovecot at dovecot.org
>> Message-ID: <20091020124916.114b8820 at scorpio.seibercom.net>
>> Content-Type: text/plain; charset=US-ASCII
>>
>> On Tue, 20 Oct 2009 17:57:35 +0200
>> Andreas Ntaflos <daff at dword.org> wrote:
>>
>>   
>>     
>>> On Tuesday 20 October 2009 17:07:49 Timo Sirainen wrote:
>>>     
>>>       
>>>> On Oct 20, 2009, at 9:45 AM, Andreas Ntaflos wrote:
>>>>       
>>>>         
>>>>> I'd say you need a static userdb. Something like this:
>>>>>         
>>>>>           
>>>> A couple of small things:
>>>>       
>>>>         
>>>>> passdb sql {
>>>>> args = /etc/dovecot/dovecot-sql.conf
>>>>> }
>>>>>
>>>>> userdb static {
>>>>> args = uid=vmail gid=vmail home=/var/vmail/%Ld/%Ln
>>>>> allow_all_users=yes }
>>>>>         
>>>>>           
>>>> %Ld/%Ln at this point works for now, but maybe not in future. I'd
>>>> have passdb already change it lowercase. Also allow_all_users=yes
>>>> isn't required (but maybe not harmful) since passdb sql is used.
>>>>       
>>>>         
>>> That's good to know, thanks. And you're right of course, the passdb 
>>> should already return the correct information, Dovecot shouldn't be 
>>> asked to change anything afterwards.
>>>
>>> Fortunately I myself don't use MySQL anymore but have migrated 
>>> everything to PostgreSQL. It does a much better job as a DBMS
>>> (remote, secured access to the DB, fine-grained permissions and
>>> rules) and also knows about case sensitivity. So foobar at example.com
>>> is not the same as FooBar at example.com. Which eliminates this problem
>>> class altogether.
>>>     
>>>       
>> MySQL, since at least 5.x knows about case. You can Google for the
>> information if you want.
>>
>>   
>>     
>>>>> password_query = SELECT password FROM view_users WHERE email='%u';
>>>>>         
>>>>>           
>>>> SELECT password, email AS user FROM ..
>>>>
>>>> changes username to same case as it's in the database (so lowercase
>>>> probably) and there's no need to use %L anymore.
>>>>       
>>>>         
>>> You mean something like 
>>>
>>> SELECT password, LOWER(email) as user FROM view_users WHERE email='%u'
>>>
>>> should do the trick? I shall test this on my test server, just for
>>> fun.
>>>
>>> Andreas
>>>     
>>>       
>
>
> ------------------------------
>
> Message: 8
> Date: Tue, 20 Oct 2009 18:53:11 -0400
> From: Timo Sirainen <tss at iki.fi>
> Subject: Re: [Dovecot] deliver+sieve: Destination address (-a) parsing
> 	changes
> To: Frank Behrens <frank at ilse.behrens.de>
> Cc: dovecot at dovecot.org
> Message-ID: <1256079191.4605.840.camel at timo-desktop>
> Content-Type: text/plain; charset="us-ascii"
>
> On Tue, 2009-10-20 at 21:13 +0200, Frank Behrens wrote:
>   
>> When Timo introduced this feature
>> (http://www.dovecot.org/list/dovecot/2007-September/025813.html)
>> it was possible to hand over only the detail part. In my sendmail configuration I used "-a +$h", 
>> where $h contains the detail part and may be empty. 
>>     
>
> Well, I can say I never intended for it to work that way..
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 197 bytes
> Desc: This is a digitally signed message part
> Url : http://dovecot.org/pipermail/dovecot/attachments/20091020/9aaa2b64/attachment-0001.bin 
>
> ------------------------------
>
> Message: 9
> Date: Wed, 21 Oct 2009 08:35:06 +0200
> From: "Frank Behrens" <frank at ilse.behrens.de>
> Subject: Re: [Dovecot] deliver+sieve: Destination address (-a) parsing
> 	changes
> To: Dovecot Mailing List <dovecot at dovecot.org>
> Message-ID: <200910210635.n9L6Z5GO097299 at post.behrens.de>
> Content-Type: text/plain; charset=US-ASCII
>
> Timo Sirainen <dovecot at dovecot.org> wrote on 20 Oct 2009 18:53:
>   
>> On Tue, 2009-10-20 at 21:13 +0200, Frank Behrens wrote:
>>     
>>> When Timo introduced this feature
>>> (http://www.dovecot.org/list/dovecot/2007-September/025813.html)
>>> it was possible to hand over only the detail part. In my sendmail configuration I used "-a +$h", 
>>> where $h contains the detail part and may be empty. 
>>>       
>> Well, I can say I never intended for it to work that way..
>>     
>  
> Yes, I believe that, it looks ugly. But that way it was easily to setup with sendmail. 
>
> It seems that sendmail's LDA interface does not exactly match deliver's expectations. Hm, do 
> we must support sendmail? No, but it is one of the most used mailservers. So what?
> 1. modify sendmail
> 2. modify deliver
> 3. insert a wrapper
> 4. ???
>
> Now I tend to 3, but 2. would have the advantage to make dovecot more robust, also in 
> collaboration with other MTAs.
>
>   


More information about the dovecot mailing list