====== Dovecot: Relative home directory paths not supported ======
В логе видим соответствующую запись при подключение пользователя к IMAP серверу:
dovecot: Error: Relative home directory paths not supported (user user@domen.ru): user@domen.ru/
Для хранения списка пользователей использую SQL бэкенд:
driver = mysql
connect = host=localhost dbname=**** user=**** password=*****
default_pass_scheme = MD5
#default_pass_scheme = PLAIN
password_query = SELECT `username` as `user`, `password` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'
user_query = SELECT `maildir` AS `home`, 26 AS `uid`, 26 AS `gid`, concat('*:bytes=',`quota`) AS `quota_rule` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'
Решение:
user_query = SELECT concat('/var/mail/exim/',`maildir`) AS `home`, 26 AS `uid`, 26 AS `gid`, concat('*:bytes=',`quota`) AS `quota_rule` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'
где '/var/mail/exim/' - путь, где хранятся почтовые папки пользователей. В моем случае в dovecot.conf:
mail_location = maildir:/var/mail/exim/%d/%n
TAG: {{tag>dovecot FreeBSD}}
~~DISCUSSION:closed~~