WordPressから送信されるメールのFromアドレス

レンタルサーバー上で作成したWordPressからのメールについて調べました。
また、SPFの設定のためにDNSレコードを追加しました。

WordPressからのメールの差出人

ファイアバードのレンタルサーバーでWordPressを簡単インストールしました。WordPressのサイトから、コメントの承認通知やユーザー追加によって送信されるメールの差出人のアドレスのデフォルトは次のようになっています。

送信者名:WordPress
送信メールアドレス:wordpress@サイトURL

mailfrom1

このアドレスはダミーなので送信しても届きません。宛先不明エラーで戻ってきます。

リターンパスのアドレス

受信メールの「メッセージのソースを表示」で確認するとリターンパスのアドレスは、「firebirdのID+サーバー名」になっていました。

SPFはpassになっていました。Gmailの受信サーバーが、「このメールのリターンパスはsv1.firebird.neowl.jpになっているけど、確かにそのサーバーから送られてきたメールだよ。保証するよ。」っていう意味だと思います。たぶん。

mailfrom2

このReturn-Pathのアドレスもダミーなので、送信しても宛先不明エラーで戻ってきます。

フックによって差出人をカスタマイズ

ワードプレスから送信されるメールのFrom(差出人)を次のようにカスタマイズが可能です。

こんにちは。スタッフのユースケです。 今日はWordPressのメールに関するお話しです。 WordPressで新規ユーザー登録をしたときなどに送られてくるメール、 デフォルトのままだと差出人が「WordPress」となっていてどこからのメ

レンタルサーバー上でメールアカウントを作成してみた

WordPressとは別の件ですが、レンタルサーバーで作成したメールアカウントで送信するときのReturn-Pathがどうなるのか気になったので、メールアドレスを作成してみました。

ネットオウルのサーバー管理ツールを開きます。

mailfrom3

メールアドレス設定から対象のドメインを選択します。

mailfrom4

「メールアドレス追加」からアドレス情報を入力して「確認画面」をクリックします。

mailfrom5

内容を確認して「確定する」をクリックします。

mailfrom6

WebMailにログインしてテストメールをgmailに送信しました。

mailfrom7

受信したメールのソースはreturn-pathが作成したアドレスになっていましたが、SPFがneutralです。

mailfrom8

SPFレコードを追加する

DNSにSPFレコードを追加しました。

ネットオウルの「スタードメイン管理」から対象のドメインのドメイン管理ツールをクリックします。

mailfrom9

ここで追加しようとしたら、スタードメインのネームサーバーではなくて、ファイアバードのネームサーバーが設定されていました。ファイアーバードのネームサーバー(DNS)の設定画面では、レコードを編集するところがありませんでした。よって、スタードメインのDNSに切り替えます。さきに、スタードメインのDNSレコードを編集後、ネームサーバーをスタードメインに変更する必要があります。

mailfrom10

現在のネームサーバーの値を確認します。ファイアーバードのネームサーバーを利用しています。

intoDNS: Checking health and configurtion of DNS server and mail server for domainmemordm.com.
ここのURLので表示されました。

Category Status Test name Information
Parent Info Domain NS records Nameserver records returned by the parent servers are:

ns1.firebird.jp.   [‘112.78.117.92’] (NO GLUE)   [TTL=172800]
ns2.firebird.jp.   [‘112.78.117.93’] (NO GLUE)   [TTL=172800]
ns3.firebird.jp.   [‘219.94.201.243’] (NO GLUE)   [TTL=172800]

a.gtld-servers.net was kind enough to give us that information.

Pass TLD Parent Check Good. a.gtld-servers.net, the parent server I interrogated, has information for your TLD. This is a good thing as there are some other domain extensions like “co.us” for example that are missing a direct check.
Pass Your nameservers are listed Good. The parent server a.gtld-servers.net has your nameservers listed. This is a must if you want to be found as anyone that does not know your DNS servers will first ask the parent nameservers.
Info DNS Parent sent Glue The parent nameserver a.gtld-servers.net is not sending out GLUE for every nameservers listed, meaning he is sending out your nameservers host names without sending the A records of those nameservers. It’s ok but you have to know that this will require an extra A lookup that can delay a little the connections to your site. This happens a lot if you have nameservers on different TLD (domain.com for example with nameserver ns.domain.org.)
Pass Nameservers A records Good. Every nameserver listed has A records. This is a must if you want to be found.
NS Info NS records from your nameservers NS records got from your nameservers listed at the parent NS are:

