Skip to main content

Spam emails being sent from my dedicated server

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! My first thought, is that our updated docs are all at docs.cpanel.net - the old "documentation.cpanel.net" site is left up for some API calls and legacy applications, but likely shouldn't be referenced for day-to-day use. I like this command - it searches the Exim logs and finds all messages sent from directories. Just be sure to ignore odd directories like /, /etc/csf (if you have that tool installed), and /var/spool/exim: awk '$3 ~ /^cwd/{print $3}' /var/log/exim_mainlog | sort | uniq -c | sed "s|^ *||g" | sort -nr
    If the spam is being sent from a user's directory, that should help you track it down, so I'd start there and see what you find! You could also search your Exim log (/var/log/exim_mainlog) directly for the "1Mox02-1oxNSl2ZkU-00qUo3" ID and see if that gives you more details about where it originated from.
    0
  • CharlesGLondon
    Hello, Thanks for the reply. I ran the code and it doesn't seem to show many emails. Sorry for some reason I can't paste command here so attaching it. exim_log search gives no result.
    0
  • cPRex Jurassic Moderator
    We may not be looking for "many" emails if you're only seeing 10-20 per day. This would only show the messages sent since the last time the Exim log was rotated - you could find how far back the log goes by running this command: head -n 1 /var/log/exim_mainlog
    as that would show the first entry in the log. I would check out some of those /web directories to see if that could be the issue.
    0
  • CharlesGLondon
    Didn't help much. What should I check for in these /home directories?
    0
  • cPRex Jurassic Moderator
    So that is letting you know that you're only getting the last day of logs. I can't say what specifically could be in the home directories as it could be anything - it only takes one malicious file or misconfigured web form to cause spam to be sent.
    0

Please sign in to leave a comment.