Re: [Dovecot] Dovecot and user's quota

2010-11-18 Thread Timo Sirainen
On Wed, 2010-11-10 at 13:09 +0100, oriol llistes wrote:

 We are planning to use Dovecot-2.0.5 (Maildir format) as IMAP server.
..
 1)Postfix must use /var/mail partition for new mails.
 2)Dovecot must move these mails to user’s HOME.
 3)User’s HOME must be in Maildir format.

v1.x supported that with mbox-snarf, but only with mbox - mbox. In v2.0
the mbox-snarf plugin has been broken and it's been a bit difficult to
fix. I now redesigned it and named it snarf. So if you get the latest
code from hg (or tomorrow's nightly snapshot or wait for v2.0.8) you can
do something like:

mail_plugins = snarf

namespace default {
  prefix = 
  separator = .
  inbox = yes
}
namespace snarf {
  prefix = .snarf
  separator = .
  location = mbox:/var/run/dovecot/empty:INBOX=/var/mail/%u:INDEX=MEMORY
}

plugin {
  snarf = .snarf/INBOX
}

(Using the separator as the first character in snarf namespace prefix
guarantees that there won't be collisions with user's mailbox names.)



[Dovecot] Dovecot and user's quota

2010-11-10 Thread oriol llistes

Hi,

We are planning to use Dovecot-2.0.5 (Maildir format) as IMAP server.
Currently, we are using Postfix+UW-Imap (mbox format) with the following 
configuration:


- Postfix: Sends new messages to /var/mail/user
- UW-IMAP: Reads mails from /var/mail/user and moves them to ~/nsmail/mbox

Using that configuration, when a user overtakes his HOME’s quota, the 
MTA is still able to send new messages to the user, although he cannot 
read it until he frees HOME space.


Can we configure Dovecot to work in the same way? I mean…

1)Postfix must use /var/mail partition for new mails.
2)Dovecot must move these mails to user’s HOME.
3)User’s HOME must be in Maildir format.

If that is not possible, how can we achieve an equivalent solution?

Thanks in advance.

Oriol.