Seita's programmer notes...
ラベル
Postfix
の投稿を表示しています。
すべての投稿を表示
ラベル
Postfix
の投稿を表示しています。
すべての投稿を表示
2014年10月4日土曜日
Postfixで587のサブミッションポートでsmtp-auth設定をした上で、25ポートでのsmtp-authをさせないように設定するには。
Postfixで587のサブミッションポートでsmtp-auth設定をした上で、25ポートでのsmtp-authをさせないように設定するには、/etc/postfix/master.cfを以下のように編集。
smtp inet n - - - - smtpd
-o smtpd_sasl_auth_enable=no <---------- ここをno
submission inet n - - - - smtpd
-o smtpd_sasl_auth_enable=yes <---------- ここをyes
参考リンク:
http://server-setting.info/debian/postfix-submission-smtp-auth.html
2014年10月3日金曜日
Postfixでsaslauthdにハマった。。。のでメモ。
UbuntuのPostfixでsmtp-auth認証を設定する時に一番ハマったのがsaslauthdの設定。結論からすると設定ファイルのミスという単純なものだったのだが、結構ハマったのでメモ。
/etc/default/saslauthdの中身
# Should saslauthd run automatically on startup? (default: no)
START=yes <-------ここをyesにするのだが、大文字のYESにしてしまうとsaslauthdは起動しない。
起動時のエラーメッセージで気付くべきだったのだが、、、、ハマってしまった。
チェックポイント:
/var/log/mail.log
/usr/sbin/testsaslauthd -u username -p password
参考リンク
https://help.ubuntu.com/community/Postfix#Configuring_saslauthd_to_Default
https://forums.ubuntulinux.jp/viewtopic.php?id=6750
Postfixのsmtp-auth設定でRelay Access Denied 554エラーが出る
UbuntuでPostfixのsmtp-auth設定でRelay Access Denied 554エラーが出た場合の対処法。
/etc/postfix/main.cf
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
ポイントはpermit_sasl_authenticatedをreject_unauth_destinationの前に追加してやること。これがないとsmtp-authでのリレーアクセスができない。
参考リンク
http://askubuntu.com/questions/390401/relay-access-denied-error-554
前の投稿
ホーム
登録:
投稿 (Atom)