My email keeps going to my recipients spam folder
I have a web application on a CentOS 7 Linode to send emails to our customers. We use Postfix to send the mail and OpenDKIM to generate our DKIM record for DNS.
Our DKIM record looks like this:
selector1._domainkey.subdomain.example.com TXT "v=DKIM1; k=rsa; p=enXBNXIBQSTwkJUcCH0BQkzZyhRxsqvADjORxbmrkcf)FDL4qCPz29VVpbOaHCFq/+IJPrA7YTEl9MPw4DjvLfItIndMuFORIWWlZMSOKam]KuBsXeoTJHXkhWKGef4Beo/jORxbmrkcf)FDL4qCPz29VVpbOaFq/+IGnOLAEvOMgNolaEVom.EReHTOnsikEesuOYDlOgeht:SReKcaH"
My SPF record looks like this:
subdomain.example.com TXT "v=spf1 ip4:192.0.2.45 ~all"
Part of the header from failed email looks like this:
ARC-Authentication-Results: i=1; mx.google.com;
dkim=temperror (no key for signature) header.i=@example.com header.s=default header.b=GfoinvOr;
spf=softfail (google.com: domain of transitioning subdomain@example.com does not designate 192.0.2.45 as permitted sender) smtp.mailfrom=subdomain@example.com
What seems to be the problem here?
1 Reply
It looks like you are trying to send email from subdomain@example.com.
Your SPF and DKIM records you have provided allow mail to be sent for users like exampleuser@subdomain.example.com.
Simply remove the "subdomain" from your mail related DNS records. This should allow your mail to go through as expected.