註2:DNS 變更後需要約 8-72 小時等待其他主機更新相關紀錄後方能生效。
近來有使用者反映,發送信箱到 Google 時會被退信
退信訊息內容如下:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
xxxxxxxxxxxx@gmail.com
host gmail-smtp-in.l.google.com [142.250.157.27]
SMTP error from remote mail server after end of data:
550-5.7.26 This message does not pass authentication checks (SPF and DKIM both
550-5.7.26 do not pass). SPF check for [ksm.com.tw] does not pass with ip:
550-5.7.26 [60.249.109.51].To best protect our users from spam, the message has
550-5.7.26 been blocked. Please visit
550-5.7.26 https://support.google.com/mail/answer/ ... entication for more
550 5.7.26 information. k6-20020a170902c40600b00164179b39acsi13553247plk.556 - gsmtp
該情況主要為發送信件之網域並未正確設定 SPF 、 DKIM
又或是該信件並非 SPF & DKIM 所設定的郵件主機,
想要檢查你的 SPF 設定狀態可以使用以下工具
https://mxtoolbox.com/spf.aspx
只要在前方輸入你的網址後點選後方的 SPF Record Lookup 就會顯示出當前的狀態
想要檢查你的 DKIM 設定狀態可以使用以下工具
https://mxtoolbox.com/dkim.aspx
DKIM 檢查方法比較不同,
需要在前方輸入 default._domainkey.yourdomain 後再點選 DKIM Lookup 就會顯示出當前的狀態
以下兩張圖為查詢後有正確設定SPF & DKIM 的畫面
如果沒有正確設定 SPF & DKIM 的話
請參照以下教學做設定
cPanel 的部分請參照以下圖片做操作
1.登入 cPanel 以後選擇 Email Deliverability
2.選擇你的主網域點選後方的管理
3.產生 DKIM key
4.設定 DKIM
5.DKIM 設定完成畫面
6.點選設定 SPF 紀錄
7. SPF 設定完成
註:有使用者反應會出現錯誤訊息,這是因為我們的 nameserver 是使用 Cluster 的關係,該警告可以不用管。
警告: Because this is not an authoritative nameserver for the domain “domain.com.tw”, the current or suggested records will not reflect your changes. Use the Zone Editor to ensure that the system applied your changes.
註:假如您的郵件服務或是 DNS 在其他地方,需要請指向位置的廠商協助設定。