You probably use a Custom DNS entry to forward the abcde.com url to the other hosting provider, correct? In that case, abcde.com/mail is not reachable.
Alternatively, you can setup mail.abcde.com, which is equally short:
First, create the file STORAGE_ROOT/www/custom.yaml and add to it the following text:
Then, add a mail user or alias: newuser@mail.abcde.com
This should give you access to the webmail using mail.abcde.com, although you will see the mention of box in the resulting url.
For domain2, a new domain, no website, nothing, I set the DNS records for entire domain to the above DNSs, thus webmail is accessible through domain2.com/mail
For domain3, website is existing already, so it has DNS records already.
I would like to access webmail via domain3/mail.
What should I do.
## webmail.home.caylak.tk
## Cum 19 Oca 2024 00:15:46
server {
listen 80;
listen [::]:80;
server_name webmail.home.caylak.tk;
root /tmp/invalid-path-nothing-here;
# Improve privacy: Hide version an OS information on
# error pages and in the "Server" HTTP-Header.
server_tokens off;
location / {
# Redirect using the 'return' directive and the built-in
# variable '$request_uri' to avoid any capturing, matching
# or evaluation of regular expressions.
return 301 https://webmail.home.caylak.tk$request_uri;
}
location /.well-known/acme-challenge/ {
# This path must be served over HTTP for ACME domain validation.
# We map this to a special path where our TLS cert provisioning
# tool knows to store challenge response files.
alias /home/user-data/ssl/lets_encrypt/webroot/.well-known/acme-challenge/;
}
}
# The secure HTTPS server.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name webmail.home.caylak.tk;
# Improve privacy: Hide version an OS information on
# error pages and in the "Server" HTTP-Header.
server_tokens off;
ssl_certificate /home/user-data/ssl/ssl_certificate.pem;
ssl_certificate_key /home/user-data/ssl/ssl_private_key.pem;
# Expose this directory as static files.
#root /home/user-data/www/default;
root /usr/local/lib/webmail;
index index.php index.html index.htm;
location = /robots.txt {
log_not_found off;
access_log off;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location ~ /config/.* {
# A ~-style location is needed to give this precedence over the next block.
return 403;
}
#--------------------------------------------
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php-fpm;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# file upload limit to match the corresponding Postfix limit.
client_max_body_size 128M;
}
#--------------------------------------------
location ~ /\.(ht|svn|git|hg|bzr) {
log_not_found off;
access_log off;
deny all;
}
access_log /var/log/nginx/webmail.home.caylak.tk-access.log;
error_log /var/log/nginx/webmail.home.caylak.tk-error.log;
}
## home.caylak.tk