歡迎您光臨本站 註冊首頁

[postfix]使用 客戶端發信失敗

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

[postfix]使用 客戶端發信失敗

提示不能通過認證,在本機telnet25埠,顯示如下:
# telnet 172.16.1.138 25
Trying 172.16.1.138...
Connected to RHL27.Server (172.16.1.138).
Escape character is '^]'.


我記得正常情況下應該類似於如下

220 cnc-mx.extmail.net ESMTP Postfix - by XX Inc.


有誰幫忙看一下?
《解決方案》

搞定了。
把源碼包的sasl-2.1.22重裝,重新做過鏈接,重啟postfix就好了。
《解決方案》

本帖最後由 lasama 於 2010-12-04 19:01 編輯

想起了我之前的操作
看到cyrus-sasl既有安裝rpm包,也有安裝源碼包,而認證使用的是源碼包,覺得那個rpm包的多餘了,就把它幹掉了。

哪知,一幹掉,outlook就發不出郵件了。。。趕緊又把那幾個rpm包裝上,還是一樣;
仔細看了下以前marion兄的安裝文檔,重新源碼編譯了一遍cyrus-sasl,鏈接也重做了,原有的鏈接刪除掉,又重新載入了下庫文件,再重啟下postfix,可愛的字元終於出現了

# telnet 172.16.1.138 25
Trying 172.16.1.138...
Connected to RHL27.Server (172.16.1.138).
Escape character is '^]'.
220 Welcome to our mail.xxx.com ESMTP,MyMTA - by abc.com.cn!
《解決方案》

以後不敢再隨便動生產系統的任何東東了 :em17: :em17:
《解決方案》

原帖由 lasama 於 2009-9-11 16:36 發表 http://bbs2.chinaunix.net/images/common/back.gif
以後不敢再隨便動生產系統的任何東東了 :em17: :em17:


呵呵
已經上線的系統,萬不得已就不要去動
平時監控下就可以鳥
《解決方案》

原帖由 lasama 於 2009-9-11 16:35 發表 http://bbs2.chinaunix.net/images/common/back.gif
想起了我之前的操作
看到cyrus-sasl既有安裝rpm包,也有安裝源碼包,而認證使用的是源碼包,覺得那個rpm包的多餘了,就把它幹掉了。

哪知,一幹掉,outlook就發不出郵件了。。。趕緊又把那幾個rpm包裝上,還 ...



我之前有過下面的經歷:

1)修改mail伺服器的時間后,dovecot當掉了,導致mail伺服器暫停了一會
2)由此使升級extmail,也出了點亂子
《解決方案》

原帖由 ruochen 於 2009-9-11 18:15 發表 http://bbs.chinaunix.net/images/common/back.gif




我之前有過下面的經歷:

1)修改mail伺服器的時間后,dovecot當掉了,導致mail伺服器暫停了一會
2)由此使升級extmail,也出了點亂子



咳,明天還要升級postifix、extmil和extman,方案倒是做了一個,希望不要出什麼亂子
《解決方案》

原帖由 lasama 於 2009-9-11 22:24 發表 http://bbs2.chinaunix.net/images/common/back.gif




咳,明天還要升級postifix、extmil和extman,方案倒是做了一個,希望不要出什麼亂子


做系統管理的,要膽大,還要心細。一般不會出問題。做任何變動之前最好備份。
《解決方案》

原帖由 lasama 於 2009-9-11 22:24 發表 http://bbs2.chinaunix.net/images/common/back.gif




咳,明天還要升級postifix、extmil和extman,方案倒是做了一個,希望不要出什麼亂子


postfix有功能性的需求么?
《解決方案》

原帖由 ruochen 於 2009-9-12 09:23 發表 http://bbs2.chinaunix.net/images/common/back.gif



postfix有功能性的需求么?


沒有功能性需求,只是把版本從2.6.0升級到2.6.5


問題果然來了,覆蓋安裝postfix后,smtp又認證不了

#make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/sasl2/include/sasl -I/usr/local/BerkeleyDB/include  -DUSE_TLS -I/usr/local/ssl/include/openssl ' 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/local/sasl2/lib -lsasl2 -L/usr/local/BerkeleyDB/lib -L/usr/local/ssl/lib -lssl -lcrypto'
#make
#make install


