Re: quota unenforced in Postfix

2011-01-19 Thread Ralf Hildebrandt
* J4 :
> Hi there,
> 
> I set-up Postfix to enforce quotas using this in the main.cf:

This is a patched, unsupported postfix.
Whose patch is it?

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



Re: quota unenforced in Postfix

2011-01-19 Thread J4
On 01/19/2011 02:04 PM, Ralf Hildebrandt wrote:
> * J4 :
>> Hi there,
>>
>> I set-up Postfix to enforce quotas using this in the main.cf:
> This is a patched, unsupported postfix.
> Whose patch is it?
>
Hi Ralf,

This explains everything.  I read in a guide that it would work, but
reading your reply realise that the guide refers to a patched version
that the guide did not note.  Oh well. Explains everything.  I shall
drop the idea because I don't know what the patch is.  /deep sigh.


Re: quota unenforced in Postfix

2011-01-19 Thread J4
On 01/19/2011 02:20 PM, J4 wrote:
> On 01/19/2011 02:04 PM, Ralf Hildebrandt wrote:
>> * J4 :
>>> Hi there,
>>>
>>> I set-up Postfix to enforce quotas using this in the main.cf:
>> This is a patched, unsupported postfix.
>> Whose patch is it?
>>
> Hi Ralf,
>
> This explains everything.  I read in a guide that it would work, but
> reading your reply realise that the guide refers to a patched version
> that the guide did not note.  Oh well. Explains everything.  I shall
> drop the idea because I don't know what the patch is.  /deep sigh.

Had a look and it likely the Postfix VDA patch from here:
http://vda.sourceforge.net/
I shall look at this. 
Cheers all.



Re: quota unenforced in Postfix

2011-01-19 Thread Ralf Hildebrandt
* J4 :
> On 01/19/2011 02:04 PM, Ralf Hildebrandt wrote:
> > * J4 :
> >> Hi there,
> >>
> >> I set-up Postfix to enforce quotas using this in the main.cf:
> > This is a patched, unsupported postfix.
> > Whose patch is it?
> >
> Hi Ralf,
> 
> This explains everything.  I read in a guide that it would work, but
> reading your reply realise that the guide refers to a patched version
> that the guide did not note.  Oh well. Explains everything.  I shall
> drop the idea because I don't know what the patch is.  /deep sigh.

Damn. What you COULD do is use dovecot-2.0 instead (whcih has quotas)

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



Re: quota unenforced in Postfix

2011-01-19 Thread J4
On 01/19/2011 02:27 PM, Ralf Hildebrandt wrote:
> * J4 :
>> On 01/19/2011 02:04 PM, Ralf Hildebrandt wrote:
>>> * J4 :
 Hi there,

 I set-up Postfix to enforce quotas using this in the main.cf:
>>> This is a patched, unsupported postfix.
>>> Whose patch is it?
>>>
>> Hi Ralf,
>>
>> This explains everything.  I read in a guide that it would work, but
>> reading your reply realise that the guide refers to a patched version
>> that the guide did not note.  Oh well. Explains everything.  I shall
>> drop the idea because I don't know what the patch is.  /deep sigh.
> Damn. What you COULD do is use dovecot-2.0 instead (whcih has quotas)
>
Hi Ralf,

I would love to use Dovecot, but I have spend three weeks,
consisting of about 3 man hours daily, to try and get quotas working in
mysql and dovecot LDA.  The result is that Dovecot deliver ignores the
quotas (stored in mysql).  Sadly, I have exhausted any good will I had
from the Dovecot mailing list for at least until they have forgotten my
email address :-)  There are only so many stupid questions I can ask. 
Also, I have Dovecot 1.2 (latest) and won't upgrade to version 2 until
its in the Debian repos. At least I can keep this stable.  I can live
with a Postfix patch for the timebeing.  I shall move to Dovecot 2 when
it is in the Debian squeeze repositories.

Therefore, I'll look into the postfix VDA patch - At least it would
reject it before it even got as far as Dovecot, which would reduce load.




Re: quota unenforced in Postfix

2011-01-19 Thread Ralf Hildebrandt
* J4 :

> I would love to use Dovecot, but I have spend three weeks,
> consisting of about 3 man hours daily, to try and get quotas working in
> mysql and dovecot LDA.  The result is that Dovecot deliver ignores the
> quotas (stored in mysql).  Sadly, I have exhausted any good will I had
> from the Dovecot mailing list for at least until they have forgotten my
> email address :-)  There are only so many stupid questions I can ask.

I must admin I'm using maildir quotas, not mysql/ldap :|

> Also, I have Dovecot 1.2 (latest) and won't upgrade to version 2 until
> its in the Debian repos. At least I can keep this stable.  I can live
> with a Postfix patch for the timebeing.  I shall move to Dovecot 2 when
> it is in the Debian squeeze repositories.

