SnappyMail not on default port number won't load

Hey team,

I changed the default port number to another to run CyberPanel on a domain and use Cloudflare.

Now, SnappyMail won’t load anymore. How can I fix this issue?

Hi, any luck with this issue? SnappyMail won’t load and WP do no send emails.

Yep, was quite easy to solve.

Create a domain, webmail.domain.com

Edit the rewrite rules and make it look like this.

## Rewrite Rules Added by CyberPanel Rewrite Rule Generator

RewriteEngine On
RewriteCond %{HTTPS}  !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

### End CyberPanel Generated Rules.

RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^$ https://switch-xxx.domain.com/snappymail? [R=301,L,NC]

This works if you have the config without port 8090.

Thanks for sharing.

That didn´t solve my problem. The problem was rocket loader on cloudflare. I desactivated it and now snappymail is loading.

Cloudflare will give issues with these rewrite rules