Skip to content
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

Mailscanner install script needs to give Litespeed web server proper user access rights to /usr/local/CyberCP/public/mailwatch/mailscanner/temp #464

Open
hifihedgehog opened this issue Oct 20, 2020 · 0 comments

Comments

@hifihedgehog
Copy link
Contributor

hifihedgehog commented Oct 20, 2020

As it stands, Mailscanner is not configured properly in the install script with the correct web server permissions. It is stated in MailWatch's official installation requirements under the section "Install and Configure MailWatch" ->
"Checking permissions", (https://docs.mailwatch.org/install/installing.html#checking-permissions) that the web server needs ownership and read and write permissions set up for the temp web directory.

Here is the fix that I used to correct this:

chown nobody:nobody /usr/local/CyberCP/public/mailwatch/mailscanner/temp
chmod g+rw /usr/local/CyberCP/public/mailwatch/mailscanner/temp

CyberPanel's Mailscanner installer script does not add the proper permissions for the web server. I had to manually go in and add this. The need arose when adding a Maxmind license to my Mailscanner installation. The reason is Mailscanner uses this temp directory to store the Maxmind GeoLite2 database.

Before I added the permissions using those two lines above, Mailscanner would raise an error stating it could not download the Maxmind database. After I added these permissions, the web server was able to add this database file.

Possibly other functionality in Mailscanner has been directly or indirectly impacted from these missing web server permissions .

@hifihedgehog hifihedgehog changed the title Mailscanner needs to give Litespeed web server user write and read access to ..../mailscanner/temp. Mailscanner install script needs to give Litespeed web server proper user access rights to /usr/local/CyberCP/public/mailwatch/mailscanner/temp Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant