このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 31 CentOS5 TLS1.2 created
- 2024.04.12 MySQL BIT Field created
- 04 ↷ 50_dialy:2024:04:04 から 50_dialy:2024:04:05 へページを名称変更しました。
最近の更新
文書の過去の版を表示しています。
LAN内でFreeBSD/Linux鯖を動かし、ジャーナルやアラートをインタネットメールで
投げたい事ってありますよね。
昔は第三者中継なんて気にしてなかったので深く考えないでメールが出せました。
今は25/tcpのパケットを外に出すことすら難しく、FQDNが正しくセットされていな
い計算機からのメールを受け取ってくれる奇特なsmtpサーバは皆無です。
postfixはsmtp-auth(smtp認証)のクライアントになってメールを特定の中継smtp
サーバに投げつけてくれる機能がありました。
smtp-auth(smtp認証)がサポートされているsmtpサーバにsmtp-authでアクセスす
るために
# yum -y install postfix
# vi /etc/postfix/mta_passwd mail.flat8.co.jp hogehoge:xxhoge
# vi /etc/postfix/transport * smtp:dns.flat8.co.jp:587
# postmap /etc/postfix/mta_passwd # postmap /etc/postfix/transport
# strings /etc/postfix/transport.db smtp:dns.flat8.co.jp:587
# vi /etc/postfix/main.cf smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/mta_passwd smtp_sasl_security_options = noanonymous transport_maps = hash:/etc/postfix/transport
# /usr/sbin/postfix reload
下記のエラーが出て送信できない
SASL authentication failure: No worthy mechs found SASL authentication failed; cannot authenticate to server mail.flat8.co.j
下記のライブラリをインストールしてあげると上手くい
# yum install cyrus-sasl-md5