
23rd November 2007, 21:10
|
|
Member
|
|
Join Date: Jun 2007
Posts: 50
Thanks: 5
Thanked 2 Times in 2 Posts
|
|
postfix myysql quota
postfix is not applying quota given in mysql.
I followed this guide: http://howtoforge.com/virtual-users-...-mysql-fedora8
everything works great now, except for quota!
I made sure i followed the guide and i built and packaged postfix like the guide said to patch postfix to allow quota.
well I set the default quota, and It says unlimitted quota, according to my roundcube webmail installation.
postfix reads users and domains from mysql, but not quota.
how do i fix this?
|

24th November 2007, 18:45
|
|
Member
|
|
Join Date: Jun 2007
Posts: 50
Thanks: 5
Thanked 2 Times in 2 Posts
|
|
heres the tail end of my postfix main.cnf
Quote:
myhostname = 71-13-92-138.static.bycy.mi.charter.com
mynetworks = 127.0.0.0/8
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-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_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
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
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
|
|

24th November 2007, 19:03
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Any errors in your mail log?
|

24th November 2007, 19:11
|
|
Member
|
|
Join Date: Jun 2007
Posts: 50
Thanks: 5
Thanked 2 Times in 2 Posts
|
|
where and how exactly do i get to that log?
|

24th November 2007, 19:24
|
|
Member
|
|
Join Date: Jun 2007
Posts: 50
Thanks: 5
Thanked 2 Times in 2 Posts
|
|
/var/log/maillog shows no errors.
|

25th November 2007, 13:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
I'm not sure where Roundcube gets the quota information from. But you can test if quota is working by simply sending an email that is bigger than the space that is left for the recipient account.
|

25th November 2007, 16:08
|
|
Member
|
|
Join Date: Jun 2007
Posts: 50
Thanks: 5
Thanked 2 Times in 2 Posts
|
|
i just got the quota report email that came with the howto.
DAILY QUOTA REPORT:
----------------------------------------------
| % USAGE | ACCOUNT NAME |
----------------------------------------------
--
nothing is showing. no numbers, nothing. and i have quota setup for the email.
|

26th November 2007, 18:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
You might have to modify the /usr/local/sbin/quota_notify script, as shown on http://www.howtoforge.com/virtual-us...ubuntu-7.10-p5
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|

25th July 2008, 14:30
|
|
Member
|
|
Join Date: Sep 2007
Posts: 68
Thanks: 7
Thanked 0 Times in 0 Posts
|
|
does the setup script normally ask for the mysql server when it updates a System?
|

26th July 2008, 11:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
What setup script?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 05:55.
|
|
Recent comments
1 day 5 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 14 hours ago
1 day 15 hours ago
2 days 7 hours ago
2 days 8 hours ago
2 days 12 hours ago