Mailgun DKIM

zmippie

Verified User
Joined
Apr 19, 2015
Messages
160
Since Mandrill (Mailchimp's back-end) will no longer be free (for the first 12K messages per month), nor cheap, I have to jump ship. I'm trying to move my transactional email over to Mailgun (by Rackspace?), but setting it up fails on the DKIM record they require. I'm aware of the problems with the DKIM keys being too long, but strangely enough, Mailgun's checks require the records to be without breaks. This is weird, because both dkimcore.org and MXToolbox validate the records as 100% okay. Mailgun's support staff tells me that dig shows the break, and it's true:

Code:
dig txt smtp._domainkey.mydomain +short
"v=DKIM1; k=rsa; p=MIGfMA0GCSqGSSb3DQEBAQUAA4GNADCBiQKBgQDR/OROGtUKSN46h9bFZe0pLvs1iJQn7LoVCgR0Hi+Q6OUUhpZ9k0fYLuePOgJpDxvdd5QA1sgi5DJCYLNIE2zT33hpXDn" "5m66VkBD1MpV7SwhLis7v3nPT7/roicgq3GAxxlk5mmcZaXXMFp+NH925m4a0SJJXTc6ebMqOLCtoIwIDAQAB;"

So what are my options? DirectAdmin (or BIND) won't let me create the DKIM record without breaks, Mailgun requires them to be without breaks. Hmmm...

Update:

http://dkim.org/specs/rfc4871-dkimbase.html#dkim-qp

Specifically, item 2.6 "DKIM-Quoted-Printable":

"Whitespace in the encoded text is ignored. This is to allow tags encoded using DKIM-Quoted-Printable to be wrapped as needed."
 
Last edited:
Back
Top