CyberPanel Community

SnappyMail not on default port number won't load

Mv
Mike van Eckendonk #1

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?

4 replies
CE
Cristian Eslava Suárez #2

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

Mv
Mike van Eckendonk #3

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.

CE
Cristian Eslava Suárez #4

Thanks for sharing.

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

Mv
Mike van Eckendonk #5

Cloudflare will give issues with these rewrite rules

Sign in to reply