Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You might also look at the results of netstat -tpan and look for incoming and outgoing connections on port 25 (the SMTP port). The -p argument to netstat will tell you which process is responsible for the connection. Note, if your server has been root compromised, netstat may not give accurate results, but it's still useful just to have a look and see what you can find.
Also, a high connection rate should be chewing a fair amount of CPU -- does top show anything out of the ordinary?
About 20% of the ports on netstat -tpan would be port 25. Is that a lot? I would expect mail and port 80 to be the highest, which they are.
There is nothing on top that uses a higher than normal amount of CPU, the normal ones there are mysql httpd etc. Although I did see "spamd" a few times.
How many total outgoing port 25 connections do you have? if this machine isn't expected to be handling a lot of mail traffic then yes, that might be a lot. It's hard to say though because no one here knows the normal mail load for the box (this is why it's important to monitor this sort of thing before there are any problems so there's a baseline to compare against).
Did you see what processes were putting out the port 25 connections? If you have had a Web application exploited it's entirely possible that an httpd process could be doing it. This is becoming increasingly common. You need to check these things and look for processes that are doing things they're not supposed to be.
And yes, definitely do ask for the mail with full headers from the site making the complaint.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.