- Setup SPF
- in dns setup a txt record for nextcloud.yushei.com.tw as "v=spf1 include:mail.nextcloud.yushei.com.tw ~all"
-
"v=spf1" indicates the SPF version.
-
"include:_spf.example.com" includes SPF records from another domain (_spf.example.com in this example).
-
"~all" indicates that mail from sources not explicitly listed should be treated as "soft fail." This means the message should be accepted but marked as potentially suspicious.
-
MxToolBox
- alexlai@yushei.me,TxxxxYxxLxx#nnnn
Undelivered Mail Returned to Sender From Mail Delivery System To alexlai@yushei.me Date Today 13:10 Contact photoAttachments Delivery report (~930 B) Show options Undelivered Message (~429 B) Show options Message Body This is the mail system at host nextcloud.yushei.com.tw.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
rai.sousuke@gmail.com: host gmail-smtp-in.l.google.com[108.177.97.27] said: 550-5.7.26 This mail has been blocked because the sender is unauthenticated. 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM. 550-5.7.26 550-5.7.26 Authentication results: 550-5.7.26 DKIM = did not pass 550-5.7.26 SPF [yushei.me] with ip: [210.242.152.235] = did not pass 550-5.7.26 550-5.7.26 For instructions on setting up authentication, go to 550 5.7.26 https://support.google.com/mail/answer/81126#authentication u25-20020a056a00099900b006ed4288276bsi13217168pfg.173 - gsmtp (in reply to end of DATA command) Reporting-MTA: dns; nextcloud.yushei.com.tw X-Postfix-Queue-ID: C2DD4400E7B75 X-Postfix-Sender: rfc822; alexlai@yushei.me Arrival-Date: Thu, 25 Apr 2024 13:09:50 +0800 (CST)
Final-Recipient: rfc822; rai.sousuke@gmail.com Original-Recipient: rfc822;rai.sousuke@gmail.com Action: failed Status: 5.7.26 Remote-MTA: dns; gmail-smtp-in.l.google.com Diagnostic-Code: smtp; 550-5.7.26 This mail has been blocked because the sender is unauthenticated. 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM. 550-5.7.26 550-5.7.26 Authentication results: 550-5.7.26 DKIM = did not pass 550-5.7.26 SPF [yushei.me] with ip: [210.242.152.235] = did not pass 550-5.7.26 550-5.7.26 For instructions on setting up authentication, go to 550 5.7.26 https://support.google.com/mail/answer/81126#authentication u25-20020a056a00099900b006ed4288276bsi13217168pfg.173 - gsmtp Subject test from nextcloud.yushei.com.tw 2024-04-25 13:10 From alexlai@yushei.me Date Today 13:09 Hi Bye