For about 1 month I think that one of the (few) servers that I have up and running is under a probable DDos attack, or at least that's what I understand.
Through the smeadmin contrib I notice many connections that remain in "CLOSE_WAIT" status from different IP addresses.
I tried to install fail2ban and geoip and I'm gradually blocking the nations that "pain in the ass" but I haven't managed to solve it yet, probably due to my incompetence.
The problem occurs on clients (outlook) with an exasperating slowness in sending messages; sometimes after a while it works, sometimes not. I think it's due to the fact that there are 40 maximum simultaneous connections for qpsmtpd and, remaining in "CLOSE_WAIT" status for the 40 slots, if one of the slots doesn't "free up" first I obviously can't send.
Fail2ban works (I have jailed IPs), geoip works (from qpsmtpd logs I see that "211.57. 111.99 Unknown check_badcountries 901 Country is on Blocked List msg denied before queued"), but I still have a ton of CLOSE_WAIT.
I could move the server to another IP of another operator to try to solve it that way but it doesn't seem like a good solution, and increasing the value of 40 simultaneous slots doesn't seem like a valid solution either, does anyone have an idea of how I could proceed? I don't know where to turn anymore and I can't think of any other ideas.
TIA