ns2.firebird.jp  [‘112.78.117.93’]   [TTL=3600]
ns1.firebird.jp  [‘112.78.117.92’]   [TTL=3600]
ns3.firebird.jp  [‘219.94.201.243’]   [TTL=3600]

Pass Recursive Queries Good. Your nameservers (the ones reported by the parent server) do not report that they allow recursive queries for anyone.
Pass Same Glue The A records (the GLUE) got from the parent zone check are the same as the ones got from your nameservers. You have to make sure your parent server has the same NS records for your zone as you do according to the RFC. This tests only nameservers that are common at the parent and at your nameservers. If there are any missing or stealth nameservers you should see them below!
Pass Glue for NS records OK. When I asked your nameservers for your NS records they also returned the A records for the NS records. This is a good thing as it will spare an extra A lookup needed to find those A records.
Pass Mismatched NS records OK. The NS records at all your nameservers are identical.
Pass DNS servers responded Good. All nameservers listed at the parent server responded.
Pass Name of nameservers are valid OK. All of the NS records that your nameservers report seem valid.
Pass Multiple Nameservers Good. You have multiple nameservers. According to RFC2182 section 5 you must have at least 3 nameservers, and no more than 7. Having 2 nameservers is also ok by me.
Pass Nameservers are lame OK. All the nameservers listed at the parent servers answer authoritatively for your domain.
Pass Missing nameservers reported by parent OK. All NS records are the same at the parent and at your nameservers.
Pass Missing nameservers reported by your nameservers OK. All nameservers returned by the parent server a.gtld-servers.net are the same as the ones reported by your nameservers.
Pass Domain CNAMEs OK. RFC1912 2.4 and RFC2181 10.3 state that there should be no CNAMEs if an NS (or any other) record is present.
Pass NSs CNAME check OK. RFC1912 2.4 and RFC2181 10.3 state that there should be no CNAMEs if an NS (or any other) record is present.
Pass Different subnets OK. Looks like you have nameservers on different subnets!
Pass IPs of nameservers are public Ok. Looks like the IP addresses of your nameservers are public. This is a good thing because it will prevent DNS delays and other problems like
Pass DNS servers allow TCP connection OK. Seems all your DNS servers allow TCP connections. This is a good thing and useful even if UDP connections are used by default.
Pass Different autonomous systems OK. It seems you are safe from a single point of failure. You must be careful about this and try to have nameservers on different locations as it can prevent a lot of problems if one nameserver goes down.
Pass Stealth NS records sent Ok. No stealth ns records are sent
SOA Info SOA record The SOA record is:
Primary nameserver: ns1.firebird.jp
Hostmaster E-mail address: root.sv0.firebird.jp
Serial #: 0
Refresh: 10800
Retry: 3600
Expire: 604800   1 weeks
Default TTL: 3600
Pass NSs have same SOA serial OK. All your nameservers agree that your SOA serial number is 0.
Pass SOA MNAME entry OK. ns1.firebird.jp That server is listed at the parent servers.
Warn SOA Serial Your SOA serial number is: 0. This can be ok if you know what you are doing.
Pass SOA REFRESH OK. Your SOA REFRESH interval is: 10800. That is OK
Pass SOA RETRY Your SOA RETRY value is: 3600. Looks ok
Pass SOA EXPIRE Your SOA EXPIRE number is: 604800.Looks ok
Pass SOA MINIMUM TTL Your SOA MINIMUM TTL is: 3600. This value was used to serve as a default TTL for records without a given TTL value and now is used for negative caching (indicates how long a resolver may cache the negative answer). RFC2308 recommends a value of 1-3 hours. Your value of 3600 is OK.
MX Info MX Records Your MX records that were reported by your nameservers are:

0   memordm.com   112.78.117.102

[These are all the MX records that I found. If there are some non common MX records at your nameservers you should see them below. ]

