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 DNS Server
  • Search

Bug in VestaCP related to dns / dkim editing

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
retronoodle
Posts: 12
Joined: Wed Dec 28, 2016 8:08 pm

Bug in VestaCP related to dns / dkim editing
  • Quote

Post by retronoodle » Mon Jan 02, 2017 9:27 pm

1. uncheck "DKIM support" in Mail -> edit

2. recheck "DKIM Support" in Mail -> edit

The resulting record in Bind will be incorrect:

Code: Select all

mail._domainkey.test.com       14400   IN      TXT             "k=rsa; p=MIGfMA0GCS....
When it should not include the domain name.

Correct would be:

Code: Select all

mail._domainkey     14400   IN      TXT             "k=rsa; p=MIGfMA0GCS....
You can workaround this:

1. Open the DKIM dns record in one tab, in edit mode.
2. In another tab, open the dns again, and delete it, and click the + to add another.
3. Paste from the tab in step 1, into the tab in step 2. When you get to the "Record", only paste in "mail._domainkey" - leave off the domain.
4. Save and test

Code: Select all

dig @yourDNSserver.com -t txt mail._domainkey.yourdomain.com
It should propagate after awhile (30 mins or less).
Top

MrFwibble
Posts: 4
Joined: Sun Jan 08, 2017 8:53 pm

Re: Bug in VestaCP related to dns / dkim editing
  • Quote

Post by MrFwibble » Sun Jan 29, 2017 2:06 pm

Just noticed this myself.

If you are comfortouble edting files then you can fix this.

edit:

Code: Select all

nano /usr/local/vesta/bin/v-add-mail-domain-dkim
Under the Action part, look for # Adding dns record then replace:

Code: Select all

record="_domainkey.$domain_idn"
change to this

Code: Select all

record="_domainkey"
There are two occurrences of this.

This file will more than likely be overwritten at some point in the future with Vesta updates, so beware of that.
Top

equynox
Posts: 4
Joined: Sat Apr 29, 2017 4:00 pm

Re: Bug in VestaCP related to dns / dkim editing
  • Quote

Post by equynox » Sun Apr 30, 2017 10:53 pm

Should't i modify the two dns entries coz there are two. The one woth the public key and another one. There are 2 txt entries.

And what entry are you talking about that should be modified? The one with the public key i assume?
Top

cottager
Posts: 19
Joined: Mon Feb 06, 2017 8:10 pm

Re: Bug in VestaCP related to dns / dkim editing
  • Quote

Post by cottager » Fri May 05, 2017 4:51 pm

There are records for mail._domainkey and _domainkey. He means both of those. mail one has the key.

I just ran into this. Is it in the bug tracker? It should be. Since you only seem to hit it if you turn dkim off and then on again, I haven't yet bothered to edit the vestacp file anticipating an update soon. :)
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “DNS 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