/bin/sh postfix-install

    Warning: if you use this script to install Postfix locally,
    this script will replace existing sendmail or Postfix programs.
    Make backups if you want to be able to recover.

    Before installing files, this script prompts you for some definitions.
    Most definitions will be remembered, so you have to specify them
    only once. All definitions should have a reasonable default value.

Please specify the prefix for installed file names. Specify this ONLY
if you are building ready-to-install packages for distribution to other
machines.
install_root: [/]

Please specify a directory for scratch files while installing Postfix. You
must have write permission in this directory.
tempdir: /tmp

Please specify the final destination directory for installed Postfix
configuration files.
config_directory:

Please specify the final destination directory for installed Postfix
administrative commands. This directory should be in the command search
path of adminstrative users.
command_directory:

Please specify the final destination directory for installed Postfix
daemon programs. This directory should not be in the command search path
of any users.
daemon_directory:

Please specify the final destination directory for Postfix-writable
data files such as caches or random numbers. This directory should not
be shared with non-Postfix software.
data_directory:

Please specify the destination directory for the Postfix HTML
files. Specify "no" if you do not want to install these files.
html_directory:

Please specify the owner of the Postfix queue. Specify an account with
numerical user ID and group ID values that are not used by any other
accounts on the system.
mail_owner:

Please specify the final destination pathname for the installed Postfix
mailq command. This is the Sendmail-compatible mail queue listing command.
mailq_path:

Please specify the destination directory for the Postfix on-line manual
pages. You can no longer specify "no" here.
manpage_directory:

Please specify the final destination pathname for the installed Postfix
newaliases command. This is the Sendmail-compatible command to build
alias databases for the Postfix local delivery agent.
newaliases_path:

Please specify the final destination directory for Postfix queues.
queue_directory:

Please specify the destination directory for the Postfix README
files. Specify "no" if you do not want to install these files.
readme_directory:

Please specify the final destination pathname for the installed Postfix
sendmail command. This is the Sendmail-compatible mail posting interface.
sendmail_path:

