Mail domain doesn't get setup correctly

Hello,

I’ve setup Hestia CP on a new VPS and after a few bug fixes I’ve been able to get the CP up and running.

However, I want to use Hestia only to manage email addresses and access RoundCube and NOT to host my domains (I use a separate dedicated server for it).

However, when adding a new Mail domain only, the process is not straightforward as:

  1. the SSL setup doesn’t automatically work because the subdomain created doesn’t get added to the nginx configuration

  2. the nginx config for the mail domain doesn’t point to roundcube but rather the folder where the web files should be located which, of course, is empty.

I had to fix the nginx vhost manually and even install php8.3-mbstring php8.3-xml php8.3-intl to make it work.

Is there a better way to do this?
Am I missing anything?

Hi,

Keep in mind that the config for the mail domain is here /home/YourUser/conf/mail/YourDomain/

Regarding SSL, are you sure you have created two dns A records for mail.yourdomain and webmail.yourdomain pointing to the ip of your Hestia server?

By default Hestia already installs those modules:

❯ grep -Eo 'php\$version-[a-z]+\s' /usr/local/hestia/bin/v-add-web-php | cut -d- -f2 | sort -u
bcmath
cli
common
fpm
gd
imagick
imap
intl
json
ldap
mbstring
pgsql
pspell
soap
xml
zip
2 Likes