忍者ブログ
開発中に遭遇した落とし穴や忘れそうな事柄を書いた個人メモ
カレンダー
03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
フリーエリア
最新コメント
[02/03 NONAME]
最新トラックバック
プロフィール
HN:
No Name Ninja
性別:
非公開
バーコード
ブログ内検索
アクセス解析
28
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

postfixで送受信できない
/var/log/maillogを確認すると
以下のエラーが定期的に発生している

May 22 15:19:56 dti-vps-srv30 postfix/smtpd[56469]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 22 15:19:56 dti-vps-srv30 postfix/smtpd[56469]: fatal: no SASL authentication mechanisms
May 22 15:19:57 dti-vps-srv30 postfix/master[19834]: warning: process /usr/libexec/postfix/smtpd pid 56469 exit status 1
May 22 15:19:57 dti-vps-srv30 postfix/master[19834]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
May 22 15:21:32 dti-vps-srv30 postfix/smtpd[18314]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 22 15:21:32 dti-vps-srv30 postfix/smtpd[18314]: fatal: no SASL authentication mechanisms
May 22 15:21:33 dti-vps-srv30 postfix/master[19834]: warning: process /usr/libexec/postfix/smtpd pid 18314 exit status 1
May 22 15:21:33 dti-vps-srv30 postfix/master[19834]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
May 22 15:27:56 dti-vps-srv30 postfix/smtpd[11579]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 22 15:27:56 dti-vps-srv30 postfix/smtpd[11579]: fatal: no SASL authentication mechanisms
May 22 15:27:57 dti-vps-srv30 postfix/master[19834]: warning: process /usr/libexec/postfix/smtpd pid 11579 exit status 1
May 22 15:27:57 dti-vps-srv30 postfix/master[19834]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
 

どうも、一部のプロセスで例外処理が発生して、初期化自体がうまくいっていないもよう
上記のエラーをぐぐると
saslの一部のモジュールがインストールされていないため、発生しているもよう
これらのモジュールは、SMTP-Auth(SMTPのパスワード対策)で使用している
モジュールのようで

現在のインストール状況を確認

[root@dti-vps-srv30 brain]# yum list | grep sasl*
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
cyrus-sasl.i386                            2.1.22-5.el5_4.3            installed
cyrus-sasl-lib.i386                        2.1.22-5.el5_4.3            installed
claws-mail-plugins-spamassassin.i386       3.0.2-1.el5.rf              rpmforge
cyrus-sasl-devel.i386                      2.1.22-5.el5_4.3            base
cyrus-sasl-gssapi.i386                     2.1.22-5.el5_4.3            base
cyrus-sasl-ldap.i386                       2.1.22-5.el5_4.3            base
cyrus-sasl-md5.i386                        2.1.22-5.el5_4.3            base
cyrus-sasl-ntlm.i386                       2.1.22-5.el5_4.3            base
cyrus-sasl-plain.i386                      2.1.22-5.el5_4.3            base
cyrus-sasl-sql.i386                        2.1.22-5.el5_4.3            base
dvdisaster.i386                            0.70.4-1.el5.rf             rpmforge
gnu-crypto-sasl-jdk1.4.i386                2.1.0-2jpp.1                base
perl-Mail-SpamAssassin-Plugin-OpenPGP.noarch
qca-sasl.i386                              1.0-1.el5.rf                rpmforge
spamassassin.i386                          3.2.5-1.el5                 base

他の文献を参考に
cyrus-sasl-plain
cyrus-sasl-md5
をインストールすることに
# yum -y install cyrus-sasl-plain
# yum -y install cyrus-sasl-md5

インストール後、OSを再起動してから
/var/log/maillogのエラーログは発生しなくなり
正常に外部からのメールを受信できるようになる。

拍手

PR


CentOSで標準実行されているsendmailをpostfixへ変更

posifixをインストール
インストール手順は省略

# /usr/sbin/alternatives --config mta

There are 2 programs which provide 'mta'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/sbin/sendmail.sendmail
   2           /usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number: 2

このあと、sendmailの処理を止めて、自動起動をoffにする
# /etc/rc.d/init.d/sendmail stop
# chkconfig sendmail off

逆に、postfixを起動および自動起動設定
# /etc/rc.d/init.d/postfix start
# chkconfig postfix on

また、psでpostfixを確認しようとしても確認できない
CMDのなかで、[master]がpostfixに相当すると思われる
 

拍手

Copyright c 技術メモ All Rights Reserved
Powered by ニンジャブログ  Designed by ピンキー・ローン・ピッグ
忍者ブログ / [PR]