Unable send email to Gmail with error: DKIM and SPF checks did not pass
When sending an email to a Gmail account, you may encounter an error message stating that the DKIM and SPF checks did not pass.
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:
[email protected]
host gmail-smtp-in.l.google.com [xxx.xxx.xxx.xxx]
SMTP error from remote mail server after end of data:
550-5.7.26 This mail is unauthenticated, which poses a security risk to the
550-5.7.26 sender and Gmail users, and has been blocked. The sender must
550-5.7.26 authenticate with at least one of SPF or DKIM. For this message,
550-5.7.26 DKIM checks did not pass and SPF check for [dinaruna.com] did not
550-5.7.26 pass with ip: [xxx.xxx.xxx.xxx]. The sender should visit
550-5.7.26 https://support.google.com/mail/answer/81126#authentication for
550 5.7.26 instructions on setting up authentication. bi9-20020a170561c726dsi3309640plb.264 - gsmtp
Reporting-MTA: dns; xxx.xxx.com
This error occurs when the email fails to pass the authentication checks set up by Gmail to prevent spam and phishing emails. To resolve this issue, follow the steps below:
- Log in to your cPanel account.
- Click on the “Email Deliverability” icon under the “Email” section.
- Click on the “Repair” button next to the affected domain.
- Wait for the repair process to complete. This may take a few minutes.
- Once the repair process is complete, try sending the email again.
If the Repair button is disabled, it means that your domain’s DNS is not hosted under cPanel. In this case, you will need to manually update the DNS record in your DNS server. You can contact your DNS provider for assistance on how to update the DNS record.
Note:
The DKIM and SPF DNS record can obtain under Email Deliverability > Manage.