DA's DKIM script needs to be updated

Raimo

Verified User
Joined
Oct 7, 2009
Messages
25
Thanks. I have the record in the same way, but the breaking the p key on multiple lines renders it invalid for the DKIM Core Key Record checker.
Are your keys parsed correctly and validated as 'This is a valid DKIM key record' ?

I actually managed to get a working key by taking it from the DNS Administration in DirectAdmin control panel and removing the html line breaks. But when I paste the whole key in a single continuos line, which the checker has parsed as a correct key, to my zone file, then there is a syntax error.
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,466
Yes, my keys are parsed correctly and validated as 'This is a valid DKIM key record', and I do not have to fix anything. It works correct on my servers "out of the box". Are you running the newest version of DirectAdmin? If not, try to upgrade.
 

DutchLearner

Verified User
Joined
Jul 30, 2016
Messages
26
I know I'm reopening an old thread, but I have exactly the same issue. On http://dkimcore.org/c/keycheck it says:

This is not a good DKIM key record. You should fix the errors shown in red.

This TXT record consists of multiple strings. This is valid, and can't be avoided in this case.

Version
v= DKIM1
Key type
k= rsa
Public key
p= MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAru6kqwqnkt1krh/eKle/cP1+wK/lbA4aD1enQUm24BOHjiEQI3/7WB5O1UAZi4f4DZ0sQP3PVJreEZBqtL5dl+d eoU/Qj9oL+qCAe7IHdNgFW3/Fzg3ke8aOvWsPC8o0M5VvYAfibgcFpLCvu5BUqYwqvME3oU7WNK7OSjtPinf1wbFKEGUIh9ZzUcib0JO3gRzIxf6qXXu8htmFiNnInPDKHsn4oIioI5gWHiyKXs/EB GupIxrFJOlFmX213iYv/O9W3zpIz/+lOKIHRI5DocZ4Pte7/HxrDIosrIVORrTZgzDIyAb2HXZeSAmT0Rcp/mFMF5dPZw1KA6m/dkmqvwIDAQAB
The p= field must be base64 encoded

This is probably the reason why all mails from my server to Outlook, Live and Hotmail are being seen as spam, and probably also Gmail (I didn't check that yet). Any help would be greatly appreciated.

I followed this tutorial to set up the DKIM:

https://help.directadmin.com/item.php?id=569
 

wattie

Verified User
Joined
May 31, 2008
Messages
997
Location
Bulgaria
This is a copy/paste issue, not a problem. You have new lines in the key - that's because DA is displaying the key on multiple rows while the key is one long string. Remove new lines (actually pasted as intervals).

In the specific case - you must paste this:

v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAru6kqwqnkt1krh/eKle/cP1+wK/lbA4aD1enQUm24BOHjiEQI3/7WB5O1UAZi4f4DZ0sQP3PVJreEZBqtL5dl+deoU/Qj9oL+qCAe7IHdNgFW3/Fzg3ke8aOvWsPC8o0M5VvYAfibgcFpLCvu5BUqYwqvME3oU7WNK7OSjtPinf1wbFKEGUIh9ZzUcib0JO3gRzIxf6qXXu8htmFiNnInPDKHsn4oIioI5gWHiyKXs/EBGupIxrFJOlFmX213iYv/O9W3zpIz/+lOKIHRI5DocZ4Pte7/HxrDIosrIVORrTZgzDIyAb2HXZeSAmT0Rcp/mFMF5dPZw1KA6m/dkmqvwIDAQAB
and it gives valid:

This is a valid DKIM key record

Version
v= DKIM1
Key type
k= rsa
Public key
p= MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAru6kqwqnkt1krh/eKle/cP1+wK/lbA4aD1enQUm24BOHjiEQI3/7WB5O1UAZi4f4DZ0sQP3PVJreEZBqtL5dl+deoU/Qj9oL+qCAe7IHdNgFW3/Fzg3ke8aOvWsPC8o0M5VvYAfibgcFpLCvu5BUqYwqvME3oU7WNK7OSjtPinf1wbFKEGUIh9ZzUcib0JO3gRzIxf6qXXu8htmFiNnInPDKHsn4oIioI5gWHiyKXs/EBGupIxrFJOlFmX213iYv/O9W3zpIz/+lOKIHRI5DocZ4Pte7/HxrDIosrIVORrTZgzDIyAb2HXZeSAmT0Rcp/mFMF5dPZw1KA6m/dkmqvwIDAQAB
 
Last edited:

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,221
Location
Maastricht
Correct. You can also check with other DKIM check sites.
Or use DKIM selecter x and only your domain name, it will check automatically and show it's correct.
In the DKIM field you will see the result of what the checker found in the way like Wattie says you have to paste it. So no worries.
 
Top