Page 1 of 1

Change mail._domainkey DKIM

Posted: Tue Mar 03, 2015 12:22 am
by hotsyncuk
Hello

When I add a domain to the Vesta system it creates a DNS record automatically. In the DNS is "mail._domainkey"

How can I change it so that Vesta will not setup "mail._domainkey" but something like this "theserver1._domainkey"

I edited "v-add-mail-domain-dkim" and "v-list-mail-domain-dkim-dns" but it still automatically adds "mail._domainkey"


Any help would be great :)

Thank you

Re: Change mail._domainkey DKIM

Posted: Wed Mar 04, 2015 5:04 pm
by skurudo
Hi, you need light code change -
/usr/local/vesta/bin/v-add-mail-domain

Code: Select all

record='mail._domainkey'
/usr/local/vesta/bin/v-list-mail-domain-dkim-dns

Code: Select all

echo -e "\n\t\"mail._domainkey\": {"

Code: Select all

echo "mail._domainkey 3600    IN    TXT    \"k=rsa; p=$pub\""
/usr/local/vesta/bin/v-add-mail-domain-dkim

Code: Select all

record='mail._domainkey'
(not tested, but theory thinks right)

Re: Change mail._domainkey DKIM

Posted: Thu Sep 20, 2018 11:24 pm
by lukapaunovic
I needed this, and it works. Thanks!
Just one more thing,
in exim conf

Code: Select all

dkim_selector = mail
under remote_smtp
needs to be changed too :)