A buildup of spam and trash in user accounts can occupy several gigs worth of space. To easily remove spam and trash from your users’ accounts, you can use the following commands: Maildir/Courier-IMAP: rm -rf /home/*/mail/*/*/.spam/* rm -rf /home/*/mail/.spam/* rm -rf /home/*/mail/*/*/.Trash/cur/* rm -rf /home/*/mail/*/*/.Trash/new/* CPPOP: rm -rf /home/*/mail/*/*/spam rm -rf /home/*/mail/spam rm -rf /home/*/mail/INBOX.Trash… Continue reading Remove All Spam and Trash from Server
Month: July 2008
Unactivated License File Error
When logging into cPanel or WHM you see the following error: Unactivated License File To update the license file, run this command: /usr/local/cpanel/cpkeyclt This is assuming that the server’s IP has a valid cPanel license.
Upgrading ClamAV – cPanel
Sometimes cPanel can be late with pushing out critical updates for third-party software. At the time of this writing, cPanel’s latest release of ClamAV is 0.91 which was determined to have a major security exploit, so all users are encouraged to update to 0.92. This upgrade guide assumes that you used cPanel’s plugin installer to… Continue reading Upgrading ClamAV – cPanel
Upgrading to Perl 5.8.8 – cPanel
Perl 5.8.8 has a lot of improvements over 5.8.7, and is highly recommended for use on cPanel 11. Upgrading is simple: wget http://layer1.cpanel.net/perl588installer.tar.gz tar xfvz perl588installer.tar.gz cd perl588installer ./install
How to Change The ‘Postgres’ User Password
Log in as root su postgres psql -d template1 -U postgres alter user postgres with password ‘newpassword’; \q Then as root run ‘passwd postgres’ and reset the password there as well in order to enable the login from command line.
The [pretty much] Complete Guide to Installing ffMPEG and Audio Binaries
I know you’ve provably seen a lot of guides on how to install ffMPEG, but I’ve noticed that most of them are incomplete and don’t cover the possible issues that can arise during installation. I’ve installed ffMPEG on dozens of servers and have devised a standardized procedure on what I feel is the best way… Continue reading The [pretty much] Complete Guide to Installing ffMPEG and Audio Binaries
Creating and Installing an SPF Record
Have you ever received a bounce for spam that was sent by you…only it wasn’t sent by you? Email spoofing is one of the easiest concepts to understand for us, but the hardest to explain to end users who confuse spoofing with email hacking and hijacking. The way I explain it to our customers is… Continue reading Creating and Installing an SPF Record
Disabling Apache Server Signatures
Apache by default puts a “signature” at the end of error pages and directory listings…here is an example of what this looks like: Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5 Server at missysadmin.com Port 80 Now, some people may not want to broadcast what type of server they are running or what’s on… Continue reading Disabling Apache Server Signatures
APF “Unable to load iptables module” Error
Upon upgrading the Linux Kernel version (usually in CentOS 4.6 – 5) you may get the following error when trying to start APF: Unable to load iptables module (ipt_state), aborting. To fix this, open /etc/apf/internals/functions.apf and locate the following lines: ml ipt_state 1 ml ipt_multiport 1 And replace them with: ml xt_state ml xt_multiport Then… Continue reading APF “Unable to load iptables module” Error
Yum ‘rpmdb’ Error
To our surprise a bad yum release hosed several of our systems. While the errors varied, the common link between them was the frightful message: rpmdb: PANIC: fatal region error detected; run recovery This problem can usually be corrected by running the following commands: cd /var/lib/rpm rm -f __db* rpm –rebuilddb -vv