First of all, thank you for this wonderful image!
I am running the mail server for two domains. My fqdn is example1.com; I have everything setup correctly, using dkim, spf, ssl and everything. My settings for the dns records are:
A: example1.com -> my VPS IP
MX: example1.com -> example1.com
TXT: example1.com -> "v=spf1 mx ~all"
TXT: mail._domainkey.example1.com -> example1.com dkim key
Dkim is recognised by the receiver and everything is working smoothly.
For the second domain, dkim is not recognised. Here are the dns details:
A: example2.com -> my VPS IP
MX: example2.com -> example2.com
TXT: example2.com -> "v=spf1 mx ~all"
TXT: mail._domainkey.example2.com -> example2.com dkim key
Dkim is not recognised by the receiver, what should I change in my dns records? Thank you in advance.
AN
Hey,
I've just finished setting up a similar configuration.
Judging from what you posted, it should work. Just confirm that:
My steps in getting this to work were:
Without restarting the container the e-mails weren't getting signed with DKIM, even though everything else was configured.
To confirm your DKIM keys use dig TXT mail._domainkey.domain.tld (taken from https://github.com/tomav/docker-mailserver/wiki/Configure-DKIM). Make sure that the keys for both domains are correct.
To confirm that the e-mails are getting signed, send yourself an e-mail and check that it has the DKIM-Signature header. I also really like this site for debugging e-mail setup: https://www.mail-tester.com/
Hi @alen12345, does it answers your question?
Thanks.
Hello @tomav , yes it does!
Thank you very much @mrPjer , the problem was that I needed to restart the container, and also wait for the DNS update to propagate. My silly mistake...I have tried on multiple installations and can confirm that the DKIM signatures work perfectly.
Many thanks to both for the reply, this issue can be definitely closed. Thank again!
Great!
Most helpful comment
Hey,
I've just finished setting up a similar configuration.
Judging from what you posted, it should work. Just confirm that:
My steps in getting this to work were:
Without restarting the container the e-mails weren't getting signed with DKIM, even though everything else was configured.
To confirm your DKIM keys use
dig TXT mail._domainkey.domain.tld(taken from https://github.com/tomav/docker-mailserver/wiki/Configure-DKIM). Make sure that the keys for both domains are correct.To confirm that the e-mails are getting signed, send yourself an e-mail and check that it has the
DKIM-Signatureheader. I also really like this site for debugging e-mail setup: https://www.mail-tester.com/