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!

Email account

Discussion in 'E-mail Discussion' started by Ivo Danic, Dec 1, 2015.

  1. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Hi,
    I got some questions, but the main is, how i know wich email account is sending spam mails, does anybody have a tutorial to check this situation?
    I want to check it from WHM.

    Thanks for all!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Hi! I saw the topic and i paid attention to the comment that has this code:

    awk '/cwd=\/home\// {print $3}' /var/log/exim_mainlog|sort|uniq -c|sort -n

    But my question is, where do i put this code? I logged in from shh and u run :

    awk '/cwd=\/home\// {print $3}' /var/log/exim_mainlog|sort|uniq -c|sort -n

    but this returns me this message: -bash: -c: command not found

    Thanks for all!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Did you access SSH as the "root" user when attempting to run the command?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Yeap! i access as the root!
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You can use the initial command, but it's not sorted so you will have to scroll through a long output and see which directories show up the most:

    Code:
    grep cwd /var/log/exim_mainlog
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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