dovecot 忘れがちなこと

user vhost, group vhost を作る

root@sakura:/var/spool/mail/vhosts# less /etc/passwd | grep vhost
vhost:x:20000:20000::/home/vhost:/bin/sh
root@sakura:/var/spool/mail/vhosts# less /etc/group| grep vhost
vhost:x:20000:


何故なら

root@S01:/etc/dovecot# cat dovecot-mysql.conf
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=XXXXXXXX
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u' AND active = '1'
user_query = SELECT concat('/var/spool/mail/vhosts/', maildir) as home, 20000 as uid,20000 as gid FROM mailbox WHERE username='%u' AND active='1'

This entry was posted in Linux. Bookmark the permalink. Trackback URL: http://homura.ch2.cc/linux/dovecot%e3%80%80%e5%bf%98%e3%82%8c%e3%81%8c%e3%81%a1%e3%81%aa%e3%81%93%e3%81%a8/trackback/

Comments are closed.