Linux

為什麼 Postfix proxymap 程序不斷失敗?

  • June 21, 2013

我最近走上了一條黑暗的道路,通過 shell 訪問(CentOS 5)管理我自己的 VPS。我安裝了 LAMP 堆棧、FTP 等,然後設置了郵件伺服器,我使用 postfix、dovecot 和 squirrel 郵件作為客戶端。在網上瀏覽了不同的教程後,我成功地失敗了。這是郵件日誌的範例:

Jul 20 01:18:16 www postfix/smtpd[1287]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Jul 20 01:18:16 www postfix/master[1125]: warning: process /usr/libexec/postfix/proxymap pid 7431 exit status 1
Jul 20 01:18:16 www postfix/master[1125]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Jul 20 01:19:16 www postfix/proxymap[7449]: fatal: unsupported dictionary type: mysql
Jul 20 01:19:17 www postfix/cleanup[1141]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jul 20 01:19:17 www postfix/cleanup[1141]: warning: private/proxymap socket: service dict_proxy_open: Success
Jul 20 01:19:17 www postfix/smtpd[1287]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jul 20 01:19:17 www postfix/smtpd[1287]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Jul 20 01:19:17 www postfix/master[1125]: warning: process /usr/libexec/postfix/proxymap pid 7449 exit status 1
Jul 20 01:19:17 www postfix/master[1125]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling

我無法發送或接收郵件。請幫忙,我願意根據需要粘貼任何資訊。

根據這個錯誤資訊fatal: unsupported dictionary type: mysql,你的 postfix 在沒有 MySQL 支持的情況下編譯。請參閱Postfix MySQL 操作指南

只是添加..判斷mysql是否編譯的簡單方法

# ldd /usr/sbin/postfix  | grep sql
libmysqlclient.so.15 => /usr/lib64/mysql/libmysqlclient.so.15 (0x00002b7db008d000)

引用自:https://serverfault.com/questions/292066