Please specify the group for mail submission and for queue management
commands. Specify a group name with a numerical group ID that is
not shared with other accounts, not even with the Postfix mail_owner
account. You can no longer specify "no" here.
setgid_group:
Updating /usr/libexec/postfix/anvil...
Updating /usr/libexec/postfix/bounce...
Updating /usr/libexec/postfix/cleanup...
Updating /usr/libexec/postfix/discard...
Updating /usr/libexec/postfix/error...
Updating /usr/libexec/postfix/flush...
Updating /usr/libexec/postfix/local...
Skipping /usr/libexec/postfix/main.cf...
Skipping /usr/libexec/postfix/master.cf...
Updating /usr/libexec/postfix/master...
Updating /usr/libexec/postfix/oqmgr...
Updating /usr/libexec/postfix/pickup...
Updating /usr/libexec/postfix/pipe...
Skipping /usr/libexec/postfix/post-install...
Skipping /usr/libexec/postfix/postfix-files...
Skipping /usr/libexec/postfix/postfix-script...
Skipping /usr/libexec/postfix/postfix-wrapper...
Updating /usr/libexec/postfix/postmulti-script...
Updating /usr/libexec/postfix/proxymap...
Updating /usr/libexec/postfix/qmgr...
Updating /usr/libexec/postfix/qmqpd...
Updating /usr/libexec/postfix/scache...
Updating /usr/libexec/postfix/showq...
Updating /usr/libexec/postfix/smtp...
Updating /usr/libexec/postfix/smtpd...
Updating /usr/libexec/postfix/spawn...
Updating /usr/libexec/postfix/tlsmgr...
Updating /usr/libexec/postfix/trivial-rewrite...
Updating /usr/libexec/postfix/verify...
Updating /usr/libexec/postfix/virtual...
Updating /usr/libexec/postfix/nqmgr...
Updating /usr/libexec/postfix/lmtp...
Updating /usr/sbin/postalias...
Updating /usr/sbin/postcat...
Updating /usr/sbin/postconf...
Updating /usr/sbin/postfix...
Updating /usr/sbin/postkick...
Updating /usr/sbin/postlock...
Updating /usr/sbin/postlog...
Updating /usr/sbin/postmap...
Updating /usr/sbin/postmulti...
Updating /usr/sbin/postsuper...
Updating /usr/sbin/postdrop...
Updating /usr/sbin/postqueue...
Updating /usr/sbin/sendmail...
Skipping /usr/bin/newaliases...
Skipping /usr/bin/mailq...
Skipping /etc/postfix/LICENSE...
Skipping /etc/postfix/TLS_LICENSE...
Skipping /etc/postfix/access...
Skipping /etc/postfix/aliases...
Skipping /etc/postfix/bounce.cf.default...
Skipping /etc/postfix/canonical...
Skipping /etc/postfix/generic...
Skipping /etc/postfix/header_checks...
Updating /etc/postfix/main.cf.default...
Skipping /etc/postfix/main.cf...
Skipping /etc/postfix/makedefs.out...
Skipping /etc/postfix/master.cf...
Skipping /etc/postfix/relocated...
Skipping /etc/postfix/transport...
Skipping /etc/postfix/virtual...
Skipping /usr/local/man/man1/mailq.1...
Skipping /usr/local/man/man1/newaliases.1...
Skipping /usr/local/man/man1/postalias.1...
Skipping /usr/local/man/man1/postcat.1...
Skipping /usr/local/man/man1/postconf.1...
Skipping /usr/local/man/man1/postdrop.1...
Skipping /usr/local/man/man1/postfix.1...
Skipping /usr/local/man/man1/postkick.1...
Skipping /usr/local/man/man1/postlock.1...
Skipping /usr/local/man/man1/postlog.1...
Skipping /usr/local/man/man1/postmap.1...
Skipping /usr/local/man/man1/postmulti.1...
Skipping /usr/local/man/man1/postqueue.1...
Skipping /usr/local/man/man1/postsuper.1...
Skipping /usr/local/man/man1/sendmail.1...
Skipping /usr/local/man/man5/access.5...
Skipping /usr/local/man/man5/aliases.5...
Skipping /usr/local/man/man5/body_checks.5...
Skipping /usr/local/man/man5/bounce.5...
Skipping /usr/local/man/man5/canonical.5...
Skipping /usr/local/man/man5/cidr_table.5...
Skipping /usr/local/man/man5/generic.5...
Skipping /usr/local/man/man5/header_checks.5...
Skipping /usr/local/man/man5/ldap_table.5...
Skipping /usr/local/man/man5/master.5...
Skipping /usr/local/man/man5/mysql_table.5...
Skipping /usr/local/man/man5/nisplus_table.5...
Skipping /usr/local/man/man5/pcre_table.5...
Skipping /usr/local/man/man5/pgsql_table.5...
Updating /usr/local/man/man5/postconf.5...
Skipping /usr/local/man/man5/postfix-wrapper.5...
Skipping /usr/local/man/man5/regexp_table.5...
Skipping /usr/local/man/man5/relocated.5...
Skipping /usr/local/man/man5/tcp_table.5...
Skipping /usr/local/man/man5/transport.5...
Skipping /usr/local/man/man5/virtual.5...
Skipping /usr/local/man/man8/bounce.8...
Updating /usr/local/man/man8/cleanup.8...
Skipping /usr/local/man/man8/anvil.8...
Skipping /usr/local/man/man8/defer.8...
Skipping /usr/local/man/man8/discard.8...
Skipping /usr/local/man/man8/error.8...
Skipping /usr/local/man/man8/flush.8...
Skipping /usr/local/man/man8/lmtp.8...
Updating /usr/local/man/man8/local.8...
Skipping /usr/local/man/man8/master.8...
Skipping /usr/local/man/man8/oqmgr.8...
Skipping /usr/local/man/man8/pickup.8...
Updating /usr/local/man/man8/pipe.8...
Skipping /usr/local/man/man8/proxymap.8...
Skipping /usr/local/man/man8/qmgr.8...
Skipping /usr/local/man/man8/qmqpd.8...
Skipping /usr/local/man/man8/scache.8...
Skipping /usr/local/man/man8/showq.8...
Updating /usr/local/man/man8/smtp.8...
Updating /usr/local/man/man8/smtpd.8...
Skipping /usr/local/man/man8/spawn.8...
Skipping /usr/local/man/man8/tlsmgr.8...
Skipping /usr/local/man/man8/trace.8...
Skipping /usr/local/man/man8/trivial-rewrite.8...
Skipping /usr/local/man/man8/verify.8...
Skipping /usr/local/man/man8/virtual.8...

請ruochen兄幫忙看看

# telnet 172.16.1.138 25
Trying 172.16.1.138...
Connected to RHL27.Server (172.16.1.138).
Escape character is '^]'.

[火星人 ] [postfix]使用 客戶端發信失敗已經有583次圍觀

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