Ubuntu UFW script to block failed auth attempts

Posted on

I whipped this up (and it’s not sexy) to block failed authentication attempts on a few POSTFIX servers I manage.  I might use fail2ban if things get out of hand but currently the server just has UFW (Uncomplicated FireWall) that’s built into the Ubuntu OS. #!/bin/bash # Get all the authentication failures from the mail […]