具体命令行如下:
########################Virtual Mailbox
Settings########################
virtual_mailbox_base = /var/mailbox
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:2525
virtual_gid_maps = static:2525
virtual_transport = virtual
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
##########################QUOTA Settings########################
message_size_limit = 14336000
virtual_mailbox_limit = 20971520
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 diskspace quota, please Tidy your mailbox and try
again later.
virtual_overquota_bounce = yes
网络上都有这些内容,直接复制粘贴到最后一行就行;
使用extman源码目录下docs目录中的extmail.sql和init.sql建立数据库:
做重定向:输入管理员密码:
可以进入数据库看看:
在这个目录下可以看到有很多映射 文件,拷到postfix目录下:
授予用户extmail访问extmail数据库的权限:
再连接到数据库:
让设置的内容生效:
然后再启动一次postfix: