przemek.orzechowski at makolab.pl
2012-Feb-02 22:58 UTC
[Dovecot] Question about quota configuration
Hi This is my first post here so i will be as precise as i can I'm trying to setup a quota system using dovecot postfix and procmail dovecot version 1.2.9 postfix version 2.7.0 I have succesfully modified dovecot config to use fs quota system (so far imap and pop3) It reports correct quotas to imap and pop3 clients (both user and group) What im tryin to do now is to modify postfix->procmail->dovecot config in a way that if user is over quota mail delivery is delayed instead of bouncing. (is this possible?) Second thing i would like to achive is that when authenticated users close to quota/group quota for example 10MB to quota limit try sending email theyr mail is rejected and preferably an email is generated telling them to free some space for new mails first. (is such a thing possible?) MS Exchange servers have such a feature and I would like to get such a functionality on my linux mailserver I'm trying to prevent a situation when mails are lost due to quota problems. This setup was initially a typical virtualmin installation with a system on single partition. Thanks in advance for all Your suggestions
Il 02/02/2012 23:58, przemek.orzechowski at makolab.pl ha scritto:> > Hi > > This is my first post here so i will be as precise as i can > > I'm trying to setup a quota system using dovecot postfix and procmail > dovecot version 1.2.9 > postfix version 2.7.0 > > I have succesfully modified dovecot config to use fs quota system (so far > imap and pop3) > It reports correct quotas to imap and pop3 clients (both user and group) > > What im tryin to do now is to modify postfix->procmail->dovecot config > in a way that if user is over quota mail delivery is delayed instead of > bouncing. > (is this possible?)Yes, you can do it but with Dovecot LDA instead of procmail. See the options "quota_full_tempfail" for Dovecot LDA. Bye -- Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/ @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it @ LOLUG -> Socio http://www.lolug.net
On Thu, Feb 02, 2012 at 11:58:12PM +0100, przemek.orzechowski at makolab.pl wrote:> > What im tryin to do now is to modify postfix->procmail->dovecot config > in a way that if user is over quota mail delivery is delayed instead of > bouncing. > (is this possible?)Check the quota_full_tempfail setting, http://wiki.dovecot.org/MainConfig> > Second thing i would like to achive is that when authenticated users close > to quota/group quota for example 10MB to quota limit > try sending email theyr mail is rejected and preferably an email is > generated telling them to free some space for new mails first. > (is such a thing possible?)Check "Quota warnings" at http://wiki.dovecot.org/Quota/1.1 -jf
Thanks for quick reply>-----Original Message----- >From: Jan-Frode Myklebust <janfrode at tanso.net> >Reply-to: Jan-Frode Myklebust <janfrode at tanso.net> >To: przemek.orzechowski at makolab.pl >Cc: dovecot at dovecot.org >Subject: Re: [Dovecot] Question about quota configuration >Date: Fri, 3 Feb 2012 08:36:04 +0100 >Mailer: Mutt/1.5.20 (2009-12-10) > >On Thu, Feb 02, 2012 at 11:58:12PM +0100, przemek.orzechowski at makolab.pl wrote: >> >> What im tryin to do now is to modify postfix->procmail->dovecot config >> in a way that if user is over quota mail delivery is delayed instead of >> bouncing. >> (is this possible?) > >Check the quota_full_tempfail setting, > > > http://wiki.dovecot.org/MainConfig >For some reason when i configure dovecot to act as the final LDA in procmail and set quota_full_tempfail = yes overquota mails get lost somewhere As Virtualmin is relying for some of its functons on procmail droping it compleetly is impossible or at least very difficult.>> >> Second thing i would like to achive is that when authenticated users close >> to quota/group quota for example 10MB to quota limit >> try sending email theyr mail is rejected and preferably an email is >> generated telling them to free some space for new mails first. >> (is such a thing possible?) > >Check "Quota warnings" at http://wiki.dovecot.org/Quota/1.1 >I agree this is the solution for sending a warning email, but is there a method to actually prohibit users close to quota to send emails? Ie defining dovecot as authentication agent ?> > -jfto make things easier for everyone im posting snippets from my config of dovecot and procmail :0wi VIRTULAMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME EXITCODE=0 :0 * ?/usr/bin/test "$VIRTUALMIN" != "" { INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN } DEFAULT=$HOME/Maildir/ ORGMAIL=$HOME/Maildir/ DELIVER="/usr/lib/dovecot/deliver" DROPPRIVS=yes dovecot config snippets regarding LDA protocol lda { mail_plugins = quota quota_full_tempfail = yes } for some reason this results in mails lost without any trace when users are over quota (i would like to requeue those emails for later delivery) Most probably its not directly dovecot related but as most people here are more or less runing mail servers so maybe someone could help me further.