รูปแบบการตั้งค่า vda นะครับ ไปทำที่ไฟล์ main.cf
ควร backup mail.cf ไว้ก่อนนะครับผม ^^
* These are only the options available in our VDA patch. Look into the Postfix documentation to see how to setup Postfix
* to use virtual transport. If you use other transport than virtual, this patch is not for you.
# Basic map of the maildir/mailbox quotas
# Default: not set
virtual_mailbox_limit_maps = hash:/etc/postfix/vquota
# Limit only inbox or whole maildir?
# Default: no
virtual_mailbox_limit_inbox = no
# If set to 'no' and if the delivered message size is smaller than
# message_size_limit (see Postfix doc for details), the quota will
# be set to virtual_mailbox_limit (see Postfix doc for details)
# So, this enables limits smaller than maximum message size.
# Default: yes
virtual_mailbox_limit_override = yes
# Do we use Courier maildir++ quotas?
# Default: no
virtual_maildir_extended = yes
# Will the message be bounced with 5xx code when user over quota? Otherwise
# the temporary failure 4xx will raise and message will be queued
# Default: no
virtual_overquota_bounce = yes
# When set, the per recipient limit message is search in the map, otherwise
# the message in 'virtual_maildir_limit_message' is used
# Default: not set
virtual_maildir_limit_message_maps = hash:/etc/postfix/limit_messages
# This message is used when the user is over quota and if the
# 'virtual_maildir_limit_message_maps' is not set.
# This is the per server message, unlike the
# 'virtual_maildir_limit_message' - that's the per recipient message.
# If both are set, the 'virtual_maildir_limit_message_maps' will precede
# and this option will not be used.
# Default: "Sorry, the user's maildir has overdrawn his diskspace quota, please try again later."
virtual_maildir_limit_message = "User over quota, try again"
# Suffix added to the maildir/mailbox path, used motly with Courier, because
# Courier reads the messages from the [path]/Maildir/ directory
# Default: not set
virtual_maildir_suffix = "Maildir/"
# Will we count the trash folder (see the 'virtual_trash_name' option)
# to the sum of the quota?
# Default: no
virtual_trash_count = yes
# The name of of the trash folder (important for 'virtual_trash_count' option)
# Default: ".Trash"
virtual_trash_name = ".Trash"
# Do we use virtual maildir filter rules?
# Default: no
virtual_maildir_filter = no
# The per user maildir filter map
# Default: not set
virtual_maildir_filter_maps = hash:/etc/postfix/vfilter
-------------------------------------------------------------------------
# This is example of hash file of virtual_mailbox_maps directive
#
# This is for maibox users
user1@domain.com.br com/d/do/domain.com.br/user1
user2@domain.com.br com/d/do/domain.com.br/user2
# This is for Maidir users
user1@domain.net.br net/d/do/domain.net.br/user1/
user2@domain.net.br net/d/do/domain.net.br/user2/
-------------------------------------------------------------------------
-------------------------------------------------------------------------
# This is example of hash file of virtual_mailbox_limit_maps directive
# Every quota in this file is in bytes
#
user1@domain.com.br 2048000
user2@domain.com.br 2048000
user1@domain.net.br 5192000
# this user has no limit
user2@domain.net.br 0