Postfix quota

De BlaxWiki
Révision datée du 10 mars 2009 à 09:37 par 212.43.232.68 (discussion) (Page créée avec « <pre> Les quotas fonctionnent bien avec postfix-vda :) Le backport trouve sur apt-get.org deb http://www.kairo.eti.br/debian/sarge/ postfix-vda/ une fois postfix-vda install... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche
Les quotas fonctionnent bien avec postfix-vda :)
Le backport trouve sur apt-get.org
deb http://www.kairo.eti.br/debian/sarge/ postfix-vda/

une fois postfix-vda installe il suffit d'ajouter ca au main.cf:

virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/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

et /etc/postfix/mysql_virtual_mailbox_limit_maps.cf ressemble a ca:

user = postfix
password = motdepasse
hosts = localhost
dbname = postfix
table = mailbox
select_field = quota
where_field = username

Il suffit de mettre quota a YES dans config.inc.php (ouais, j'ai trop bien hacke postfixadmin :)