I don't have _domainkey in DNS Domain

Hi, I’m following a tutorial to create email accounts with my domain name in Hestia.
I have set up Mail Domain.
Now I am in DNS domain to add some dns record to my domain.
The person showing that has -domainkey, currently mine doesn’t have that.

I’m not sure if that txt record is mandatory if I want my email account works properly.

_domankey is a deprecated record so you don’t need it but you must have mail._domainkey record.

Did you select DKIM support option when adding the mail domain? Edit the mail domain and if you didn’t select DKIM then select it and save.

If DKIM is activated already, you can check what is the content of the record and add it manually. To check the record:


And you will see the mail._domainkey content that you will need to add to your dns zone:

You can also get it from command line:

 v-list-mail-domain-dkim-dns YourUser YourDomain

I have ticked DKIM support.

I have already found mail_domainkey.

Do you have detailed step on how to host email with Hestia?
I have done two steps, but it still doesn’t work.
First step, I added mail domain and added mail account.
Second step, I added dns domain and added all the record to my domain, including mail_domainkey.
It doesn’t work.
When I access http://webmail.mydomain.com/, it returned the error.

You are not using Hestia as your DNS server, you are using Namecheap DNS servers so you should add the right records there.

That’s because a bug, to fix it:

chown -R hestiamail:www-data /etc/roundcube/
find /etc/roundcube/ -type f -iname "*php" -exec chmod 640 {} \;
chown -R hestiamail:www-data /var/lib/roundcube/
chown -R hestiamail:www-data /var/log/roundcube/

What record should I add? I will give you a screenshot, please help?

Are they four commands?
Or I just run them as one command?

I’ve checked it now and seems you already added all the needed records in Namecheap DNS Servers.

Yes, 4 commands.

These are all the dns records I added.
Is there anything wrong or I missed anything?

Do I need to run these 4 commands in root level or in user?

All ok, well, you shouldn’t need www.mail and www.webmail but it won’t hurt.

As root.