【WordPress】ワードプレスからメール送信テストの警告対応メモ【MailServer】

はじめに

ワードプレスからメールが届いていない事に気づき、プラグイン追加し送信テストした際にエラーが出たので、対応メモです。

導入したプラグイン

定番そうな WP Mail SMTP by WPForms を追加しました。

設定手順は紹介サイトが多いので割愛します。
諸々設定し、自サーバーのMailserverから送信テスト。

警告が出たので対応していきます。

なりすまし防止の設定のようです。こちら様で勉強させていただいました。うーん難しい。
当方サーバーは DKIM は設定済みです。
具体的な設定方法がよくわからなかったので、試行錯誤します。

SPF
Action Needed: It doesn’t look like the SPF record required by your SMTP server has been added to your domain. Please contact your SMTP server provider for details on how to find the SPF record, and how to add this record to your domain’s DNS.

SPF の設定が悪いようで ダイナミックDNS に SPF を設定すれば良さそうです。

当方は バリュードメインを使っているので、DNS設定に下記を追加
ドメインは nekoteam.com です。

txt @ v=spf1 a:nekoteam.com ~all

SPF の警告は消えました。

DMARC
Action Recommended: It doesn’t look like DMARC has been set up on your domain (nekoteam.com). We recommend using the DMARC protocol because it helps protect your domain from unauthorized use. Please check out our step-by-step guide for details on how to add this record to your domain’s DNS.

こちら 様を参考にさせていただきました。
バリュードメインのDNS設定に下記を追加
受信アドレスは webmaster@nekoteam.com

txt _dmarc.nekoteam.com v=DMARC1; p=none; rua=mailto:webmaster@nekoteam.com

最後に

再度テストメール送信してみます。

無事警告がなくなり、送信成功のようです。

これは覚えるのが大変ですね。

全国のサーバー管理者ご苦労さまです。