Report this

What is the reason for this report?

I tried to enable dkim in my server but I received two key which one I have to use

Posted on April 10, 2020
Abdo

By Abdo

I followed a tutorial. But when I generate keys I got this message:

mail._domainkey IN      TXT     ( "v=DKIM1; h=sha256; k=rsa; "
          "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA73GrtFr22IRJWYQnR1g4If2
qi+oR54VhwJaljklZeq1zQ7aQyobkSt1bqthkhnktVOwYEEV/sfxkNZ2TmkdgSZswZslOfTCpt
xXBOPCDxvcdRB4pfWdkhLC0chi0/+qiYXjzryQlzyk7UtaLky7Kw4JQxGXOSQp8wPrrWptvwmzblReTq
ByzKlwdCn1nlkhgKdggQnaZ6D5"
          "lJ7RoGx3T8OyKFmupFbVeiVA/Q4yuWMfAKKYx+e0lkfp3CpaLsHXk4qNTQXFpB9vQiCZcRm
o8nbRp5k1mOcJt+wktKrxYspKalikhOLRrua3s4HqvzA6KTDWdCIlgO1eQMHBHtF3lihNsADfQIDAQAB" )  ;
----- DKIM key mail for domain.com

So how I can use and txt does not allow spaces. Notes: I regenerated a new one: it is different from the first one. So please how to use it. and This is the last one.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @Abdo,

What you could do is just combine this into 1 long string like this:

"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA73GrtFr22IRJWYQnR1g4If2qi+oR54VhwJaljklZeq1zQ7aQyobkSt1bqthkhnktVOwYEEV/sfxkNZ2TmkdgSZswZslOfTCptxXBOPCDxvcdRB4pfWdkhLC0chi0/+qiYXjzryQlzyk7UtaLky7Kw4JQxGXOSQp8wPrrWptvwmzblReTqByzKlwdCn1nlkhgKdggQnaZ6D5lJ7RoGx3T8OyKFmupFbVeiVA/Q4yuWMfAKKYx+e0lkfp3CpaLsHXk4qNTQXFpB9vQiCZcRmo8nbRp5k1mOcJt+wktKrxYspKalikhOLRrua3s4HqvzA6KTDWdCIlgO1eQMHBHtF3lihNsADfQIDAQAB"

And add it as 1 single DNS entry.

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.