基本上我按照这个教程: https : //www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql
我的问题与第一次testingPostfix陈述。
postconf -m
postconf: warning: /etc/postfix/dynamicmaps.cf: file is owned or writable by non-root users -- skipping this file btree cidr environ fail hash inline internal memcache nis pipemap proxy randmap regexp socketmap static tcp texthash unionmap unix
这看起来像我忘了安装postfix-mysql,但是当我尝试再次安装我得到:
postfix-mysql is already the newest version (3.1.0-3).
postmap -q example.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
postmap: warning: /etc/postfix/dynamicmaps.cf: file is owned or writable by non-root users -- skipping this file postmap: fatal: unsupported dictionary type: mysql
所有文件.cf看起来像在教程中。 对于mysql- *configuration文件,我设置所有者和组“后缀”。
任何想法?
编辑:
在我的情况下,我已经安装了postfix-mysql。
好吧,花了很多时间在这个问题上,我终于find解决办法:
Postfix尝试读取文件: /etc/postfix/dynamicmaps.cf而不能,因为有错误的权限。 我设置新的所有者和修改权限解决我的问题。
chown root.root /etc/postfix/dynamicmaps.cf chmod 640 /etc/postfix/dynamicmaps.cf
也许这个答案会帮助别人。