If mailman is the main reason that /usr is large, you could try leaving the binaries in place and only move the space-consuming items such as the logs, messages, and so on.
I cannot guarantee this will work even though I did test it on my own system, so you would want to create a backup for /usr/local/cpanel/3rdparty/mailman to /home or somewhere with space before you proceed:
Code:
cp -R /usr/local/cpanel/3rdparty/mailman /home/mailman.bak
After doing that, move only these directories in /usr/local/cpanel/3rdparty/mailman/ location:
archives
lists
logs
messages
Code:
mkdir /home/mailman
cd /usr/local/cpanel/3rdparty/mailman
mv archives /home/mailman
mv lists /home/mailman
mv logs /home/mailman
mv messages /home/mailman
After that, symlink them back to /usr/local/cpanel/3rdparty/mailman location:
Code:
ln -s /home/mailman/archives /usr/local/cpanel/3rdparty/mailman/archives
ln -s /home/mailman/lists /usr/local/cpanel/3rdparty/mailman/lists
ln -s /home/mailman/logs /usr/local/cpanel/3rdparty/mailman/logs
ln -s /home/mailman/messages /usr/local/cpanel/3rdparty/mailman/messages
Finally, chown for ownership to mailman:mailman:
Code:
chown -R mailman:mailman /usr/local/cpanel/3rdparty/mailman/{archives,lists,logs,messages}
If anything doesn't work properly, then you can revert to your backup copy that you ensured to make and try to figure out another option such as only moving the archives instead.