It won't be (as far as I know)

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



Re: quota unenforced in Postfix

2011-01-19 Thread Robert Schetterer
Am 19.01.2011 14:34, schrieb J4:
> On 01/19/2011 02:27 PM, Ralf Hildebrandt wrote:
>> * J4 :
>>> On 01/19/2011 02:04 PM, Ralf Hildebrandt wrote:
 * J4 :
> Hi there,
>
> I set-up Postfix to enforce quotas using this in the main.cf:
 This is a patched, unsupported postfix.
 Whose patch is it?

>>> Hi Ralf,
>>>
>>> This explains everything.  I read in a guide that it would work, but
>>> reading your reply realise that the guide refers to a patched version
>>> that the guide did not note.  Oh well. Explains everything.  I shall
>>> drop the idea because I don't know what the patch is.  /deep sigh.
>> Damn. What you COULD do is use dovecot-2.0 instead (whcih has quotas)
>>
> Hi Ralf,
> 
> I would love to use Dovecot, but I have spend three weeks,
> consisting of about 3 man hours daily, to try and get quotas working in
> mysql and dovecot LDA.  The result is that Dovecot deliver ignores the
> quotas (stored in mysql).  Sadly, I have exhausted any good will I had
> from the Dovecot mailing list for at least until they have forgotten my
> email address :-)  There are only so many stupid questions I can ask. 
> Also, I have Dovecot 1.2 (latest) and won't upgrade to version 2 until
> its in the Debian repos. At least I can keep this stable.  I can live
> with a Postfix patch for the timebeing.  I shall move to Dovecot 2 when
> it is in the Debian squeeze repositories.
> 
> Therefore, I'll look into the postfix VDA patch - At least it would
> reject it before it even got as far as Dovecot, which would reduce load.
> 
> 

i have it up and running with dovecot no need for VDA
dovecot 2.09 has a debian auto build repo here
http://xi.rename-it.nl/debian/pool/testing-auto/dovecot-2.0/

if problems with vda ask on their list
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: quota unenforced in Postfix

2011-01-23 Thread Egoitz Aurrekoetxea Aurre
You could take a look too to postfix quota reject project, 
http://postfixquotareject.ramattack.net/. It's a postfix policy code which 
enforces quotas in maildir and cyrus mailboxes. It's another option and works 
with either a normal mail server with postfix installed or with an isp 
structure in which you could have mail scanning machines (running postfix) in 
front of mailbox machines (running any mta)... postfix quota reject can query 
this mailbox machines from front mail scanning machines and reject mail for 
overquota mailboxes or with little modifications... return a 4xx if you prefer, 
but always avoiding clogging queues or backscattering.


Bye!!
El 19/01/2011, a las 17:02, Robert Schetterer escribió:

> Am 19.01.2011 14:34, schrieb J4:
>> On 01/19/2011 02:27 PM, Ralf Hildebrandt wrote:
>>> * J4 :
 On 01/19/2011 02:04 PM, Ralf Hildebrandt wrote:
> * J4 :
>> Hi there,
>> 
>>I set-up Postfix to enforce quotas using this in the main.cf:
> This is a patched, unsupported postfix.
> Whose patch is it?
> 
 Hi Ralf,
 
 This explains everything.  I read in a guide that it would work, but
 reading your reply realise that the guide refers to a patched version
 that the guide did not note.  Oh well. Explains everything.  I shall
 drop the idea because I don't know what the patch is.  /deep sigh.
>>> Damn. What you COULD do is use dovecot-2.0 instead (whcih has quotas)
>>> 
>> Hi Ralf,
>> 
>>I would love to use Dovecot, but I have spend three weeks,
>> consisting of about 3 man hours daily, to try and get quotas working in
>> mysql and dovecot LDA.  The result is that Dovecot deliver ignores the
>> quotas (stored in mysql).  Sadly, I have exhausted any good will I had
>> from the Dovecot mailing list for at least until they have forgotten my
>> email address :-)  There are only so many stupid questions I can ask. 
>> Also, I have Dovecot 1.2 (latest) and won't upgrade to version 2 until
>> its in the Debian repos. At least I can keep this stable.  I can live
>> with a Postfix patch for the timebeing.  I shall move to Dovecot 2 when
>> it is in the Debian squeeze repositories.
>> 
>> Therefore, I'll look into the postfix VDA patch - At least it would
>> reject it before it even got as far as Dovecot, which would reduce load.
>> 
>> 
> 
> i have it up and running with dovecot no need for VDA
> dovecot 2.09 has a debian auto build repo here
> http://xi.rename-it.nl/debian/pool/testing-auto/dovecot-2.0/
> 
> if problems with vda ask on their list
> -- 
> Best Regards
> 
> MfG Robert Schetterer
> 
> Germany/Munich/Bavaria



Re: quota unenforced in Postfix

