I have a lot of unknown authentication attempts on my mail server. How can I configure my system to drop these.
Nov 18 16:42:58 ucs-ox1 postfix/smtpd[1969]: warning: unknown[118.173.164.136]: SASL PLAIN authentication failed:
Nov 18 16:42:59 ucs-ox1 postfix/smtpd[1969]: lost connection after AUTH from unknown[118.173.164.136]
Nov 18 16:42:59 ucs-ox1 postfix/smtpd[1969]: disconnect from unknown[118.173.164.136] ehlo=2 starttls=1 auth=0/1 commands=3/4
Fail2ban would be the typical solution I think, but I haven’t tried it on UCS. There is a cool solution article that describes how you can install it, but it’s not specifically for mail services. You might need to do a bit of googling to figure that part out if you’re not already familiar with it.