Need advice to stop spam

drfunky

New member
Joined
Aug 27, 2014
Messages
3
Recently one account on my server was compromised which resulted in up to 20000 spam mails being sent per day. I have removed the vulnerable CMS and taken a number of other steps (including updates and changing the mail account passwords), but the spam still comes through. I've put in a daily limit of 200 mails so it is contained this way, but I want to stop it completely. I can't figure out what's the source of these mails? I was reading http://directadminguru.com/finding-a-spammer/ but it doesn't seems to provide a solution for me (I don't think it's a PHP script that is sending the mails).

Some maillog entries from before the daily limit:
2014-08-21 21:57:24 1XKYU7-000514-Rt <= [email protected] H=178-167-115-120.dynvpn.flex.ru ([192.168.1.4]) [178.167.115.120] P=esmtpa A=login:[email protected] S=630 [email protected] T="" from <[email protected]> for...

2014-08-21 21:58:42 1XKYVN-0005Di-P2 <= <> R=1XFdUb-0002o9-PH U=mail P=local S=3297 T="Mail delivery failed: returning message to sender" from <> for [email protected]

If I count the IP addresses like 178.167.115.120 they are usually used 500 times.

NB exim -bpc gives a count of 3532976!

So what should I do next? And what's the best way to clean the mail queue?
 
As Martynas points out, the log file entry you provide shows the email was sent from an authenticated login:
Code:
esmtpa A=login:[email protected]
so changing that ac**** password should stop it.

If you've changed the password then someone is resetting it or finding out the new password. Best to scan that user's local machine (desktop or laptop) to see if it's been compromised with a password logger or keystroke logger.

Jeff
 
I did change the passwords but this had no effect. I didn't give the new password to the user yet.

At the moment I get a notification every 10 minutes that the system load average is >12 :-/

In DA, suspending the user or suspending the mail accounts has no effect either.
 
I stopped Exim and removed the entire queue, that seems to have done the trick.
 
Back
Top