基本上,我遵循本教程:https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql
我的问题和第一次测试后缀有关。
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).
mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
发布于 2017-07-09 06:13:44
好吧,在这个问题上花了很多时间之后,我终于找到了解决办法:
后缀尝试读取文件:/etc/postfix/dynamicmaps.cf
和不能,因为有错误的权限。我设置了新的所有者和修改许可解决了我的问题。
chown root.root /etc/postfix/dynamicmaps.cf
chmod 640 /etc/postfix/dynamicmaps.cf
也许这个答案会对别人有帮助。
发布于 2020-05-01 03:33:32
正如在另一个答案中所说的那样,用这种方式修改/etc/postfix/dynamicmaps.cf
:
# Postfix dynamic maps configuration file.
#
#type location of .so file open function (mkmap func)
#==== ================================ ============= ============
tcp /usr/lib/postfix/dict_tcp.so dict_tcp_open
sqlite /usr/lib/postfix/dict_sqlite.so dict_sqlite_open
#mysql /usr/lib/postfix/dict_mysql.so dict_mysql_open
mysql /usr/lib/postfix/postfix-mysql.so dict_mysql_open
为我工作。
发布于 2019-07-25 00:43:18
编辑/etc/postfix/dynamicmaps.cf
向postfix-mysql.so
添加绝对路径
在我的例子中,这条路径是/usr/lib/postfix/postfix-mysql.so
https://serverfault.com/questions/861050
复制