なかのにっき

最新版はこちら。 いろいろ危ない世の中になってきたので、static に生成した html での公開に切り替えました。ご了承ください。


hns - 日記自動生成システム - Version 2.19.9

先月 2023年03月 来月
日 月 火 水 木 金 土
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 31

2023年03月10日(金)

#1 PostfixにSTARTTLSの外部SMTP送信サーバ(Office365)設定を追加する

これがやりたかったことだ、というわけで、

main.cf に追加:
transport_maps = hash:/etc/postfix/transport
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
transport:
surf.ml.seikei.ac.jp    :
*       smtp:smtp.office365.com:587
relay_password: (もちろん 600 にしておく)
smtp.office365.com:587	ユーザ名:パスワード
として各々 postmap して postfix に reload させたら、なんとか無事動いた模様。 いっぺん transport の local delivery のエントリを書き忘れてバウンスさせちゃったのは内緒(すみません)。

#2 丸数字 コピペ用

この日記は EUC で書いているので (^_^;、実体はなし。丸囲み数字のコピペ先。

以上、1 日分です。
Powered by hns-2.19.9, HyperNikkiSystem Project

中野武雄 (NAKANO, Takeo) <nakano@st.seikei.ac.jp> Since 1999-10-07

中野のホームページへ