Postfix无法连接MySQL服务器的问题求助
各位开源社区的朋友好!我用Postfix、Dovecot和Postfix Admin搭建了一套完整的邮件系统,因为采用虚拟用户架构,所以额外安装了postfix-mysql和dovecot-mysql组件。
现在遇到了一个棘手的问题:Postfix服务无法连接到MySQL服务器,系统日志里抛出了以下报错信息:
May 19 19:52:18 mail postfix/trivial-rewrite[1600937]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
May 19 19:52:18 mail postfix/trivial-rewrite[1600937]: warning: virtual_alias_domains: mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf: table lookup problem
May 19 19:52:18 mail postfix/trivial-rewrite[1600937]: warning: virtual_alias_domains lookup failure
May 19 19:52:18 mail postfix/trivial-rewrite[1600937]: warning: virtual_alias_domains: mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf: table lookup problem
May 19 19:52:18 mail postfix/trivial-rewrite[1600937]: warning: virtual_alias_domains lookup failure
我的/etc/postfix/sql/目录下的相关配置文件内容如下(后续会补充完整配置代码):
备注:内容来源于stack exchange,提问作者Sahil Pahuja

