postfix-users  

Re: [postfix-users] postfix tidak create maildirsize (solved)

Hari Hendaryanto
Sun, 10 Jan 2010 17:10:19 -0800



Sebelum coba, saya man 5 postconf, kok aneh tidak item
virtual_maildir_extended begitupula virtual_mailbox_extended,
bagaimanapun juga saya paksa edit main.cf dan reload postfix dan voila
maildirsize bisa ter-create.

Apakah item atau property ini hidden feature postfix ?

virtual_maildir_extended adalah patch vda quota http://vda.sourceforge.net/

contoh potongan patch vda

+#### Postfix main.cf
+
+# I use only virtual as local delivery
+mailbox_transport = virtual
+
+# Base directory where the mailboxes are located
+virtual_mailbox_base = /var/virtualmail
+
+# Virtual users maps
+virtual_mailbox_maps = hash:/etc/postfix/vmailbox
+transport_maps = hash:/etc/postfix/vtransport
+
+# Minimal permitted UID value (for virtual_uid_maps)
+virtual_minimum_uid = 1000
+
+# GIDs and UIDs to run as
+# Can also be stored in hash, mysql, ...
+virtual_uid_maps = static:4000
+virtual_gid_maps = static:4000
+
+# A maximum size limit for a mailbox
+virtual_mailbox_limit = 100000000
+
+# Quota values maps
+virtual_mailbox_limit_maps = hash:/etc/postfix/vquota
+
+# Limit only the INBOX
+# (useful for when you have IMAP users)
+virtual_mailbox_limit_inbox = no
+
+# Enable limits smaller than maximum message size
+virtual_mailbox_limit_override = yes
+
+# Enable Maildir++ extensions for faster maildir quota calculation
+# (maildirsize file and ",S=<size>" filename extension)
+# Needs Maildir++ compatible IMAP servers, like Courier-IMAP
+virtual_maildir_extended = yes
+
+# Always bounce the message when quota reached
+virtual_overquota_bounce = yes
+
+# Custom message to send when bouncing
+#virtual_maildir_limit_message = "Sorry, maximum quota reached!"
+
+# Custom message maps for the bounces
+#virtual_maildir_limit_message_maps = hash:/etc/postfix/vmsg
+
+# Also count the Trash folder when calculating quotas?
+virtual_trash_count = yes
+
+# The name of the Trash folder
+# (if it doesn't need to be calculated)
+#virtual_trash_name = ".Trash"
+
+# Enable the Maildirfilter feature
+virtual_maildir_filter = yes
+
+# Maildirfilter maps
+virtual_maildir_filter_maps = hash:/etc/postfix/vfilter

wassalam