V-change-sys-webmail invalid domain format

I get the success page when going to webmail.domain dot com instead of the roundcube login page. I tried using

v-change-sys-webmail admin webmail.domain dot com (replace dot com with .com)

as well as…

v-change-sys-webmail admin www.domain.com

both end up with this error message:

Error: invalid domain format :: error:
Error: user hestiamail doesn’t exist
Error: user hestiamail doesn’t exist
Error: invalid domain format :: doesn’t
Error: user hestiamail doesn’t exist
Error: invalid domain format :: error:
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid
Error: invalid domain format :: doesn’t
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid
Error: invalid restart format :: webmail.domain.com (replaced with domain for privacy)
Error: apache2 restart failed

Any help would be appreciated!!! This is on my personal bare metal, Debian 12, everything up to date, postgresql instead of mariaDB. If there is another distro that would be better to install hestia on I will gladly switch. I have done the full stack on my own (everything Hestia installs and configures) and the only thing on that I couldnt get working right was webmail so this has been annoying me either way I go about it. Hestia installer or diy!!!

Edit: email is working and so when I send an email to the admin@domain dot com I created and have it forwareded to my main email, it goes through just fine.

Edit2: I use a domain manager and have copied the dns settings over to it what the webmail shows in hestia cp

Syntax is supposed to be:
v-change-sys-webmail webmail

Not v-change-sys-webmail admin www.domain.com

When I run that command I get a lot of permission denied errors. I switched to root and ran the command and I get the same errors as I initially posted

redacted@redacted:/usr/local/hestia$ v-change-sys-webmail webmail

/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: error:
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: doesn’t
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: error:
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: doesn’t
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: error:
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: doesn’t
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: MAIL_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/conf/hestia.conf: Permission denied
Usage: v-change-sys-config-value KEY VALUE
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: error:
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: doesn’t
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: error:
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: doesn’t
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: error:
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: invalid domain format :: doesn’t
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
Error: WEB_SYSTEM is not enabled
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
sed: couldn’t open temporary file /etc/apache2/sedZHkRw2: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
touch: cannot touch ‘/usr/local/hestia/data/users/admin/system.log’: Permission denied
wc: /usr/local/hestia/data/users/admin/system.log: Permission denied
/usr/local/hestia/func/main.sh: line 132: [: : integer expression expected
tail: cannot open ‘/usr/local/hestia/data/users/admin/system.log’ for reading: Permission denied
/usr/local/hestia/func/main.sh: line 146: /usr/local/hestia/data/users/admin/system.log: Permission denied
/usr/local/hestia/func/main.sh: line 100: /usr/local/hestia/log/system.log: Permission denied

You need to run it as root …

You can’t run it as the user will have a look later today…

I did run it as root as well and got the same error I initially posted about

root@redacted:~# v-change-sys-webmail webmail

Error: invalid domain format :: error:
Error: user hestiamail doesn’t exist
Error: user hestiamail doesn’t exist
Error: invalid domain format :: doesn’t
Error: user hestiamail doesn’t exist
Error: invalid domain format :: error:
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid
Error: invalid domain format :: doesn’t
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid
Usage: grep [OPTION]… PATTERNS [FILE]…
Try ‘grep --help’ for more information.
Error: type is invalid

Also, hestiamail user does exist

root@redacted:~# groups hestiamail
hestiamail : hestiamail

Hello, same story, Ubuntu 22.04

v-rebuild-users
Error: user hestiamail doesn't exist

Did you manage to solve this somehow and why is this happening? I added Nginx templates and wanted to rebuild the users and got this error.

No I never resolved the issue. I also had issues with Laravel due to using postgresql instead of mariadb so I ended up going back to doing the full stack on my own. I have everything working except roundcube but I realized I dont need users to have access to an email webclient, I just needed the email part for sending links for password resets and the like.

1 Like

Edit /etc/passwd and remove the mail address for user hestiamail so you will get something like this:

Example:

Before:

hestiamail:x:1011:1011:[email protected]:/home/hestiamail:/bin/sh

After:

hestiamail:x:1011:1011::/home/hestiamail:/bin/sh
1 Like

You are right, everything worked out, the reassembly of users was successful. Thanks a lot!

1 Like