How to track and stop outgoing SPAM?For outgoing mail you can track it with this scriptsave file as:
spam_track.shwhile true
do
sudo lsof -i | grep smtp
sleep 5
done
run script:
sh spam_track.shIf you find that spam sender is php user than you can track this user and PHP SPAM file location with scriptsave file as:
php_spam_track.shwhile true
do
ps -aux|grep USERNAME
sleep 1
done
don't forget to replace USERNAME in script with username you think sends spam!run script:
php_spam_track.shCheck posible spam filesDownload scriptwget
http://cbl.abuseat.org/findbot.plRun scriptperl findbot.pl FOLDER_LOCATION
eg. perl findbot.pl /home/testuser1/public_html