Mình cài mail server postfix với virtual domain và dùng postfixadmin để quản trị. Hiện mình có thể gửi mail giữa các user được nhưng việc set quota cho các user thì không được. Nhờ các bạn giúp.
mình đã thực hiện như sau:
trong file /etc/postfix/main.cf mình thêm:
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 diskpace quota, please again later.
mình tạo thêm file /etc/postfix/mysql_virtual_mailbox_limit_maps.cf với nội dung sau:
hosts = localhost
user = mail
password = 123456
dbname = postfix
query = SELECT quota FROM mailbox WHERE username='%s' AND active = '1'
Nhờ các bạn giúp.
Uploaded with
ImageShack.us
Uploaded with
ImageShack.us