Topic: 关于 virtual_mailbox_limit 问题
关于 virtual_mailbox_limit 问题
好久没来啰><
一来就是要提问,真是不好意思
我目前在 CentOS 5.5 上安装了 iRedmail 0.6.0
看是一切正常
但我在 postfix main.cf 内加上
message_size_limit = 20971520
virtual_mailbox_limit = 20971520
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql/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
virtual_trash_count=yes
virtual_trash_name=.Trash
而 /etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf 的内容如下:
user = vmail
password = 7ds6f68sj3294y293yush9f7432lk4
hosts = 127.0.0.1
port = 3306
dbname = vmail
query = SELECT quota FROM mailbox WHERE username='%s' AND active='1'
而我 mailbox 中我设定了一个帐号 quota 为 1024000 (1MB)
而此人的信箱已经使用了 0.8MB
我在测试记送一封 1MB 的信件时,一样可以正常发送,不会阻隔
整个就是似乎没有起作用
不知道那哪里出了错...
Thanks!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.