【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?

先日より、PostfixとDovecotを使用してメール環境整えようと作業を進めています。


そこで、認証にはSMTP-Auth設定 (sasldb2認証)を使用しているのですが、ユーザとパスワード設定したのち、
sasldblistusers2
を実行しましたが、しっかりとユーザを作成できているようでした。

/etc/sasldb2の所有グループもpostfixにしており、パーミッションも740に変更しました。

telnetで接続確認(telnet localhost 110)をし、上記で作成したユーザ名とパスワードを入れても認証に失敗します。
[root@centos ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user panasonic
+OK
pass *********
-ERR Authentication failed.
Connection closed by foreign host.

ログメッセージ
Apr 3 11:42:53 centos52 dovecot: pop3-login: Aborted login: user=<cisco@centos.alhambr.mydns.jp>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Apr 3 11:43:11 centos52 postfix/smtpd[1930]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Apr 3 11:43:11 centos52 postfix/smtpd[1930]: fatal: no SASL authentication mechanisms
Apr 3 11:43:12 centos52 postfix/master[1887]: warning: process /usr/libexec/postfix/smtpd pid 1930 exit status 1
Apr 3 11:43:12 centos52 postfix/master[1887]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Apr 3 11:51:24 centos52 postfix/smtpd[1971]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms


何が原因なのでしょうか。アドバイスお願い致します。

-環境-
postfix-2.3
dovecot-1.0
Centos5.4

A 回答 (2件)

>何が原因なのでしょうか。

アドバイスお願い致します。

dovecotの認証がsasldb2を見に行かないから。

もしかしたらPAMでsasldb2を見に行くようにできるのかも知れませんが…
# その場合は/etc/pam.d/dovecotを編集ですかね。
「PAM SASL」で検索すると、SMTP-Authの件しか見つからないのね……。

postfixのSMTP-Authで、Dovecot-SASLを使用するように変更できます。
# smtpd_sasl_type = dovecotで。

http://www.isokiti.tv/~isobetti/sabakan/index.ph …
とか参考になる…かと。
# 仮想環境でちょっと実験中…
    • good
    • 0

saslでドメイン付きで普通に設定すると


ユーザ名は
panasonic
ではなく
panasonic@example.co.jp
の形になると思います。
sasldblistusers2の結果もそうなってないですか?
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!


おすすめ情報