SPAM Email getting sent through default email ( I think )

mlong2001

Member
Feb 22, 2015
6
0
51
cPanel Access Level
Root Administrator
I have a site where I am fighting some SPAM emails from being sent through our server. These are clearly SPAM emails you can see that in the attached image. I need to get them stopped but what I have tried so far has not worked completely. They have however slowed down slightly but not completely.

There are no emails on the cPanel account other than the default email that I cannot turn off.

This is what I have done ...
Changed Password on the cPanel Account which then in turn changes the password on the default email account.
Made sure nobody sending emails is turned on
Made sure SMTP restriction is turned on

What else is there to do? Or what should I add to my list?
 

Attachments

Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,558
2,610
363
cPanel Access Level
Root Administrator
Hey there! Your best option would be to look through the Exim logs as outlined here:


Since your issue has already happened, you can likely just skip down to the large command of

Code:
awk '$3 ~ /^cwd/{print $3}' /var/log/exim_mainlog | sort | uniq -c | sed "s|^ *||g" | sort -nr
to parse the Exim log and see where messages are coming from. Here is an example from my personal server, although I don't have much mail activity:

Code:
# awk '$3 ~ /^cwd/{print $3}' /var/log/exim_mainlog | sort | uniq -c | sed "s|^ *||g" | sort -nr
508 cwd=/etc/csf
81 cwd=/var/spool/exim
That would at least tell you the directories that are sending email.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,558
2,610
363
cPanel Access Level
Root Administrator
Knowing the account is only half the battle. Those logs would show the exact directory the mail is being sent from, which should help you find the location of the script that is sending the message, if it is an automated script.
 

mlong2001

Member
Feb 22, 2015
6
0
51
cPanel Access Level
Root Administrator
So when I run that it gives me just the directory of the account ... not a subdirectory to go look in a folder for files / code that is sending an email. Is there another command to drill down into that?