Support » Plugin: WP Mail SMTP by WPForms » SPF, DKIM, DMARC Error

  • Resolved randyolson44

    (@randyolson44)


    Recently moved websites to new hosting provider.
    Main website has no issues. Sub-domain with same settings but show errors – NO SPF record, and DKIM, DMARC warnings. These DNS records have been created but no change in error messages. Not sure where to go next.
    Looking for debugging tools or suggestions.

Viewing 13 replies - 16 through 28 (of 28 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi @randyolson44,

    you said you used a new Gmail address… do you mean for the oAuth/Connection process or did you also create a new Google oAuth app with this new Gmail address?

    Is this new Gmail address, still part of your G-suite account? Is the Gmail API enabled in the Google’s oAuth app you are using?

    Could you please try to create a brand new gmail account (free account, not g-suite) and configure it following these steps. If you’ll have any issues, please go through the FAQ section.

    If the free account works OK, then we’ll know that the issue is somewhere in your g-suite config.

    Take care!

    Thread Starter randyolson44

    (@randyolson44)

    Thanks again for your support.

    It appears the resolution was to downgrade the plugin to version 3.5.1.

    I am now able to use the existing gmail account with no errors when sending a test email.

    It also is showing the email address in the from email dropdown and is showing the email beside the remove connection button.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @randyolson44,

    you probably mean version 2.5.1, right?

    Yes, we introduced the Domain Check section in the Email Test tab in v2.6, but the fact that you didn’t see the connected email address in the settings and that the From Email was empty is a bit strange…

    Maybe the update to v2.6.0 did not complete correctly?

    Could you please try to update to v2.6. again and see if the From Email and the “connected” email address are correct now?

    I tested it on my testing sites and it all works OK for me on v2.6. and we didn’t have any other reports about this issue.

    Let me know how it goes.

    Take care!

    Thread Starter randyolson44

    (@randyolson44)

    The 2.5.1 version works correctly on one of two gmail accounts. On the one that does not work, the email ‘from address’ is not shown but the test email works fine on both accounts. When updating to V2.6.0 neither account works without giving errors on the test email.
    Is there any logs to review or change any code in one of the modules to do more testing?

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @randyolson44,

    could you please enable the WP debug logs for your testing site that does not display the authenticated email address? Then visit the WP Mail SMTP settings page + send a test email and see if there are any PHP errors in the .../wp-content/debug.log file.

    If there are no errors the next step would be to try and debug the \WPMailSMTP\Providers\Gmail\Auth::get_user_info method (file path: src/Providers/Gmail/Auth.php) with a debug line like: error_log( var_export( $e, true ) ); in the catch section of the method code, so it would look like this:

    
    try {
    	$email = $gmail->users->getProfile( 'me' )->getEmailAddress();
    } catch ( \Exception $e ) {
    	error_log( var_export( $e, true ) );
    	$email = '';
    }
    

    Again, visit the WP Mail SMTP settings (refresh the settings page) and check the .../wp-content/debug.log file. Let me know what the error output in the debug log file will be.

    This should all be done on the testing site (not on a production/live site)!

    Take care!

    Thread Starter randyolson44

    (@randyolson44)

    Thanks for the debugging tip. This allowed me to find that the gmail API was not enabled on one of the gmail addresses. Now both addresses appear in the ‘from email’ address and do show beside the connected email address. Upgraded back to V2.6.0. Now back to my original problem, I’m getting SPF, DKIM and DMARC error messages. I believe these records have been created but would like more debugging help to understand why these are being generated. Can I get a location to add an error log statement in another module?

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @randyolson44,

    please try to save the WP Mail SMTP plugin settings again, after selecting the From Email address in the dropdown. This will make sure the correct From Email address is used in the Domain Check tests.

    The domain in the From Email address will be used for testing the SPF, DKIM, and DMARC records. Are these records configured for the domain in the From Email address? you can use a tool like https://mxtoolbox.com/spf.aspx.

    Take care!

    Thread Starter randyolson44

    (@randyolson44)

    Saved again. No change in results. The SPF record is configured correctly when using MxToolbox.com. Please provide some debugging tips.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @randyolson44,

    you are getting these SPF, DKIM and DMARC errors/warnings just for the second site, or for both of them?

    Which domain name in the From Email address are you using for both of these sites? If you could provide these details I could check what is causing these issues.

    You once said:
    > G-Suite with custom domain and sub-domains.

    Did you configure SPF/DKIM for the sub-domains as well? And is this sub-domain used in the From Email address, that is causing issues these errors for SPF/DKIM in our plugin?

    Take care!

    Thread Starter randyolson44

    (@randyolson44)

    Email from address is info@bladdercancercanada.org for both sites.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @randyolson44,

    you do have an SPF record for that domain, but the record does not contain the Google’s include statement. More info can be found in this Google doc page.

    And the DKIM record with ‘google’ DKIM selector prefix is missing for your domain. Please configure the DKIM record with the ‘google’ DKIM selector prefix.

    Take care!

    Thread Starter randyolson44

    (@randyolson44)

    Thanks for your patience. I have resolved the SPF record and the test email gives a green OK indicator. I will resolve the DKIM and DMARC records shortly. Sorry for my confusion over root domain and sub-domains. Please close this thread.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @randyolson44,

    I’m glad we found the issue and you were able to resolve it 🙂

    Have a nice day!

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘SPF, DKIM, DMARC Error’ is closed to new replies.