Pass Different MX records at nameservers Good. Looks like all your nameservers have the same set of MX records. This tests to see if there are any MX records not reported by all your nameservers and also MX records that have the same hostname but different IPs
Pass MX name validity Good. I did not detect any invalid hostnames for your MX records.
Pass MX IPs are public OK. All of your MX records appear to use public IPs.
Pass MX CNAME Check OK. No problems here.
Pass MX A request returns CNAME OK. No CNAMEs returned for A records lookups.
Pass MX is not IP OK. All of your MX records are host names.
Info Number of MX records OK. Looks like you only have one MX record at your nameservers. You should be careful about what you are doing since you have a single point of failure that can lead to mail being lost if the server is down for a long time.
Pass Mismatched MX A OK. I did not detect differing IPs for your MX records.
Pass Duplicate MX A records OK. I have not found duplicate IP(s) for your MX records. This is a good thing.
Pass Reverse MX A records (PTR) Your reverse (PTR) record:
102.117.78.112.in-addr.arpa ->  sv1.firebird.netowl.jp
You have reverse (PTR) records for all your IPs, that is a good thing.
WWW Info WWW A Record Your www.memordm.com A record is:
www.memordm.com  [112.78.117.102]
Pass IPs are public OK. All of your WWW IPs appear to be public IPs.
Pass WWW CNAME OK. No CNAME

Processed in 1.221 seconds.

スタードメインのDNSレコードを編集します。

mailfrom11

レコード追加でAレコードを選択し、IPアドレスを追加します。

mailfrom12

確認画面で「確定する」をクリックして追加します。

つづいてCレコードを追加します。

mailfrom13

続いてMXレコードを追加します。

mailfrom14

最後にTXTレコードを追加します。

mailfrom15

レコード一覧を表示しました。

mailfrom16

ネームサーバーをファイアバードからスタードメインに変更します。

mailfrom17

スタードメインを選択して設定します。

mailfrom18

その後、http://www.intodns.com/memordm.com で確認しました。
時間がかかるかと思いましたが、数分でスタードメインに切り替わっていました。

Category Status Test name Information
Parent Info Domain NS records Nameserver records returned by the parent servers are:

ns1.star-domain.jp.   [‘112.78.117.88’] (NO GLUE)   [TTL=172800]
ns2.star-domain.jp.   [‘112.78.117.89’] (NO GLUE)   [TTL=172800]
ns3.star-domain.jp.   [‘219.94.201.241’] (NO GLUE)   [TTL=172800]

h.gtld-servers.net was kind enough to give us that information.

Pass TLD Parent Check Good. h.gtld-servers.net, the parent server I interrogated, has information for your TLD. This is a good thing as there are some other domain extensions like “co.us” for example that are missing a direct check.
Pass Your nameservers are listed Good. The parent server h.gtld-servers.net has your nameservers listed. This is a must if you want to be found as anyone that does not know your DNS servers will first ask the parent nameservers.
Info DNS Parent sent Glue The parent nameserver h.gtld-servers.net is not sending out GLUE for every nameservers listed, meaning he is sending out your nameservers host names without sending the A records of those nameservers. It’s ok but you have to know that this will require an extra A lookup that can delay a little the connections to your site. This happens a lot if you have nameservers on different TLD (domain.com for example with nameserver ns.domain.org.)
Pass Nameservers A records Good. Every nameserver listed has A records. This is a must if you want to be found.
NS Info NS records from your nameservers NS records got from your nameservers listed at the parent NS are:

ns2.star-domain.jp  [‘112.78.117.89’]   [TTL=3600]
ns3.star-domain.jp  [‘219.94.201.241’]   [TTL=3600]
ns1.star-domain.jp  [‘112.78.117.88’]   [TTL=3600]

