I noticed a lot of attempts to “send spam” from my Nethserver 7 in my mail.log… for example May 16 23:40:37 assa postfix/anvil[30859]: statistics: max connection rate 1/60s for (smtp:187.191.101.134) at May 16 23:37:16 May 16 23:40:37 assa postfix/anvil[30859]: statistics: max connection count 1 for (smtp:187.191.101.134) at May 16 23:37:16 May 16 23:40:37 assa postfix/anvil[30859]: statistics: max cache size 1 at May 16 23:37:1
looking this in your log, I can see that it is rarely the same IP which does this log noise, and really not often…I expect about every ten minutes for the short time
ok… if you looking for a bit longer time interval (e.g. 2h or 1d) you will however often find an IP that would have been banned…
I guess the reason why the IPs don’t repeat so frequently is again that the message is only logged if the respective IP has tried to reached the limit of postfix already…
hence, I am convinced that these are brute-force attacks… (also because many of the IPs had been already reported to https://www.abuseipdb.com/)
In the maillog which I sent you are several such IPs, for example:
47.53.165.67
79.148.239.246
201.151.139.28
41.226.11.226
187.163.143.227
181.55.176.241
and much more… all these are listed in https://www.abuseipdb.com/ and were at least 3 times in the log (most of them even more than 20 times)! and the log is only about two days…!
None of these IPs has been banned by the existing jails of nethserver-fail2ban…!
Hence, I will definitely implement such a jail for my server… regardless whether that jail will be implemented in nethserver-fail2an or not…
If you will implement it, I would be happy to test it of course…!
You were completely right…!!! The jail is much too restrictive…!
it bans every IP to which one sends more than one email…!!! Hence, it is really nonsense…!
However, I would like to get rid of the spamming attempts/attacks…
Does anyone have an idea?