1.courier-authlib中的authmysqlrc配置
##NAME: MYSQL_LOGIN_FIELD:0
#
# The login id, default is id. Basically the query is:
#
# SELECT MYSQL_UID_FIELD, MYSQL_GID_FIELD, WHERE id='loginid'
#
MYSQL_LOGIN_FIELD concat(user_name, concat("@", user_email_domain))
##NAME: MYSQL_NAME_FIELD:0
#
# The user's name (optional)
MYSQL_NAME_FIELD concat(user_name, concat("@", user_email_domain))
2.postfix中master.cf中的配置
maildrop unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=maildrop -w 90 -V 10 -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop}
3.postfix中main.cf中的配置
virtual_transport = maildrop
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
receive_override_options = no_address_mappings
4.maildrop中maildroprc的配置
logfile "/var/log/maildrop.log"
VHOST="$HOME/$1/$2"
MAILDIR="$VHOME/Maildir"
CUSTOM_FILTER="$VHOME/.mailfilter"
我与网络上其他配置不同的地方是我的user_name字段值记录用户名,而不记录用户的电子邮件,所以按照网络上的配置方法,无法实现虚拟邮件域,所以需要修改这些,赶紧记录一下,免的忘了,其他的有时间再整理出