Browse Source

Add to postfix syslog daemon format

pull/3690/head
László Károlyi 9 months ago
parent
commit
ff701e94c3
No known key found for this signature in database
GPG Key ID: 2DCAF25E55735BFE
  1. 2
      config/filter.d/postfix.conf
  2. 2
      fail2ban/tests/files/logs/postfix

2
config/filter.d/postfix.conf

@ -10,7 +10,7 @@ before = common.conf
[Definition]
_daemon = postfix(-\w+)?/\w+(?:/smtp[ds])?
_daemon = postfix(-\w+)?/[^/\[:]+(?:/smtp[ds])?
_port = (?::\d+)?
_pref = [A-Z]{4}

2
fail2ban/tests/files/logs/postfix

@ -154,6 +154,8 @@ Jan 14 16:18:16 xxx postfix/smtpd[14933]: warning: host[192.0.2.5]: SASL CRAM-MD
# failJSON: { "time": "2005-02-10T13:26:34", "match": true , "host": "192.0.2.1" }
Feb 10 13:26:34 srv postfix/smtpd[123]: disconnect from unknown[192.0.2.1] helo=1 auth=0/1 quit=1 commands=2/3
# failJSON: { "time": "2005-02-10T13:26:34", "match": true , "host": "192.0.2.1" }
Feb 10 13:26:34 srv postfix/smtp-25/smtpd[123]: disconnect from unknown[192.0.2.1] helo=1 auth=0/1 quit=1 commands=2/3
# failJSON: { "time": "2005-02-10T13:26:34", "match": true , "host": "192.0.2.2" }
Feb 10 13:26:34 srv postfix/smtpd[123]: disconnect from unknown[192.0.2.2] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4

Loading…
Cancel
Save