Squirrelmail Customizations:
The following modifications will allow an end user to circumvent cPanel's normal Squirrelmail installation
procedure and/or add additional files and modifications to the Squirrelmail sources.
The update-squirrelmail script will check for the existence of /var/cpanel/squirrelmail/squirrelmail-local.tar.gz.
If this archive exists, then it will be used in lieu of cPanel's provided Squirrelmail sources.
The update-squirrelmail script will check for the existence of /var/cpanel/squirrelmail/overlay.tar.gz. If
detected, the tarball will be extracted into /usr/local/cpanel/base/3rdparty. This hook allows and end
user to include an archive of local modifications and additions to include in the Squirrelmail installation.
If the file /var/cpanel/squirrelmail/install exists and is executable, then the script will be executed and
update-squirrelmail will exit immediately. This execution will bypass cPanel's manipulation of the
configuration files. If the file exists and is not executable, then the file will be printed to STDOUT.
The normal cPanel configuration file manipulation will immediately follow.
This will make it so the cPanel webmail update script thinks we did a local install, which will cause it to not update it.touch /var/cpanel/squirrelmail/install
chmod 0777 touch /var/cpanel/squirrelmail/install
chattr +i /var/cpanel/squirrelmail/install
[email protected][~]# /usr/local/cpanel/bin/update-squirrelmail
Updating Squirrelmail 1.4.9a
patching file src/read_body.php
Done (local install)
That looks like you have other problems. Perhaps the /var partition is mounted read-only?Sorry to dig up this old thread but when i do the following as indicated above I get permission denied errors.
[[email protected] ~]# touch /var/cpanel/squirrelmail/install
touch: cannot touch `/var/cpanel/squirrelmail/install': Permission denied
[[email protected] ~]# chmod 0777 touch /var/cpanel/squirrelmail/install
chmod: cannot access `touch': No such file or directory
chmod: changing permissions of `/var/cpanel/squirrelmail/install': Operation not permitted
How can I fix this?
Hi guys,This is a old topic, but I figure I'd complete it:
To prevent squirrelmail from updating itself,
This will make it so the cPanel webmail update script thinks we did a local install, which will cause it to not update it.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
T | A method of preventing spam | 4 | ||
![]() |
Preventing user password change in webmail | 2 | ||
![]() |
Is cPanel preventing another script on server from sending mail? | 1 | ||
R | Preventing cPanel users from spamming | 3 | ||
M | Preventing cPanel from overwriting custom Exim ACL | 2 |