后缀错误致命:表查找

-5 mysql ubuntu postfix

这里是mail.log

server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld
/mysqld.sock' (2)
    Mar 23 23:07:19 ubuntu postfix/trivial-rewrite[6417]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
    Mar 23 23:07:20 ubuntu postfix/smtpd[6401]: warning: problem talking to service rewrite: Success
    Mar 23 23:07:20 ubuntu postfix/cleanup[6296]: warning: problem talking to service rewrite: Connection reset by peer
    Mar 23 23:07:20 ubuntu postfix/master[6291]: warning: process /usr/lib/postfix/trivial-rewrite pid 6417 exit status 1
    Mar 23 23:07:20 ubuntu postfix/master[6291]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Run Code Online (Sandbox Code Playgroud)

netstat -l|grep mysql

tcp        0      0 localhost:mysql         *:*                     LISTEN     
unix  2      [ ACC ]     STREAM     LISTENING     10671    /var/run/mysqld/mysqld.sock
Run Code Online (Sandbox Code Playgroud)

我可以通过这个连接

mysql -u postfix -h 127.0.0.1 -p postfix
Run Code Online (Sandbox Code Playgroud)

mai*_*ilq 5

启动本地 MySQL 服务器。