This question it's diferent to How do I deal with a compromised server?
Obviously the server has a security commitment. But this question presents some specific and not generic issues, as generic and very obvious are those of the post which is accused of being a duplicate.
The special difference is that a series of data is provided, which refers to a specific question: sending mail if you use the sendmail system, a contribution of data regarding how the use of the server was detected for the mail, and The suspicions of how it is done.
If you want to mark this as a duplicate, then 99% of StackOverflow and its variants is a duplicate.
Affair:
On last day one of my machines is involved on campaign of sending spam with subject "Incomming voicemail" Supposedly sent by WhatsApp.
I know this beacuse my provideer detect spam sending of my server. Oops. My server use Exim, and ASSP how anti-spam system.
Well, my provider send me some examples of spam.
Destination IP: 74.125.129.27 - Message-ID: 7eE1c2268c4.8E2eBB6d3b915f3dc69aacA1E36@fes.de - Spam score: 600
Destination IP: 74.125.129.27 - Message-ID: 5C6e3Cf89a.9E98A6E9af61F2C6aC3a214@frfsa.org - Spam score: 600
Destination IP: 74.125.129.27 - Message-ID: 9e2E3aA2EDd54C5AD52ae1.C23DC3e9faD3@clayton.com - Spam score: 600
Destination IP: 74.125.129.27 - Message-ID: Fd7521FAf5BC98C87.3BacFaAe@wapi.com - Spam score: 300
Destination IP: 74.125.129.27 - Message-ID: a87fa6d2Cb4Ab42A9f3e54859a84A8f152b6cc@masapon.net - Spam score: 600
On my server there is no evidence of such submissions. We talk about the exim logs and the ASSP logs, and we're talking about looking only at the destination domain.
To analyze the problem, create a script to create a dump with tcpdump on the port 25 traffic in order to verify and analyze if it was true that my provider was detecting those submissions.
When I analyze the traffic in the next suspension of traffic, I returned to find nothing in the logs but my surprise when analyzing with Wireshark the pcap file of the temporary space sent to the sending of spam, I found that all the evidence was there.
I do not understand how it is possible to send mail without it passing through the ASSP and Exim logs, unless you are using a program that does telnet?
An error or lack of configuration in ASSP or Exim?
On wireshark
220 SNT004-MC4F14.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.microsoft.com/en-us/anti-spam.mspx. Fri, 17 Feb 2017 16:51:25 -0800
HELO srv108.tamainut.net
250 SNT004-MC4F14.hotmail.com (3.22.0.27) Hello [176.31.31.233]
MAIL FROM: <davidiqwq@clayton.com>
250 davidiqwq@clayton.com....Sender OK
RCPT TO: <rdlord@msn.com>
550 Requested action not taken: mailbox unavailable