I've followed instructions to set up spf and DKIM on my mailing server. SPF is working fine so far, however I am having problem with DKIM. In every single instruction website, they show the output after generating the key would be a single key. However, it generates 2 keys for me - not exactly 2, I would say one and a half(!). Here is the output on mail.txt -
mail._domainkey IN TXT ( "v=DKIM1; h=sha256; k=rsa; "
"M+Vx8siFcENppNrqrbkSkhPfaNWYSqoXT9ZvFzHYOzcLqfx5HeJn3E7tAP6VDKKpoQjvUifQDp+oE0x9BgFdP63e7mxIZH1e78c4p8NTnZ8RAO4DQOFgCSn61Anm4OHspYJNpA0wIDAQAB" ) ; ----- DKIM key mail for mydomainname.com
I've copied the first part to my dns -
v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt+aTMFobW7/VoT+36RJZOQ0cLtr4PxsWT0DHhRreE6a2IuXIOktviQkkXtLb2NXn5gjAZfPscss11Vr+kLFWM2OWF+B1qFpBB8J9zg6L8vjdkzIt5mt1oPOkFg7CcCEhU8dnbRpps00xsu4aVNuda7yr0+4sCwcTsObuESSQ3hYFWl33+OVTqiYAPqykX/mADvLYVxQF9UUJlO
which seems not to be working. Gmail shows(gmail received an email sent from this server, sent to spam)
dkim=neutral (invalid public key) email@example.com header.s=mail header.b=chWKWyaM;
How do I deal with this 2 (one and a half) output and add it to DNS? I tried merging them - same result. Tried regenerating, get 2 everytime.
Thanks in advance