Pass Recursive Queries Good. Your nameservers (the ones reported by the parent server) do not report that they allow recursive queries for anyone.
Pass Same Glue The A records (the GLUE) got from the parent zone check are the same as the ones got from your nameservers. You have to make sure your parent server has the same NS records for your zone as you do according to the RFC. This tests only nameservers that are common at the parent and at your nameservers. If there are any missing or stealth nameservers you should see them below!
Pass Glue for NS records OK. When I asked your nameservers for your NS records they also returned the A records for the NS records. This is a good thing as it will spare an extra A lookup needed to find those A records.
Pass Mismatched NS records OK. The NS records at all your nameservers are identical.
Pass DNS servers responded Good. All nameservers listed at the parent server responded.
Pass Name of nameservers are valid OK. All of the NS records that your nameservers report seem valid.
Pass Multiple Nameservers Good. You have multiple nameservers. According to RFC2182 section 5 you must have at least 3 nameservers, and no more than 7. Having 2 nameservers is also ok by me.
Pass Nameservers are lame OK. All the nameservers listed at the parent servers answer authoritatively for your domain.
Pass Missing nameservers reported by parent OK. All NS records are the same at the parent and at your nameservers.
Pass Missing nameservers reported by your nameservers OK. All nameservers returned by the parent server h.gtld-servers.net are the same as the ones reported by your nameservers.
Pass Domain CNAMEs OK. RFC1912 2.4 and RFC2181 10.3 state that there should be no CNAMEs if an NS (or any other) record is present.
Pass NSs CNAME check OK. RFC1912 2.4 and RFC2181 10.3 state that there should be no CNAMEs if an NS (or any other) record is present.
Pass Different subnets OK. Looks like you have nameservers on different subnets!
Pass IPs of nameservers are public Ok. Looks like the IP addresses of your nameservers are public. This is a good thing because it will prevent DNS delays and other problems like
Pass DNS servers allow TCP connection OK. Seems all your DNS servers allow TCP connections. This is a good thing and useful even if UDP connections are used by default.
Pass Different autonomous systems OK. It seems you are safe from a single point of failure. You must be careful about this and try to have nameservers on different locations as it can prevent a lot of problems if one nameserver goes down.
Pass Stealth NS records sent Ok. No stealth ns records are sent
SOA Info SOA record The SOA record is:
Primary nameserver: ns1.star-domain.jp
Hostmaster E-mail address: root.sv0.star-domain.jp
Serial #: 0
Refresh: 10800
Retry: 3600
Expire: 604800   1 weeks
Default TTL: 3600
Pass NSs have same SOA serial OK. All your nameservers agree that your SOA serial number is 0.
Pass SOA MNAME entry OK. ns1.star-domain.jp That server is listed at the parent servers.
Warn SOA Serial Your SOA serial number is: 0. This can be ok if you know what you are doing.
Pass SOA REFRESH OK. Your SOA REFRESH interval is: 10800. That is OK
Pass SOA RETRY Your SOA RETRY value is: 3600. Looks ok
Pass SOA EXPIRE Your SOA EXPIRE number is: 604800.Looks ok
Pass SOA MINIMUM TTL Your SOA MINIMUM TTL is: 3600. This value was used to serve as a default TTL for records without a given TTL value and now is used for negative caching (indicates how long a resolver may cache the negative answer). RFC2308 recommends a value of 1-3 hours. Your value of 3600 is OK.
MX Info MX Records Your MX records that were reported by your nameservers are:

0   memordm.com   112.78.117.102

[These are all the MX records that I found. If there are some non common MX records at your nameservers you should see them below. ]

Pass Different MX records at nameservers Good. Looks like all your nameservers have the same set of MX records. This tests to see if there are any MX records not reported by all your nameservers and also MX records that have the same hostname but different IPs
Pass MX name validity Good. I did not detect any invalid hostnames for your MX records.
Pass MX IPs are public OK. All of your MX records appear to use public IPs.
Pass MX CNAME Check OK. No problems here.
Pass MX A request returns CNAME OK. No CNAMEs returned for A records lookups.
Pass MX is not IP OK. All of your MX records are host names.
Info Number of MX records OK. Looks like you only have one MX record at your nameservers. You should be careful about what you are doing since you have a single point of failure that can lead to mail being lost if the server is down for a long time.
Pass Mismatched MX A OK. I did not detect differing IPs for your MX records.
Pass Duplicate MX A records OK. I have not found duplicate IP(s) for your MX records. This is a good thing.
Pass Reverse MX A records (PTR) Your reverse (PTR) record:
102.117.78.112.in-addr.arpa ->  sv1.firebird.netowl.jp
You have reverse (PTR) records for all your IPs, that is a good thing.
WWW Info WWW A Record Your www.memordm.com A record is:
www.memordm.com -> memordm.com -> [ 112.78.117.102  ][Looks like you have CNAME’s]
Pass IPs are public OK. All of your WWW IPs appear to be public IPs.
Pass WWW CNAME OK. You do have a CNAME record for www.memordm.com.Your CNAME entry also returns the A record for the CNAME entry, which is good.

info@memordm.comアカウントからgmailへメールを送信すると、SPFがpassになっていることを確認できました。

mailfrom19

WordPressからのメールの差出人とリターンパスを変える?

info@ドメインなどのような実在するアドレスに変えたほうがいいのか検討中です。基本的に自分にしか届かないメールなので、初期値でもいいような気がします。
問い合わせフォームの入力時に相手に自動返信する際は変えたほうがいいのかな?
後日、ContactForm7を使ってみます。

スポンサーリンク
memordmレクタングル(大)
memordmレクタングル(大)

シェアする

  • このエントリーをはてなブックマークに追加

フォローする

スポンサーリンク
memordmレクタングル(大)