On 06.07.20 16:51, Robert Chalmers (Author) wrote:
That’s pretty good Jerry, thanks.

A much reduced list of bad ips

ever tried to run fail2ban?

On 6 Jul 2020, at 16:31, Jerry <postfix-u...@seibercom.net> wrote:
I was using this in a script I wrote. It seemed to work correctly.

<code snippet>
bzgrep -e auth=0/1 "/var/log/maillog" | sed 's/.*\[\([^]]*\)\].*/\1/g' | sort -V | uniq > 
"/tmp/Bad_IP.txt"
</code snippet>

you will miss any that tries multiple passwords in one session I guess...

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Micro random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...

Reply via email to