Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Locate spam activity

Discussion in 'E-mail Discussion' started by Ivanko#, Dec 10, 2014.

  1. Ivanko#

    Ivanko# Registered

    Joined:
    Sep 9, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi

    I am new in WHM/cPanel and I have VPS (centOS) on which i host up-to-date Wordpress sites, with up-to-date licenced theme and plugins.

    So I am total noob, with no money to pay for some system administrator or CSF i have to fight the potential spam by myself.

    I know how to locate spam activity by subject with command:
    Code:
     awk -F"T=\"" '/<=/ {print $2}' /var/log/exim_mainlog | cut -d\" -f1 | sort | uniq -c | sort -n 
    or by looking what email account was logging in more often then others with command:
    Code:
    grep -Po '(?<=A=(dovecot|courier)_(login|plain):)[[:alnum:]-_+@.]+' /var/log/exim_mainlog | sort | uniq -c | sort -n | grep -v 'service__auth__exim'
    by the most used mailing script's location:
    Code:
    grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n
    Do you have some other method of finding spam activity? Thank you very much!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Ivanko#

    Ivanko# Registered

    Joined:
    Sep 9, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thank you very much!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice