2007������07·���07������
dovecot_mysql
# chkconfig --list dovecot
# chkconfig dovecot on
# chkconfig --list dovecot
# vi /etc/dovecot.conf
default_mail_env = maildir:/home/vuser/%u
auth_userdb = mysql /etc/dovecot-mysql.conf
auth_passdb = mysql /etc/dovecot-mysql.conf
# vi /etc/dovecot-mysql.conf
²¼µ������µ½���
db_host = localhost
db_port = 3306
db_unix_socket = /var/lib/mysql/mysql.sock
db = postfix
db_user = postfix
db_passwd = postfix
db_client_flags = 0
default_pass_scheme = PLAIN
user_query = SELECT concat('/home/vuser', maildir) as home, 10000 as uid, 10000 as gid FROM mailbox WHERE username = '%u' AND active = '1'
password_query = SELECT password FROM mailbox WHERE username = '%u' AND active = '1'