TXT record for DKIM - huge domainkey
If you want your mail server to be DMARC compliant, you need to configure SPF & DKIM. Both use DNS and need a TXT record.
If your DKIM domainkey that needs to be publish in DNS is a very long string, the DNS server will throw an error like this one:
dns_rdata_fromtext: /home/liviu/techtorials.ro.db:29: syntax error
For example, you can add this string as a TXT record without any issue:
but you won't be able to add this one, because is too long:
What you need to do is to brake the huge domainkey using quotes, like this:
and then the DNS server will accept it. The broken domainkey should be added as a single string, like this: