View Single Post
  #1  
Old 25th February 2009, 14:26
krzysiek krzysiek is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Postfix] Quota doesn't work

hi,
I configured Postfix + quota according this tutorial: http://www.howtoforge.com/virtual-us...ail-ubuntu8.04
everything works fine except quota.

this is main.cf file:
Code:
smtpd_tls_cert_file=/etc/postfix/smtpd.cert
smtpd_tls_key_file=/etc/postfix/smtpd.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_client_message_rate_limit=10

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = kzajac.altkom.pl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128; 192.168.254.0/24
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps =proxy:ldap:/etc/postfix/ldap-virtual_forwardings.cf
virtual_mailbox_domains = kzajac.altkom.pl
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
max_use = 5


#transport_maps = proxy:mysql:/etc/postfix/mysql/mysql-virtual_transports.cf

#virtual_create_maildirsize = yes
virtual_mailbox_limit = 51200000
virtual_mailbox_extended = yes
virtual_mailbox_limit_override = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql-virtual_mailbox_limit_maps.cf
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
in_flow_delay = 1s
and here is what I receive after postconf -n command:
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
html_directory = /usr/share/doc/postfix/html
in_flow_delay = 1s
inet_interfaces = all
max_use = 5
mydestination = localhost.localdomain, localhost
myhostname = kzajac.altkom.pl
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128; 192.168.254.0/24
myorigin = /etc/mailname
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost = 
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_message_rate_limit = 10
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = 
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-virtual_forwardings.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = kzajac.altkom.pl
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-virtual_mailboxes.cf
virtual_uid_maps = static:5000
Any ideas what I've done wrong?
Reply With Quote
Sponsored Links