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.