Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. cat /etc/fail2ban/filter.d/postfix-sasl.conf
  2. # Fail2Ban filter for postfix authentication failures
  3. #
  4.  
  5. [INCLUDES]
  6.  
  7. before = common.conf
  8.  
  9. [Definition]
  10.  
  11. _daemon = postfix(-\w+)?/(?:submission/|smtps/)?smtp[ds]
  12.  
  13. failregex = ^%(__prefix_line)swarning: [-._\w]+\[<HOST>\]: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(:[ A-Za-z0-9+/:]*={0,2})?\s*$
  14.  
  15. ignoreregex = authentication failed: Connection lost to authentication server$
  16.  
  17. [Init]
  18.  
  19. journalmatch = _SYSTEMD_UNIT=postfix.service
  20.  
  21.  
  22. # Author: Yaroslav Halchenko
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement