Question

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

Posted April 10, 2020 108 views
Apache

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.

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.

×
1 answer

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

Submit an Answer