Adding cPanel DKIM Record to External DNS.

Issue: When adding a cPanel generated DKIM key to an external server, error messages such as:

Value contains mismatched quotes. All beginning quotes must have a corresponding terminating quote.

may display. This is a result of the syntax used by cPanel based servers for the: default._domainkey

The solution:
Ensure quotes (double quotes) are used. Please see the following example:

Not working:

"v=DKIM1; k=rsa; p=nQQ5QbQpMT7Z0CCCJ2DOAQEFAAOCAQ8AMIIBCgKCAQEA0pvMcUoJOVvyuXS4E0OTdkSiYrcgXFeOBYM9W8oUcmgGtZ5FaismrgG+GR1TJncqdKsf+zO1Gvq9zSboJexkNvZoScPL+KycCpnooXxgfSNnijzaqjpi/nOEfoa++S2JLg1pZF9E5VCqpGt4aw4Fx9lqYI0p/Ho38amf4v4c6Z2Ux69CR0zSzQDQdL1YJ0Pif" TA0mLmRk6NuRjUx3UXDDrI64ow423nFllv+9MD+4Kvtzl3peyZvvVkb2ZCeLK8sRK3k0z0SAxhz3LqQM2xKoJt+ibPB8Wr61LV8KSK72l7uwaV/PX39Gjj2DtDAemjAOcvXQksKMEJSpp3yjyvVkQIDAQAB\;

Adding the appropriate quotes to the below, results in a working record (on the external DNS service):

"v=DKIM1; k=rsa; p=nQQ5QbQpMT7Z0CCCJ2DOAQEFAAOCAQ8AMIIBCgKCAQEA0pvMcUoJOVvyuXS4E0OTdkSiYrcgXFeOBYM9W8oUcmgGtZ5FaismrgG+GR1TJncqdKsf+zO1Gvq9zSboJexkNvZoScPL+KycCpnooXxgfSNnijzaqjpi/nOEfoa++S2JLg1pZF9E5VCqpGt4aw4Fx9lqYI0p/Ho38amf4v4c6Z2Ux69CR0zSzQDQdL1YJ0Pif" "TA0mLmRk6NuRjUx3UXDDrI64ow423nFllv+9MD+4Kvtzl3peyZvvVkb2ZCeLK8sRK3k0z0SAxhz3LqQM2xKoJt+ibPB8Wr61LV8KSK72l7uwaV/PX39Gjj2DtDAemjAOcvXQksKMEJSpp3yjyvVkQIDAQAB\;"

Each server / account generates its own unique DKIM keys!

Leave a comment

BlogLogistics