forked from RainLoop/rainloop-webmail
-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cPanel 3rdparty integration #697
Comments
the-djmaze
pushed a commit
that referenced
this issue
Nov 24, 2022
The issues are fixed now and it works in cPanel, but will keep open for more todo |
the-djmaze
pushed a commit
that referenced
this issue
Nov 24, 2022
In v2.22.3 i've added a feature to configure path for logs and cache.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue #645 is almost the same, so i did a test on a server with cPanel.
There are several issues at play, including cPanel bugs before it works.
Setup
snappymail-*-cpanel.tar.gz
from https://github.com/the-djmaze/snappymail/releases/latest/
)Basically something should work, but...
The CSS bug
cPanel modifies CSS files and replaces
url(/path)
intourl(/cPanel_magic_revision_0000000000/path)
But SnappyMail also uses:
url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'")
and cPanel breaks this into
url(data:image/svg+xml,<svg xmlns='http:/www.w3.org/2000/svg'")
There are two issues here:
http://
is missing a slashAutomate logins issue
According to https://api.docs.cpanel.net/guides/quickstart-development-guide/tutorial-integrate-custom-webmail-applications/#webmail-application-modifications
we must use REMOTE_USER and REMOTE_PASSWORD.
Both are available in $_SERVER and $_ENV so the "Login Remote" extension should work.
In the yaml i use
url: "/3rdparty/snappymail/?RemoteAutoLogin"
and the extension is working.But IMAP responds with:
As it seems, REMOTE_USER is not the login name and needs part of REMOTE_PASSWORD.
Solved here 2947304
File permissions
PHP runs as the user, so data must be stored in own user directory.
Currently
/usr/local/cpanel/base/3rdparty/snappymail/data/_data_/_default_/
will fail for multiple users.Therefore SnappyMail v2.22.2+ has a new initialization script that is run when
/home/<username>/var/snappymail/_data_/_default_/plugins/login-remote
does not exist.https://github.com/the-djmaze/snappymail/blob/master/snappymail/v/0.0.0/cpanel.php
Benchmark
This is a very simple benchmark test i made between Roundcube and SnappyMail inside cPanel for an empty and filled Inbox.
RoundCube:
SnappyMail:
Feel free to do better tests if you really want to know which is mostly faster.
The text was updated successfully, but these errors were encountered: