fail2ban: block postfix connections with wrong host name

revision 95cc60b8257156c6c1d4ae201af030c223dcff0f

raw

filter.d/postfix-resolve.conf

1
2
3
4
5
6
7
8
9
10
11
12
[INCLUDES]
before = common.conf
 
[Definition]
_daemon = postfix(-\w+)?/\w+(?:/smtp[ds])?
 
failregex = ^%(__prefix_line)swarning: hostname .*? does not resolve to address <HOST>: Name or service not known$
ignoreregex = 
 
[Init]
journalmatch = _SYSTEMD_UNIT=postfix.service
 
raw

mail.log

1
Apr 22 20:28:44 ahso4 postfix/submission/smtpd[1938160]: warning: hostname dsl-187-205-215-230-dyn.prod-infinitum.com.mx does not resolve to address 187.205.215.230: Name or service not known

History