YANO's digital garage

Copyright ©YANO All rights reserved. https://www.bravotouring.com/~yano/

Last-modified: 2024-04-17 (水)


[一語一絵/IT系]

haswellからの手紙 / 2024-02-12 (月)

ひかり電話が開通したので、着信通知をメールで飛ばそう大作戦が大きく一歩前進。

haswell改めIvyからメールを飛ばそうとOP25Bの設定を行ったものの、

haswell postfix/cleanup[3497985]: 5FAC95C1575: message-id=<20240212005637.5FAC95C1575@haswell.bravotouring.com>
haswell postfix/qmgr[1283599]: 5FAC95C1575: from=<>, size=2711, nrcpt=1 (queue active)
haswell postfix/smtp[3497987]: Anonymous TLS connection established to mail.bravotouring.com[49.AAA.BBB.CCC]:587: TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)
haswell postfix/smtp[3497987]: 5FAC95C1575: to=<yano@bravotouring.com>, relay=mail.bravotouring.com[49.AAA.BBB.CCC]:587, delay=0.16, delays=0.01/0/0.13/0.02, dsn=5.7.1, status=bounced (host mail.bravotouring.com[49.AAA.BBB.CCC] said: 554 5.7.1 <yano@bravotouring.com>: Recipient address rejected: Access denied (in reply to RCPT TO command))
haswell postfix/qmgr[1283599]: 5FAC95C1575: removed
となってサーバにrejectedされちゃう件の解決に本腰を入れなくては。

メールサーバ側では

vps postfix/submission/smtpd[24358]: connect from au_v4[222.XXX.YYY.ZZZ]
vps postfix/submission/smtpd[24358]: NOQUEUE: reject: RCPT from au_v4[222.XXX.YYY.ZZZ]: 554 5.7.1 <yano@bravotouring.com>: Recipient address rejected: Access denied; from=<> to=<yano@bravotouring.com> proto=ESMTP helo=<haswell.bravotouring.com>
vps postfix/submission/smtpd[24358]: disconnect from au_v4[222.XXX.YYY.ZZZ] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=6/8
とsubmissionが受け付けているので、[External]OP25Bはパスしている。 Anonymousとなっていることから[External]SASL認証できてない証拠なんだろうなーと当たりをつけて、/etc/postfix/main.cfの"relayhost"と/etc/postfix/smtp_passを確認したのだが、それぞれ問題はなさそうだ。

と思ったのだが、 /etc/postfix/main.cf

relayhost = mail.bravotouring.com:587
に対して、/etc/postfix/smtp_passの方はIPアドレス指定で書いてたので
mail.bravotouring.com:587 {メールアカウント}:{パスワード}
と、両方ともドメイン指定で合わせたら
vps postfix/submission/smtpd[33394]: connect from au_v4[222.XXX.YYY.ZZZ]
vps postfix/submission/smtpd[33394]: C1532221874: client=au_v4[222.XXX.YYY.ZZZ], sasl_method=PLAIN, sasl_username=yano
vps postfix/submission/smtpd[33394]: disconnect from au_v4[222.XXX.YYY.ZZZ] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
と、解決した。

ちなみに、

haswell postfix/smtp[3497987]: Anonymous TLS connection established to mail.bravotouring.com[49.AAA.BBB.CCC]:587: TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)
Anonymousは変わらず。GT110bだとUntrustedなので、特に気にしなくても良さそうだ。

【参照】
●Postfix http://www.postfix-jp.info/
Postfix SASL How To
Postfix設定パラメータ
●Wikipedia https://ja.wikipedia.org/wiki/
Outbound Port 25 Blocking
Simple Authentication and Security Layer