メールが届かないのでMTUを調整した

2022年1月2日。6000円のお年玉クーポンに惹かれてApple store オンラインでApple watch SE を買った。 しかし待てどもクーポンのEメールが届かない。そういえば受注メールも来てなかった。

ログを調べる。

Jan  6 10:58:29 localhost postfix/smtpd[266092]: connect from rn2-txn-msbadger07103.apple.com[17.111.110.*]
Jan  6 10:58:29 localhost postfix/smtpd[266092]: Anonymous TLS connection established from rn2-txn-msbadger07103.apple.com[17.111.110.*]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jan  6 10:58:30 localhost postfix/smtpd[266092]: 3315F37760: client=rn2-txn-msbadger07103.apple.com[17.111.110.*]
Jan  6 11:03:30 localhost postfix/smtpd[266092]: timeout after DATA (0 bytes) from rn2-txn-msbadger07103.apple.com[17.111.110.*]
Jan  6 11:03:30 localhost postfix/smtpd[266092]: disconnect from rn2-txn-msbadger07103.apple.com[17.111.110.*] ehlo=2 starttls=1 mail=1 rcpt=1 data=0/1 commands=5/6

timeout とある。0 bytes... "timeout after DATA" でググる。

特定のドメインからメールが届かない timeout after DATA from

メールサーバー(Postfix, Ubuntu20.04 LXDコンテナ)のMTU を変えて試す。

# MTU
ifconfig | grep -i mtu
ifconfig the0 mtu 1452

ちゃんと受信できた。恒久的に設定反映させるならnetplan

(ただしVyOS でMTU, MSS は設定済み。TLS が関係しているのか調査中...)

原因判明

VyOS の設定をミスった。interfaces eth0 (eth1, eth2,...)にはMTUを設定せず、interfaces pppoe pppoe0 にMTUを。同じくMSSをPolicy を通じて設定。