Симптомы.
При попытке принять письмо для пользователя в существующем домене в логи пишет следующее:
Код: Выделить всё
Sep 1 11:02:02 gate postfix/virtual[30421]: fatal: open /etc/postfix/mysql_virtual_mailbox_limit_maps.cf: No such file or directory
Sep 1 11:02:03 gate postfix/master[30413]: warning: process /usr/libexec/postfix/virtual pid 30421 exit status 1
Sep 1 11:02:03 gate postfix/master[30413]: warning: /usr/libexec/postfix/virtual: bad command startup -- throttling
Суть проблемы.
Постфик в целях повышения безопасности был запущен в режиме chroot и процесс virtual в недоумении пытался найти не существующий для него путь /etc/postfix/.....
Решение:
Необходимые конфиги были скопированы мной в /var/spool/postfix/etc/postfix и после этого все запустилось.
Побочные эффекты:
1.
Код: Выделить всё
Sep 1 11:04:47 gate postfix/postfix-script: warning: /var/spool/postfix/etc/postfix/mysql_relay_domains_maps.cf
and /etc/postfix/mysql_relay_domains_maps.cf differ
Sep 1 11:04:47 gate postfix/postfix-script: warning: /var/spool/postfix/etc/postfix/mysql_virtual_alias_maps.cf
and /etc/postfix/mysql_virtual_alias_maps.cf differ
Sep 1 11:04:47 gate postfix/postfix-script: warning: /var/spool/postfix/etc/postfix/mysql_virtual_domains_maps.cf and /etc/postfix/mysql_virtual_domains_maps.cf differ
Sep 1 11:04:47 gate postfix/postfix-script: warning: /var/spool/postfix/etc/postfix/mysql_virtual_mailbox_limit_maps.cf and /etc/postfix/mysql_virtual_mailbox_limit_maps.cf differ
Sep 1 11:04:47 gate postfix/postfix-script: warning: /var/spool/postfix/etc/postfix/mysql_virtual_mailbox_maps.cf and /etc/postfix/mysql_virtual_mailbox_maps.cf differ
2.
Код: Выделить всё
Sep 1 11:02:49 gate postfix/virtual[30499]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Удачи вам в настройке! Желаю поменьше наступать на грабли!
(с) Антон Борисов aka TOSHIK (http://www.shaonline.ru/)
11:30 1 сентября 2005 год.