Hi Steffan,
> Jul 22 06:10:45 server14 sendmail[30737]: k6M4AjOs030737:
> from=<admin (at mark) server14.xxx>, size=3410, class=0, nrcpts=1,
> msgid=<200607220410.k6M4Aj0W030715 (at mark) server14.xxx>, proto=ESMTP, daemon=MTA,
> relay=localhost [127.0.0.1]
It's most likely a vulnerable PHP script that is exploited to send emails.
If the script in question is still running, then there is a good chance of
catching it with the command "lsof -n |grep /home./sites". That command will
show you which files located in and under /home./sites are currently open and
being executed.
OTOH ... it could be that the script has finished running and the emails that
are still being sent out are just the ones that got stuck in your sendmail
mailqueue - for later sending.
Also check your /tmp/ directory for files owned by user "apache". The files
starting with "sess_" are usually PHP session files and should be ok. But
anything else in /tmp owned by user "apache" should be looked at in this case
where an exploit is likely.
--
With best regards,
Michael Stauber