Amazon lightsailからメールが送信できなくなったときの対応方法

投稿者: | 2020年2月18日

現象

2020年2月のいつからか、lightsailのサーバーからメールが送信できなくなりました。下のようなメールログが残っていました。

Feb 16 03:53:34 *** postfix/qmgr[14246]: B34F4380ACC7: from=<***@***>, size=253, n
rcpt=1 (queue active)
Feb 16 03:54:05 *** postfix/smtp[19585]: connect to ***[***.***.***.***]:25: Connecti
on timed out
Feb 16 03:54:05 *** postfix/smtp[19585]: B34F4380ACC7: to=<***@***>, relay=none, delay=
59289, delays=59259/0.01/30/0, dsn=4.4.1, status=deferred (connect to ***[***.***.***.***]:25: Connection timed out)

原因

調べてみたところ同様の現象は他のAWSユーザーでも発生している模様。どうもAmazonによるメールブロッキングのようです。

フォームから申請

いろいろ調査していましたら、下記のページにたどり着きまして、逆引きの申請を行えばいいとのこと。

https://lightsail.aws.amazon.com/ls/docs/ja_jp/articles/amazon-lightsail-configuring-reverse-dns

IPアドレスの正引きは自分のDNSサーバーに設定済みでしたので、早速下記のフォームから申請してみました。

https://console.aws.amazon.com/support/contacts?#/rdns-limits

入力内容のサンプルは次のようになります。

  • Eメールアドレス:連絡用のEメールアドレスを入力します。
  • ユースケースの説明:どのようにそのサーバーを利用しているかを入力します。
  • Elastic IPアドレス:対象のlightsailのサーバーのIPアドレスを入力します。
  • 逆引きDNSレコード:IPアドレスに対応するFQDNを入力します。

Elastic IP情報はどうもオプションのようですが、逆引きの申請をしておいたほうが、スパム扱いされる可能性も低くなるので、やっておいたほうがよいでしょう。

メールのやり取り

このフォーム送信のあとにAWSのサポートから次のような英文の確認メールが届きました。2営業日以内に返信するとのことです。

Hello,

Thank you for contacting Amazon Web Services. We have received your request and will begin reviewing soon.

Your request tracking ID is: ***

Requests are evaluated in the order in which they are received. AWS is committed to being responsive and keeping you informed of our progress. You should expect to receive a non-automated response to your initial contact within 48 business hours, however please be aware that evaluation may take longer depending on the complexity of the request.

If you do not receive a response regarding the status of your request within 48 business hours of this acknowledgment, you may request an update by replying directly to this email, retaining the same subject line.

If you wish to modify or update this request, please do so by replying directly to this message. Please be aware that changes may require an additional 48 business hours to review.

The details of your request are included at the bottom of this message.

Regards,
Amazon Web Services

その後1日くらいしたら、次のメールが届きました。どんなケースでメールを送信するかの問い合わせです。

Hello,

Thank you for submitting your request to have the email sending limit removed from your account and/or for an rDNS update.

We will require a clear/detailed use-case for sending mail from EC2

Please reply directly to this message with the above information. Once this has been received, we can process your original request.

As a reference, please make sure to review the AWS Acceptable Use Policy (https://aws.amazon.com/aup/) for more information regarding prohibited use of AWS services.

Please note that violations of the AWS Acceptable Use Policy may result in mitigation of identified activity or content.

Regards,
Amazon Web Services

そこでシステム開発に使っていてほとんどメールは送信していないことを伝えるため、次のように返信しました。つたない英語です。

Hello,
 
Thank you for your reply.
 

I use lightsail for system development, not production.

I send just a few mails for test.

 

Sorry for not being good at english.
 
Regards,
***, ***

その後わずか30分ほどで、下記の対応完了メールが届きました。

Hello,

We have configured the reverse DNS record(s) you requested! Your request was mapped for the following:

– ***. *** . *** . *** <–> ***

Please note that propagation of this update to DNSBL services that Amazon works with may take up to a week.

Email sending limitations have also been removed for any resources for the region your EIP is located in.

Please let us know if you have any questions.

Regards,
Amazon Web Services

以上で完了です。
意外とレスポンスがよく、Amazonのサポートには好感を持ちました。
もし同じような状況になりましたら、参考にしてみてください。


カテゴリー: aws