Hi, I am using the Debian dovecot packages and the deliver LDA from postfix, all version 1.0.beta8. My problem is with quota support, I am using Maildirs. The relevant configuration stuff is included at the bottom of this email. Quota support seems to work with IMAP. However, even when IMAP complains about an account being over quota, the deliver LDA still happily writes new mail to the (correct) Maildirs. I cannot see any warnings or other hints. Can you spot what I am doing wrong? Thanks! dovecot.conf: protocols = imap default_mail_env = maildir:~/.maildir auth default { mechanisms = plain passdb sql { args = /etc/dovecot/dovecot-sql.conf } userdb sql { args = /etc/dovecot/dovecot-sql.conf } socket listen { master { # LDA path = /var/run/dovecot-auth-master mode = 0600 user = vmail } } } plugin { quota = maildir } protocol imap { mail_plugins = quota imap_quota } protocol lda { postmaster_address = postmaster at seamus.madduck.net mail_plugins = quota } dovecot-sql.conf: driver = pgsql connect = host=localhost dbname=users user=dovecot password=XXXXXXXX password_query = select password from vmail.users where email='%u' user_query = select home, uid, gid, 'maildir:storage=' || quota as quote from vmail.users where email='%u' -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net at madduck spamtraps: madduck.bogus at madduck.net "women love us for our defects. if we have enough of them, they will forgive us everything, even our gigantic intellects." -- oscar wilde -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature (GPG/PGP) URL: <http://dovecot.org/pipermail/dovecot/attachments/20060627/86bc9036/attachment.bin>
Martin: On 6/27/06, martin f krafft <madduck at madduck.net> wrote:> Hi, I am using the Debian dovecot packages and the deliver LDA from > postfix, all version 1.0.beta8. My problem is with quota support, > I am using Maildirs. The relevant configuration stuff is included at > the bottom of this email. > > Quota support seems to work with IMAP. However, even when IMAP > complains about an account being over quota, the deliver LDA still > happily writes new mail to the (correct) Maildirs. I cannot see any > warnings or other hints.Had a similar problem setting up quota. You may want to ensure that postfix is actually using dovecot as a delivery agent. Does it show dovecot being used in mail logs? The wiki instructions didn't work for me to get postfix to work with the dovecot as the LDA -- here is what I have in my main.cf and master.cf (relevant bits pasted below): # master.cf: # dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/dovecot/libexec/dovecot/deliver -d ${user} # main.cf # transport_maps = ldap:ldaptransport ldap:ldaptransportlocal ldaptransport_result_filter = smtp:[%s] ldaptransport_version = 3 ldaptransport_server_host = ldap.company.com ldaptransport_search_base = dc=company, dc=com ldaptransport_query_filter (&(|(mail=%s)(mailAlternateAddress=%s))(!(mailHost=$localroute))(|(AccountStatus=active))) ldaptransport_result_attribute = mailHost # # The below is required for handing over the # message to dovecot for local delivery # ldaptransportlocal_result_filter = dovecot ldaptransportlocal_version = 3 ldaptransportlocal_server_host = ldap.company.com ldaptransportlocal_search_base = dc=company, dc=com ldaptransportlocal_query_filter (&(|(mail=%s)(mailAlternateAddress=%s))(mailHost=$localroute)(|(AccountStatus=active))) ldaptransportlocal_result_attribute = uid # We don't really need a result attribute here. # end. Regards, -- Mustafa A. Hashmi mahashmi at gmail.com mh at stderr.net
On Tue, 2006-06-27 at 20:55 +0200, martin f krafft wrote:> Hi, I am using the Debian dovecot packages and the deliver LDA from > postfix, all version 1.0.beta8. My problem is with quota support, > I am using Maildirs. The relevant configuration stuff is included at > the bottom of this email...> protocol lda { > postmaster_address = postmaster at seamus.madduck.net > mail_plugins = quota > }I think this was a bit broken if you didn't have mail_plugin_dir specified. Try 1.0rc1 where it's not necessary and it's a good idea to upgrade anyway to it :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20060628/39a28210/attachment.bin>
Hi, martin f krafft wrote:> Hi, I am using the Debian dovecot packages and the deliver LDA from > postfix, all version 1.0.beta8. My problem is with quota support, > I am using Maildirs. The relevant configuration stuff is included at > the bottom of this email. > > Quota support seems to work with IMAP. However, even when IMAP > complains about an account being over quota, the deliver LDA still > happily writes new mail to the (correct) Maildirs. I cannot see any > warnings or other hints. > > Can you spot what I am doing wrong? > > Thanks! > > dovecot.conf: > > protocols = imap > default_mail_env = maildir:~/.maildir > auth default { > mechanisms = plain > passdb sql { args = /etc/dovecot/dovecot-sql.conf } > userdb sql { args = /etc/dovecot/dovecot-sql.conf } > socket listen { > master { # LDA > path = /var/run/dovecot-auth-master > mode = 0600 > user = vmail > } > } > } > plugin { > quota = maildir > } > protocol imap { > mail_plugins = quota imap_quota > } > protocol lda { > postmaster_address = postmaster at seamus.madduck.net > mail_plugins = quota > } > > dovecot-sql.conf: > > driver = pgsql > connect = host=localhost dbname=users user=dovecot password=XXXXXXXX > password_query = select password from vmail.users where email='%u' > user_query = select home, uid, gid, 'maildir:storage=' || quota as > quote from vmail.users where email='%u' >Dovecot LDA in Debian packages is a bit outdated. In packages starting 1.0.beta5 to 1.0.beta9, LDA build is the same (from beginning of April I guess): dovecot (1.0.beta5-1) unstable; urgency=low * New upstream version. *Also updated dovecot-lda from CVS.* * debian/control. Added build-depends on flex to prevent FTBS. -- Jaldhar H. Vyas <jaldhar at debian.org> *Thu, 6 Apr 2006 16:22:46 -0400 *See http://packages.debian.org/changelogs/pool/main/d/dovecot/dovecot_1.0.beta9-1/changelog And as far as I tested, this version of LDA does not care about quota at all. Regards, Dumitru