The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Locate spam activity

Discussion in 'E-mail Discussions' 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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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