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

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

mail._domainkey IN      TXT     ( "v=DKIM1; h=sha256; k=rsa; "
o8nbRp5k1mOcJt+wktKrxYspKalikhOLRrua3s4HqvzA6KTDWdCIlgO1eQMHBHtF3lihNsADfQIDAQAB" )  ;
----- DKIM key mail for

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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