zach
May 6, 2024, 6:23am
1
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.
Thanks!
_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
zach
May 6, 2024, 7:00am
3
I have ticked DKIM support.
zach
May 6, 2024, 7:03am
4
I have already found mail_domainkey.
zach
May 6, 2024, 7:34am
5
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/
zach
May 6, 2024, 8:23am
7
What record should I add? I will give you a screenshot, please help?
zach
May 6, 2024, 8:25am
8
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.
zach:
Are they four commands?
Yes, 4 commands.
zach
May 6, 2024, 8:36am
10
These are all the dns records I added.
Is there anything wrong or I missed anything?
zach
May 6, 2024, 8:39am
11
Do I need to run these 4 commands in root level or in user?
Thanks!
All ok, well, you shouldn’t need www.mail
and www.webmail
but it won’t hurt.
As root.