Difficulty Sending Emails - DKIM and SPF Failing

davidc

Verified User
Joined
Jun 19, 2020
Messages
86
Several of the server's domains are receiving emails, but unable to send them.

Both spf, dkim and dmarc exist in all the domains in question.

gmail is returning a bounce message. (DKIM = did not pass, SPF = did not pass

mail-tester.com is reporting errors with both:

spf: "domain.com does not allow your server 108.160.xx.xx to use [email protected]"

and

dkim: "Your DKIM signature is not valid"

One domain is missing the public and private key

ls -la /etc/virtual/domain.com/dkim.*.key
ls: cannot access '/etc/virtual/domain.com/dkim.*.key': No such file or directory

Anyone have suggestions how to fix this?

David
 
Last edited:
spf: "domain.com does not allow your server 108.160.xx.xx to use [email protected]"
That seems very clear. Seems your ipv4 is not added in the SPF for that domain. Which is odd, because DA does that automatically normally, unless you use mail on another server than the websites.

One domain is missing the public and private key
Enable DKIM for the domain via the user area. If it's already disabled but key is still missing you can create one via SSH as root like this:
Code:
cd /usr/local/directadmin/scripst
./dkim_create.sh domain.com

Ofcourse use the appropriate domain name.

For any further insight, we at least need one domain name with issues and need to know which issue it's having.
 
Back
Top