My server's been hacked EMERGENCY
I have a LAMP server running that has suddenly started trying to send out spam email. I wonder would anyone have any suggestion to help track down how this is being done.
The server itself does not listen on port 25 so it not a relay issue there. I assume it's some sort of PHP (or other) email injection especially given the sender is www-data@domain.
The problem is I'm not exactly sure where to find the problem code, would any one have any suggestions as to how best go about this? Apache and system logs are not coming up with much.
Server software is:
- Apache 2.2.14
- PHP 5.2.10
- MySQL 14.14
- Drupal 6.25
With multiple sites hosted on server.
If there is any more information I can add that might help please let me know