I have changed the nginx conf to this
server {
listen 80;
server_name webmail.example.com;
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
}
return 301 https://$host$request_uri;
}
server {
ssl_certificate /etc/ssl/mail/mail.example.com/cert.pem;
ssl_certificate_key /etc/ssl/mail/mail.example.com/key.pem;
index index.php index.html;
client_max_body_size 0;
root /web/rc; # ✅ Changed root to /web/rc for Roundcube
include /etc/nginx/conf.d/listen_plain.active;
include /etc/nginx/conf.d/listen_ssl.active;
# listen 443 ssl;
server_name webmail.example.com;
server_tokens off;
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass php-fpm-mailcow:9000; # Adjust if needed
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME "$document_root$fastcgi_script_name";
}
}
And then tried this
docker compose down
docker compose up -d
But still getting same error
acme-mailcow-1 | Sat Mar 8 20:25:50 UTC 2025 - Found A record for mail.example.com: xx.xx.xx.xx
acme-mailcow-1 | Sat Mar 8 20:25:50 UTC 2025 - Confirmed A record xx.xx.xx.xx
acme-mailcow-1 | Sat Mar 8 20:25:51 UTC 2025 - Found A record for webmail.example.com: xx.xx.xx.xx
acme-mailcow-1 | Sat Mar 8 20:25:51 UTC 2025 - Confirmed A record with IP xx.xx.xx.xx, but HTTP validation failed
My main domain where admin panel is hosted is not failing. Only webmail.example.com is failing
This issue arose when I changed the product_name inside /opt/mailcow-dockerized/data/web/rc/config/defaults.inc.php
. Can the issue be because of that? I have reverted my changed product_name to default name which is RoundCube Webmail
This issue arose when I changed the product_name inside /opt/mailcow-dockerized/data/web/rc/config/defaults.inc.php
. Can the issue be because of that? I have reverted my changed product_name to default name which is RoundCube Webmail