There is an easy method to find spammer php script in your home path. Directadmin logs these spammer scripts which are using phpmailer or similar things. To find this:

    1. Go to your home path
cd /home
    1. Find your log files
find ./ -type f -size +1k -name "php-mail.log"

After this find operation, you can see your log files. It means, users that have this log file are could be the potential spammer.

    1. Tailf your log file.
tailf /home/user/.php/php-mail.log


    1. You can see spammer scripts.!!
mail() on [/home/user/domains/ : eval()'d code:775]: To: -- Headers: Date: Sat, 28 Jan 2017 15:51:47 +0300 From: Flora <> Message-ID: <> X-Priority: 3 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_3f796c9fb6de893f060882897f360bea" Content-Transfer-Encoding: 8bit
    1. Remove this peace of shit.
rm /home/user/domains/

You can easiliy get rid of these spammer scripts using this method. Don’t forget to clear your mail queue after this operation.

Leave a Reply

Your email address will not be published.