7月 02 2009
Postfix の SMTP-AUTH 設定でハマる
Postfix の SMTP-AUTH 設定でハマる
FreeBSD7.2R のサーバに ports で Postfix と Cyrus-SASL 入れて SMTP AUTH の設定を入れたのだけど、(main.cf)
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous,noplaintext
こんなメッセージを出して動かない。
Jun 30 03:43:55 caro postfix/smtpd[1171]: warning: SASL: Connect to smtpd failed: No such file or directory
Jun 30 03:43:55 caro postfix/smtpd[1171]: fatal: no SASL authentication mechanisms
Jun 30 03:43:56 caro postfix/master[1100]: warning: process /usr/local/libexec/postfix/smtpd pid 1171 exit status 1
Jun 30 03:43:56 caro postfix/master[1100]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
基本的に sasldb に認証データが入ってる auxprop 方式なんだけど、どうもいろいろぐぐっているうちになんか saslauthd 見に行こうとしてるような雰囲気。ちなみにここで Connect to smtpdという部分、これは /var/spool/postfix/smtpd にある unix domain socket を探してる。
/usr/local/lib/sasl2/smtpd.conf が必要なんじゃね? というのもあり書いたけれども、
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: CRAM-MD5 DIGEST-MD5
うまくいかず。結局問題を解決したのは次の行。(main.cf)
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
しかし無指定でもこうなってるはずという話をどこかで読んだけれどもなあ……。むむむ。
