postfix+mysql+dovecot,沒有mailsize文件,不能配額限制

火星人 @ 2014-03-04 , reply:0


postfix+mysql+dovecot,沒有mailsize文件,不能配額限制

MySQL,Postfix ,PostfixAdmin,SquirrelMail,Dovecot
使用maildir模式
不怎麼怎麼回事就是就是不會限制郵箱大小,
比如,郵箱限制在20M,每封郵件發10M,發了三封還是能發,也沒提示,限和沒限一樣
用戶文件夾下也沒有maildirsize文件,是不是postfix 和dovecot都不會創建mailsize文件

下面是postfix的配置
#postfix start  (reload stop)
#id postfix 查找postfix的用戶名ID
#postalias /etc/postfix/aliases(編譯群發用戶別名資料庫文件,)
#usermod -G root postfix 將postfix加入到root的組
#/usr/sbin/postfix start 啟動
#/etc/init.d/postfix start啟動postfix服務
#chkconfig postfix on 設置postfix開機自啟動。
#vim /var/log/maillog故障查看系統郵件日誌很重要
myhostname = mail.he.com
mydomain = he.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname
#mydestination = $mydomain, $myhostname
#mydestination = $mydomain, $myhostname
mynetworks = 127.0.0.0/8
#relay_domains = he.com 轉發域,不能自己發自己
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
#=====================Vritual Mailbox settings=========================#
virtual_mailbox_base = /mailbox/
#virtual_mailbox_base = /mailbox/he.com
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_uid_maps = static:501
virtual_gid_maps = static:501
virtual_transport = virtual
#a由於maildrop不支持一次接收多個收件人,因此必須在main.cf里增加如下參數
#maildrop_destination_recipient_limit = 1
#maildrop_destination_concurrency_limit = 1
#====================QUOTA========================#
#message_size_limit = 1097152單個郵件容量大小
message_size_limit = 10097152
#mailbox_size_limit = 20971520系統用戶郵箱限制
#mailbox_size_limit = 20971520
virtual_mailbox_limit = 20971520
#d以下三行在$maildir目錄中生成 maildirsize文件
virtual_create_maildirsize = yes
#virtual_mailbox_extended = yes
virtual_maildir_extended = yes
virtual_mailbox_linit_inbox = yes
#y以下設置每個郵箱的限額查詢
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
#virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf每個用戶的郵箱大小
virtual_mailbox_limit_override = yes
#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
#====================SASL========================#
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtp_sasl_password_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
smtpd_banner=$myhostname ESMTP "Version not Available"
#smtpd_banner = Welcome to localhost.com mail system! //smtp的歡迎信息
#===
《解決方案》

:dizzy:怎麼沒人指教下
《解決方案》

原來vda的版本對應錯了,現在創建是可以了,還不知道配額限制功能和更新maildirsize文件功能有沒有成功:lol:




[火星人 via ] postfix+mysql+dovecot,沒有mailsize文件,不能配額限制已經有199次圍觀

http://www.coctec.com/docs/service/show-post-15171.html