http://forum.ahosting.net/f15/how-manually-block-reject-emails-domain-exim-662.html
Category Archives: Linux Admin
cpanel check disk space and make space
Delete cPanel File Manager temp files
rm -fv /home/*/tmp/Cpanel_*
Remove cPanel update archives
/usr/local/apache.backup*
Clean up Yum files
yum clean all
Remove pure-ftp partials
locate .pureftpd-upload | xargs rm -fv
find directories larger than ‘x’mb
du -sm * | awk ‘$1 > 1000’
find files larger than 100mb
find . -type f -size +100M -print0 | xargs -0 du -chs
tmpDSK removing all files from tmpdsk except the last 6 hours
tmpwatch –all -mf 6 /tmp
Type the following command at the shell prompt to find out top 10 largest file/directories:
du -a /var | sort -n -r | head -n 10
Power MTA restart commands
service pmta restart
service pmtamc restart
Power MTA
php file infection
this will strip a text section out of all files when run the the directory
find . -name “*.php” -exec sed -i ‘s/<?php $irmsykfenq.*$soyyhllyjf-1; ?>//’ ‘{}’ \;
the blue text is your from and to, in that you should have an example of the inserted text to copy the start and the end section, kinda like
$irmsykfenq. lots of clever code here $soyyhllyjf-1;
so you run that and it removes your definers and everything in between.
Exim delete mail from specified user
exiqgrep -ir user@domain.com | xargs exim -Mrm
Yay
Postfix Commands
WordPress timing out on you when you edit a menu…
cPanel, WordPress
if you edit a menu and get a 500 or 404 and also see something like max_input_vars
limit too low.
edit your php.ini and adjust or add
max_input_vars = 5000
then restart Apache.
Oh yeah this is due to the limit on menu items php imposes on wp.
Other factors round this issue were a messy htaccess file and also permalinks, so check that too.
cpanel, horde, Login failed because your username or password was entered incorrectly.
When trying to access Horde it shows an error below when you click on Log In. Even if you use the correct login details it does not allows you to enter.
‘Message Login failed because your username or password was entered incorrectly.’
This is because due to incorrect permissions on the files & directories on etc & mail directory under the account. Login to your server via SSH & execute commands below.
/scripts/mailperm
Once the updates are completed, try accessing the Horde. It should allow you to enter.
Message Login failed because your username or password was entered incorrectly.
cPanel WordPress 500ing when you just enabled password protected folder
It’s probably the .htaccess, why, i dunno but that what i found when i looked.
lots of reasons are out there, use the force.
WordPress, TempURL, cPanel, Fast CGI, CENTOS 6.5
Fast CGI does not like temp URL’s in cPanel.
So a domain just for the temp url was created (on another system) and an A record set as such…
domainyouneedtempurlfor.com.tempdomainofyourchoice.com
BINGO