Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-28 Thread Timo Sirainen
On 11.1.2012, at 19.30, Adrian Minta wrote:

 Hello,
 
 I tested with mail_location = whatever-you-have-now:INDEX=MEMORY and it 
 seems to help, but in the mean time I found another option completely 
 undocumented that seems to do exactly what I wanted:
 protocol lda {
   mailbox_list_index_disable= yes
 
 }
 
 Does anyone knows exactly what  mailbox_list_index_disable does and if is 
 still available in 2.0 and 2.1 branch ?

mailbox_list_index_disable does absolutely nothing in v2.0, and it defaults to 
no in v2.1 also. It's about a different kind of index.



Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-11 Thread Adrian Minta

Hello,

I tested with mail_location = whatever-you-have-now:INDEX=MEMORY and it seems 
to help, but in the mean time I found another option completely undocumented that seems 
to do exactly what I wanted:
protocol lda {
mailbox_list_index_disable= yes

}

Does anyone knows exactly what  mailbox_list_index_disable does and if 
is still available in 2.0 and 2.1 branch ?




Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-06 Thread Timo Sirainen
On Fri, 2012-01-06 at 13:07 +0200, Adrian Minta wrote:
 Hello,
 is it possible to disable indexing on dovecot-lda ?

protocol lda {
  mail_location = whatever-you-have-now:INDEX=MEMORY
}

 Right now postfix delivers the mail directly to the nfs server without 
 any problems. If I switch to dovecot-lda the system crashes do to the 
 high I/O and locking.

Disabling indexing won't disable writing to dovecot-uidlist file. So I
don't know if disabling indexes actually helps.




Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-06 Thread Stan Hoeppner
On 1/6/2012 5:07 AM, Adrian Minta wrote:
 Hello,
 is it possible to disable indexing on dovecot-lda ?
 
 Right now postfix delivers the mail directly to the nfs server without
 any problems. If I switch to dovecot-lda the system crashes do to the
 high I/O and locking.
 Indexing on lda is not very useful because the number of of imap logins
 is less than 5% that of incoming mails, so an user could wait for 3 sec
 to get his mail index, but a new mail can't.

Then why bother with Dovecot LDA w/disabled indexing (the main reason
for using it in the first place) instead of simply sticking with Postfix
Local(8)?

-- 
Stan


Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-06 Thread Adrian Minta

On 01/06/12 13:39, Timo Sirainen wrote:

On Fri, 2012-01-06 at 13:07 +0200, Adrian Minta wrote:

Hello,
is it possible to disable indexing on dovecot-lda ?

protocol lda {
   mail_location = whatever-you-have-now:INDEX=MEMORY
}


Right now postfix delivers the mail directly to the nfs server without
any problems. If I switch to dovecot-lda the system crashes do to the
high I/O and locking.

Disabling indexing won't disable writing to dovecot-uidlist file. So I
don't know if disabling indexes actually helps.



I don't have mail_location under protocol lda:

protocol lda {
  # Address to use when sending rejection mails.
  postmaster_address = postmaster@xxx
  sendmail_path = /usr/lib/sendmail
  auth_socket_path = /var/run/dovecot/auth-master
  mail_plugins = quota
  syslog_facility = mail
}

The mail_location is present only global. What to do then ?




Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-06 Thread Adrian Minta

On 01/06/12 13:50, Stan Hoeppner wrote:

On 1/6/2012 5:07 AM, Adrian Minta wrote:

Hello,
is it possible to disable indexing on dovecot-lda ?

Right now postfix delivers the mail directly to the nfs server without
any problems. If I switch to dovecot-lda the system crashes do to the
high I/O and locking.
Indexing on lda is not very useful because the number of of imap logins
is less than 5% that of incoming mails, so an user could wait for 3 sec
to get his mail index, but a new mail can't.

Then why bother with Dovecot LDA w/disabled indexing (the main reason
for using it in the first place) instead of simply sticking with Postfix
Local(8)?



Because of sieve and quota support. Another possible advantage will be 
the support for hashed mailbox directories.




Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-06 Thread Timo Sirainen
On Fri, 2012-01-06 at 15:01 +0200, Adrian Minta wrote:
  protocol lda {
 mail_location = whatever-you-have-now:INDEX=MEMORY
  }
 
 I don't have mail_location under protocol lda:

Just add it there.




Re: [Dovecot] howto disable indexing on dovecot-lda ?

2012-01-06 Thread Adrian Minta

On 01/06/12 15:08, Timo Sirainen wrote:

On Fri, 2012-01-06 at 15:01 +0200, Adrian Minta wrote:

protocol lda {
mail_location = whatever-you-have-now:INDEX=MEMORY
}


I don't have mail_location under protocol lda:

Just add it there.



Thank you !
Dovecot didn't complain after restart and the dovecot -a reports it 
correctly:


lda:
  postmaster_address: postmaster@xxx
  sendmail_path: /usr/lib/sendmail
  auth_socket_path: /var/run/dovecot/auth-master
  mail_plugins: quota
  syslog_facility: mail
  mail_location: maildir:/var/virtual/%d/%u:INDEX=MEMORY

I will do a test with this.