Fix DKIM field must be base64 encoded

Share this post to your friends !

SystemMen - Fix DKIM field must be base64 encoded. In this article, I will show you how to fix this error of DKIM.

If you have read the article How to check a DKIM core key record is correct that I wrote earlier. You will probably encounter the following error.

What the error looks like

This error occurs when you proceed to check if the content of the DKIM record is correct. But what is it? Why did it appear?

Look at the image below to imagine what the error looks like.

fix-dkim-field-must-be-base64-encoded Fix DKIM field must be base64 encoded
Fix DKIM field must be base64 encoded.

In the demo, I used the DKIM record content as below.

v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDX+uU4eJQPmmtfbN1XeeGYnYPb\ncH8lr3Hot6y0lKfNlekUvLKl9a9DHvw2Sv2sVC/2FjrFdPhlsZb8QzbLWbNOZDNB\nKoVJmixcsqjcZrTD4Ym+VcbiN5hcUqWMHOwH+1RVmMMc+/5YbKJm2RBMynAGr2hU\n4yxkz1XhK8mt1WlXFwIDAQAB

Looks very normal right. But why does it fail?

Fix DKIM field must be base64 encoded

If you take a closer look or when you have configured DKIM many times, you will realize it.

DKIM record does not contain spaces, double quotes, or line breaks.

In programming, the line break character is \n. Take a look at the content below that I marked.

p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDX+uU4eJQPmmtfbN1XeeGYnYPb\ncH8lr3Hot6y0lKfNlekUvLKl9a9DHvw2Sv2sVC/2FjrFdPhlsZb8QzbLWbNOZDNB\nKoVJmixcsqjcZrTD4Ym+VcbiN5hcUqWMHOwH+1RVmMMc+/5YbKJm2RBMynAGr2hU\n4yxkz1XhK8mt1WlXFwIDAQAB

I marked 3 times the character \n in the content of the DKIM record.

After removing those characters, the error has been fixed.

Conclusion

Just a little note, but it is very important to configure DKIM. For those who are just beginning to administer the email system, hopefully this article will help you.

If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.


Share this post to your friends !
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.