Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

DKIM , why isn't it validating?

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

DKIM , why isn't it validating?
  • Quote

Post by youradds » Wed Apr 26, 2017 4:58 pm

I'm trying to work out what I'm doing with the whole DKIM stuff. This is what I'm running on the server:

Code: Select all

v-list-mail-domain-dkim-dns fatpeter chambresdhotesfrance.com
RECORD            TTL         TYPE      VALUE
------            ---         ----      -----
_domainkey        3600   IN   TXT      "t=y; o=~;"
mail._domainkey   3600   IN   TXT      "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDFOoGLMp7Wtsxx2QZgkwgZSh3G\n7f6YyOkPYwJrfX1iR+JrpMG7UuTH5oUq6dgLBzktrHc7A5NXV9EQCczlzOsf65Q/\nxfehC42h2JiVKvh7oMPELGhWt119/U6c1QFVx/78GvOAhcRamOtIiUaT7QHiWvqf\nXsGtN1aJjn30KEEzbwIDAQAB"

Because I'm running my nameserver at my hosts end, I've then added the records into the DNS there (as TXT);

Code: Select all

_domainkey 	t=y; o=~;

mail._domainkey 
k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDFOoGLMp7Wtsxx2QZgkwgZSh3G\n7f6YyOkPYwJrfX1iR+JrpMG7UuTH5oUq6dgLBzktrHc7A5NXV9EQCczlzOsf65Q/\nxfehC42h2JiVKvh7oMPELGhWt119/U6c1QFVx/78GvOAhcRamOtIiUaT7QHiWvqf\nXsGtN1aJjn30KEEzbwIDAQAB

...yet when I go to test it on mail-tester.com, I get:
The DKIM signature of your message is:

v=1;
a=rsa-sha256;
q=dns/txt;
c=relaxed/relaxed;
d=chambresdhotesfrance.com;
s=mail;
h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To;
bh=2e2ZvID4JPU42t2SkE+wT0biD7Ja0P6Hgnrd3rqAKHc=;
b=IBSfw+4BTl68ZaevBrU+Nuaz3NTZr1kL9mw19UsCC5rwLmGUCL1HrY5Z84C1Zug+zFQY78o7zfRZGxR+AOdJMt+wGAw4y2T4gk/946m9Z1aIDrR/9G8QIhJt8F0SFmVXEvB9aHkZQf/mXlMgcZvxXo/+FH+UX6XzVo/Py2olYeA=;


Your public key is:

"k=rsa;
p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDFOoGLMp7Wtsxx2QZgkwgZSh3G\\n7f6YyOkPYwJrfX1iR+JrpMG7UuTH5oUq6dgLBzktrHc7A5NXV9EQCczlzOsf65Q/\\nxfehC42h2JiVKvh7oMPELGhWt119/U6c1QFVx/78GvOAhcRamOtIiUaT7QHiWvqf\\nXsGtN1aJjn30KEEzbwIDAQAB"
I don't get it... what am I doing wrong? :/

Cheers

Andy
Top

jimmyeao
Posts: 30
Joined: Fri Nov 27, 2015 2:13 pm

Re: DKIM , why isn't it validating?
  • Quote

Post by jimmyeao » Fri Jun 02, 2017 11:11 am

Did you manage to fix this? I have the same issue
Top

jimmyeao
Posts: 30
Joined: Fri Nov 27, 2015 2:13 pm

Re: DKIM , why isn't it validating?
  • Quote

Post by jimmyeao » Fri Jun 02, 2017 11:14 am

https://github.com/serghey-rodin/vesta/issues/320
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: DKIM , why isn't it validating?
  • Quote

Post by youradds » Mon Jun 05, 2017 3:08 pm

Hi,

Yeah - the \n in the output is the problem. I wrote a little perl script to update the DNS record for the DKIM stuff, so I just replaced \n with a null value, so it has the correct value. I guess it needs fixing in the source though (not sure if it has already been dealt with?)

Cheers

Andy
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password