How to properly set up DNS SPF records?

后端 未结 1 928
天涯浪人
天涯浪人 2021-02-01 03:12

I\'m sending weekly emails to subscribers and it turns out that messages are frequently going to the spam folder for users.

I\'m utilizing Amazon SES to send these messa

相关标签:
1条回答
  • 2021-02-01 03:48

    There are no valid TXT records for your domain (notice that the test doesn't return any, see below for a working example), which is caused by missing quotes around those TXT records you defined, as explained e.g. in Record Types Supported:

    Unlike with most other record types, for TXT records the Data field is essentially free-form and may even include spaces. Please note: When entering a string that includes spaces, such as SPF records, you must enclose the string in double quotes; otherwise, individual words will be separately quoted and break up the record into multiple parts.

    Here are the TXT records we currently use successfully for Amazon SES as per Authenticating Your Email Address and (it's indeed unfortunate that their documentation doesn't address the quoting needs):

    "v=spf1 include:amazonses.com ~all"
    "spf2.0/pra include:amazonses.com ~all"
    

    Accordingly, here is our domain's abbreviated result for the test you have been running:

    SPF record lookup and validation for: [...]
    
    SPF records are primarily published in DNS as TXT records.
    
    The TXT records found for your domain are:
    spf2.0/pra include:amazonses.com ~all 
    v=spf1 include:amazonses.com ~all 
    
    [...]
    
    Checking to see if there is a valid SPF record. 
    
    Found v=spf1 record for services.marescom.net: 
    v=spf1 include:amazonses.com ~all 
    
    0 讨论(0)
提交回复
热议问题