2011-01-23 Thread mouss
Le 19/01/2011 13:56, J4 a écrit :
> Hi there,
> 
> I set-up Postfix to enforce quotas using this in the main.cf:
> 
> postconf -n | grep virtual
> virtual_alias_maps =
> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
> virtual_mailbox_domains =
> proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
> virtual_mailbox_maps = mysql:/etc/postfix/sql/mysql-virtual-mailbox-maps.cf
> virtual_transport = dovecot-spamass
> 
> Strangly, the entries in the main.cf contain more details but these are
> omitted in the o/p of postconf -n for some reason?! :
> virtual_mailbox_domains =
> proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
> virtual_mailbox_maps = mysql:/etc/postfix/sql/mysql-virtual-mailbox-maps.cf
> virtual_alias_maps =
> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
> virtual_transport = dovecot-spamass
> virtual_create_maildirsize = yes
> virtual_mailbox_extended = yes
> virtual_mailbox_limit_maps =
> mysql:/etc/postfix/sql/mysql_virtual_mailbox_limit_maps.cf
> virtual_mailbox_limit_override = yes
> virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn
> his diskspace quota, please try again later.
> virtual_overquota_bounce = yes
> 

this is not postfix.

$ postconf mail_version
mail_version = 2.9-20110120

so this is recent. now:

$ postconf virtual_mailbox_limit_maps
postconf: warning: virtual_mailbox_limit_maps: unknown parameter
$ postconf virtual_maildir_limit_message
postconf: warning: virtual_maildir_limit_message: unknown parameter
$ postconf virtual_overquota_bounce
postconf: warning: virtual_overquota_bounce: unknown parameter


you can always check whether a parameter is part of postfix by trying
http://www.postfix.org/postconf.5.html#parameter


it is unfortunate to say it again: people who modify software (by
providing patches or by provinding modifications to packages) cause more
problems than anything else. they are never here to help people who are
lost using their pseudo-solutions.

if you want to play with quotas, either
-use you delivery agent (example: dovecot)
- do it with a policy service. Egoitz wrote one:
http://postfixquotareject.ramattack.net/.

I didn't try either. I have a different view which I wrote about a long
long time ago here and won't repeat it.


Re: quota unenforced in Postfix

2011-01-23 Thread Egoitz Aurrekoetxea Aurre

El 23/01/2011, a las 22:02, mouss escribió:

> Le 19/01/2011 13:56, J4 a écrit :
>> Hi there,
>> 
>>I set-up Postfix to enforce quotas using this in the main.cf:
>> 
>> postconf -n | grep virtual
>> virtual_alias_maps =
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
>> virtual_mailbox_domains =
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
>> virtual_mailbox_maps = mysql:/etc/postfix/sql/mysql-virtual-mailbox-maps.cf
>> virtual_transport = dovecot-spamass
>> 
>> Strangly, the entries in the main.cf contain more details but these are
>> omitted in the o/p of postconf -n for some reason?! :
>> virtual_mailbox_domains =
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
>> virtual_mailbox_maps = mysql:/etc/postfix/sql/mysql-virtual-mailbox-maps.cf
>> virtual_alias_maps =
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
>> proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
>> virtual_transport = dovecot-spamass
>> virtual_create_maildirsize = yes
>> virtual_mailbox_extended = yes
>> virtual_mailbox_limit_maps =
>> mysql:/etc/postfix/sql/mysql_virtual_mailbox_limit_maps.cf
>> virtual_mailbox_limit_override = yes
>> virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn
>> his diskspace quota, please try again later.
>> virtual_overquota_bounce = yes
>> 
> 
> this is not postfix.
> 
> $ postconf mail_version
> mail_version = 2.9-20110120
> 
> so this is recent. now:
> 
> $ postconf virtual_mailbox_limit_maps
> postconf: warning: virtual_mailbox_limit_maps: unknown parameter
> $ postconf virtual_maildir_limit_message
> postconf: warning: virtual_maildir_limit_message: unknown parameter
> $ postconf virtual_overquota_bounce
> postconf: warning: virtual_overquota_bounce: unknown parameter
> 
> 
> you can always check whether a parameter is part of postfix by trying
> http://www.postfix.org/postconf.5.html#parameter
> 
> 
> it is unfortunate to say it again: people who modify software (by
> providing patches or by provinding modifications to packages) cause more
> problems than anything else. they are never here to help people who are
> lost using their pseudo-solutions.
> 
> if you want to play with quotas, either
> -use you delivery agent (example: dovecot)

the problem here is that either you clog you're queue with temporary failures 
of the mda or you cause backscatter if mda returns permanent failure...

> - do it with a policy service. Egoitz wrote one:
> http://postfixquotareject.ramattack.net/.


I personally advise using it if you want to enforce quotas... it's pretty light 
and fast running...

> I didn't try either. I have a different view which I wrote about a long
> long time ago here and won't repeat it.