Answer the question
In order to leave comments, you need to log in
Is it possible to find out which file opened an SMTP connection on an Exim server?
The hoster often blocks mail traffic on the server, after the last check it was not possible to detect any malicious scripts, it was possible to get a list of files that sent the messages from the headers - they were also checked and do not carry any threats. There was a suspicion that in addition to spam using the mail () function on the server, the server picked up something that sends spam through a third-party server.
lsof | grep smtp output:
[[email protected] ~]# lsof | grep smtp
exim 12669 exim 3u IPv6 1617849445 0t0 TCP *:smtp (LISTEN)
exim 12669 exim 4u IPv4 1617849446 0t0 TCP *:smtp (LISTEN)
exim 21248 exim 10u IPv4 1791358785 0t0 TCP domain.ru:52790->ol-in-f27.1e100.net:smtp (SYN_SENT)
exim 21957 exim 9u IPv4 1791378187 0t0 TCP domain.ru:smtp->52.175.23.137:63597 (CLOSE_WAIT)
exim 21957 exim 10u IPv4 1791378187 0t0 TCP domain.ru:smtp->52.175.23.137:63597 (CLOSE_WAIT)
[[email protected]~]# lsof | grep smtp
exim 12669 exim 3u IPv6 1617849445 0t0 TCP *:smtp (LISTEN)
exim 12669 exim 4u IPv4 1617849446 0t0 TCP *:smtp (LISTEN)
exim 25222 exim 9u IPv4 1792563905 0t0 TCP domain.ru:smtp->52.175.23.137:54652 (CLOSE_WAIT)
exim 25222 exim 10u IPv4 1792563905 0t0 TCP domain.ru:smtp->52.175.23.137:54652 (CLOSE_WAIT)
exim 25227 exim 9u IPv4 1792575077 0t0 TCP domain.ru:smtp->52.175.23.137:54046 (ESTABLISHED)
exim 25227 exim 10u IPv4 1792575077 0t0 TCP domain.ru:smtp->52.175.23.137:54046 (ESTABLISHED)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question