Re: [Dovecot] Override quota rules based on mail's content

2009-09-21 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 10 Sep 2009, Marty Anstey wrote: Actually I just tried this and it doesn't appear to work: Fatal: Error in config file /etc/dovecot-noquota.conf: deliver doesn't support !include directive I manage multiple copies of conf's using make and

Re: [Dovecot] Override quota rules based on mail's content

2009-09-14 Thread Andreas Calvo Gómez
Hi, thanks for your quick answer. But, where can I filter the sender and allow the mail to be delivered to the user mailbox? Thanks. - Andreas Calvo Gómez Dept. Informàtica ESCI Pg. Pujades, 1 08003 Barcelona tel. (34) 932954710 ext.233 fax. (34) 932954720 http://www.esci.es -

Re: [Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Timo Sirainen
On Sep 10, 2009, at 7:53 PM, Marty Anstey wrote: Just out of curiosity, how has this been addressed in 2.0? In v2.0 deliver and everything else uses the same method of reading config files. In v1.x deliver has its own ugly kludgy config reading code.

Re: [Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Marty Anstey
No problem; 'grep -Ev "^\s*quota_warning.*$" /etc/dovecot.conf > /etc/dovecot-noquota.conf' solved it for now... Just out of curiosity, how has this been addressed in 2.0? >> Actually I just tried this and it doesn't appear to work: >> >> Fatal: Error in config file /etc/dovecot-noquota.conf: d

Re: [Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Timo Sirainen
On Thu, 2009-09-10 at 14:25 -0700, Marty Anstey wrote: > Actually I just tried this and it doesn't appear to work: > > Fatal: Error in config file /etc/dovecot-noquota.conf: deliver doesn't > support !include directive > > I checked deliver.c in both 1.1.8 and 1.2.4 and it doesn't look like > it'

Re: [Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Marty Anstey
Actually I just tried this and it doesn't appear to work: Fatal: Error in config file /etc/dovecot-noquota.conf: deliver doesn't support !include directive I checked deliver.c in both 1.1.8 and 1.2.4 and it doesn't look like it's supported in either. > well, you could also do: > > /etc/dovecot-n

Re: [Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Timo Sirainen
well, you could also do: /etc/dovecot-noquota.conf: !include /etc/dovecot.conf mail_plugins = With v1.2+ you could do it a bit more cleanly by overriding quota instead of mail_plugins: plugin { quota = maildir:User quota:noenforcing } On Thu, 2009-09-10 at 12:53 -0700, Marty Anstey wrote: >

Re: [Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Marty Anstey
While we're on this subject, Having to maintain two copies of the config file isn't a very elegant solution. Is there a possiblity of perhaps introducing a flag to deliver to instruct it to ignore quote rules? > On Thu, 2009-09-10 at 13:13 +0200, Andreas Calvo Gómez wrote: > >> But I need the

Re: [Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Timo Sirainen
On Thu, 2009-09-10 at 13:13 +0200, Andreas Calvo Gómez wrote: > But I need the mails that come from the local domain to bypass the quota > rule and be delivered to the users' inbox. > Is there any way to do that? Create a copy of dovecot.conf that doesn't use quota and use it with deliver -c /etc/

[Dovecot] Override quota rules based on mail's content

2009-09-10 Thread Andreas Calvo Gómez
Hi, I've a mail server with Postfix and Dovecot, using a LDAP backend to get the users. I've also configure quota rules, and I'm able to get the quota from LDAP. But I need the mails that come from the local domain to bypass the quota rule and be delivered to the users' inbox. Is there any way to d