Netlify DNS DKIM not recognised for Yunohost

Hello,
I know this is a repited issue but none of the others worked form me.

I have my site on Netlify, my domain name on Netlify DNS, and my emails in Yunohost (simple email server) in a external VPS.

Yunohost give me the recomended DNS config:

; Mail
@ 3600 IN MX 10 baco.rest.
@ 3600 IN TXT "v=spf1 a mx -all"
mail._domainkey 3600 IN TXT "v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDnBuowaxWbl3r8BgycHD0xirMjXXnIi6IEqLBccclwdOSv+eYhgo+Vl8c4YqSs3bKNidSw6z0/0bf1GV3wfVfVoy+gvD255+XzJS6EAVO/AjN1orYtiVLGZH6h41RTfy3VaM0e3F67q7XRgyg4nTJ0W+wQbCpOTRofJO1Ner+K3wIDAQAB"
_dmarc 3600 IN TXT "v=DMARC1; p=none"

And I tried all sort of things to make it work but none of them did, Mail Tester keeps complaining about DKIM.

My question: based on the recomended DNS config provided by Yunohost, how should it be loaded in Netlify DNS? What is the name and value?

(I saw that in the name Netlify is adding the domain name at the end, and you said it was normal)

@antoine Welcome to the Netlify community.

At the very least, you need to create an MX record pointing to baco.rest with a priority of 10.

@gregraven Sorry about that, I didn’t post the full picture. But I did add the MX record.

From what I was given from the email service and what I putted in Netlify DNS do you see something wrong?

Hi, @antoine. I think the issue here is that the quotation marks in the screenshot are not needed. Adding those quotes is including extra quotes in the response:

baco.rest.		3599	IN	MX	10 baco.rest.
baco.rest.		3599	IN	TXT	"\"v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDnBuowaxWbl3r8BgycHD0xirMjXXnIi6IEqLBccclwdOSv+eYhgo+Vl8c4YqSs3bKNidSw6z0/0bf1GV3wfVfVoy+gvD255+XzJS6EAVO/AjN1orYtiVLGZH6h41RTfy3VaM0e3F67q7XRgyg4nTJ0W+wQbCpOTRofJO1Ner+K3wIDAQAB\""
baco.rest.		3599	IN	TXT	"\"v=spf1 a mx -all\""
mail._domainkey.baco.rest. 3599	IN	TXT	"\"v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDnBuowaxWbl3r8BgycHD0xirMjXXnIi6IEqLBccclwdOSv+eYhgo+Vl8c4YqSs3bKNidSw6z0/0bf1GV3wfVfVoy+gvD255+XzJS6EAVO/AjN1orYtiVLGZH6h41RTfy3VaM0e3F67q7XRgyg4nTJ0W+wQbCpOTRofJO1Ner+K3wIDAQAB\""
_dmarc.baco.rest.	3599	IN	TXT	"\"v=DMARC1; p=none\""

See all the lines with "\" to start and \"" at the end? That is the issue and that is being caused by the quotes being added to the value in the records.

To resolve this, remake the DNS records but this time do not add any quotes yourself. Our service will add the quotes automatically.

If there are other questions or concerns, please let us know.