歡迎您光臨本站 註冊首頁

新手 學習 Postfix 遇到問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

新手 學習 Postfix 遇到問題

大家好,我最近在學習安裝配置在RH8上安裝 Postfix + Dovecot + MySQL + Postfixadmin + squirrelmail 的mail servier,遇到了使用中的問題。
安裝系統是默認安裝了 Apache,MySQL,之後我先安裝了 Postfixadmin,配置成功,可以添加管理員,域等,與MySQL鏈接沒問題,之後我安裝Postfix,使用的tar包,只用了make,make install,這樣也沒有錯誤提示,刪除了sendmail,然後安裝Dovecot,squirrelmail。
現在是不可以正常收發mail的。

請問現在我該怎麼修改配置?

有maillog是:

Dec 22 21:52:17 ttt postfix/cleanup: fatal: unsupported dictionary type: mysql
Dec 22 21:52:17 ttt postfix/trivial-rewrite: fatal: unsupported dictionary type: mysql
Dec 22 21:52:18 ttt postfix/master: warning: process /usr/libexec/postfix/cleanup pid 24745 exit status 1
Dec 22 21:52:18 ttt postfix/master: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling
Dec 22 21:52:18 ttt postfix/master: warning: process /usr/libexec/postfix/trivial-rewrite pid 24746 exit status 1
Dec 22 21:52:18 ttt postfix/master: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Dec 22 21:52:22 ttt postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 22 21:52:22 ttt postfix/smtpd: fatal: unsupported dictionary type: mysql
Dec 22 21:52:23 ttt postfix/master: warning: process /usr/libexec/postfix/smtpd pid 24747 exit status 1
Dec 22 21:52:23 ttt postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Dec 22 21:53:18 ttt postfix/trivial-rewrite: fatal: unsupported dictionary type: mysql
Dec 22 21:53:18 ttt postfix/cleanup: fatal: unsupported dictionary type: mysql
Dec 22 21:53:19 ttt postfix/master: warning: process /usr/libexec/postfix/trivial-rewrite pid 24750 exit status 1
Dec 22 21:53:19 ttt postfix/master: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Dec 22 21:53:19 ttt postfix/master: warning: process /usr/libexec/postfix/cleanup pid 24751 exit status 1
Dec 22 21:53:19 ttt postfix/master: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling
Dec 22 21:53:23 ttt postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 22 21:53:23 ttt postfix/smtpd: fatal: unsupported dictionary type: mysql
Dec 22 21:53:24 ttt postfix/master: warning: process /usr/libexec/postfix/smtpd pid 24752 exit status 1
Dec 22 21:53:24 ttt postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Dec 22 21:54:19 ttt postfix/cleanup: fatal: unsupported dictionary type: mysql
Dec 22 21:54:19 ttt postfix/trivial-rewrite: fatal: unsupported dictionary type: mysql
Dec 22 21:54:20 ttt postfix/master: warning: process /usr/libexec/postfix/cleanup pid 24756 exit status 1
Dec 22 21:54:20 ttt postfix/master: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling
Dec 22 21:54:20 ttt postfix/master: warning: process /usr/libexec/postfix/trivial-rewrite pid 24757 exit status 1
Dec 22 21:54:20 ttt postfix/master: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Dec 22 21:54:24 ttt postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 22 21:54:24 ttt postfix/smtpd: fatal: unsupported dictionary type: mysql
Dec 22 21:54:25 ttt postfix/master: warning: process /usr/libexec/postfix/smtpd pid 24758 exit status 1
Dec 22 21:54:25 ttt postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Dec 22 21:55:20 ttt postfix/trivial-rewrite: fatal: unsupported dictionary type: mysql
Dec 22 21:55:20 ttt postfix/cleanup: fatal: unsupported dictionary type: mysql
Dec 22 21:55:21 ttt postfix/master: warning: process /usr/libexec/postfix/trivial-rewrite pid 24762 exit status 1
Dec 22 21:55:21 ttt postfix/master: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
《解決方案》

Postfix check命令的結果是:

# postfix check
postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ
postfix/postfix-script: warning: Replace one by a symbolic link to the other

postconf -m 的結果,還是不支持MySQL的。
# postconf -m
btree
cidr
environ
hash
nis
pcre
proxy
regexp
static
unix

[ 本帖最後由 MyLaputa 於 2008-12-23 11:19 編輯 ]
《解決方案》

回復 #1 MyLaputa 的帖子

1、需要將默認的mta設置為postfix
2、模塊編譯錯誤
《解決方案》

謝謝版主!
請問版主,麻煩你能詳細講一下步驟嗎?我剛開始學習這個,對Postfix的配置幾乎一無所知哩。。。
謝謝!
《解決方案》

回復 #2 MyLaputa 的帖子

編譯安裝 postfix 的時候沒有將mysql編譯安裝上去。
《解決方案》

原帖由 changchun_li 於 2008-12-25 10:51 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
編譯安裝 postfix 的時候沒有將mysql編譯安裝上去。
這個可以看./configure --help看看

[火星人 ] 新手 學習 Postfix 遇到問題已經有989次圍觀

http://coctec.com/docs/service/show-post-25304.html