Skip to content

Commit

Permalink
Updated regex to make the ending doubled dot optional while keeping
Browse files Browse the repository at this point in the history
support for IPv6 IP addresses. Updated / added log examples.
  • Loading branch information
iasdeoupxe committed Aug 23, 2019
1 parent fabda1b commit 4cb0cc7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions decoders/0220-postfix_decoders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@
<!--
- Will extract the srcip
- Examples:
- postfix/smtpd[32297]: NOQUEUE: reject: RCPT from unknown[213.255.237.245]: 554
- May 08 08:26:55 mail postfix/smtpd[32297]: NOQUEUE: reject: RCPT from unknown[213.255.237.245]: 554
<ce101@ce.metu.edu.tr>: Relay access denied; from=<kryonomm@yahoo.com>
to=<e10445@jubiipost.dk> proto=SMTP helo=<SM01.net>
- postfix/smtpd[472]: warning: 199.249.24.179.list.dsbl.org: RBL lookup error: Host or domain name not found. Name service error for name=199.249.24.179.list.dsbl.org type=A: Host not found, try again
- postfix/smtpd[5268]: warning: 89.248.162.178: hostname no-reverse-dns-configured.com verification failed: Name or service not known
- postfix/master[1741]: warning: process /usr/libexec/postfix/cleanup pid 27541 exit status 1
- postfix/smtpd[32655]: warning: Illegal address syntax from unknown[157.122.148.252] in MAIL command: <adgjlo@78.41.116.116>
- postfix/smtpd[32655]: too many errors after RCPT from unknown[157.122.148.252]
- May 8 08:26:55 mail postfix/smtpd[27712]: NOQUEUE: reject: MAIL from localhost[127.0.0.1]: 452 Insufficient system storage
- May 8 08:26:55 mail postfix/postscreen[22055]: NOQUEUE: reject: RCPT from [157.122.148.242]:47407: 550 5.7.1 Service unavailable...
- May 08 08:26:55 mail postfix/smtpd[472]: warning: 199.249.24.179.list.dsbl.org: RBL lookup error: Host or domain name not found. Name service error for name=199.249.24.179.list.dsbl.org type=A: Host not found, try again
- May 08 08:26:55 mail postfix/smtpd[5268]: warning: 89.248.162.178: hostname no-reverse-dns-configured.com verification failed: Name or service not known
- May 08 08:26:55 mail postfix/master[1741]: warning: process /usr/libexec/postfix/cleanup pid 27541 exit status 1
- May 08 08:26:55 mail postfix/smtpd[32655]: warning: Illegal address syntax from unknown[157.122.148.252] in MAIL command: <adgjlo@78.41.116.116>
- May 08 08:26:55 mail postfix/smtpd[32655]: too many errors after RCPT from unknown[157.122.148.252]
- May 08 08:26:55 mail postfix/smtpd[27712]: NOQUEUE: reject: MAIL from localhost[127.0.0.1]: 452 Insufficient system storage
- May 08 08:26:55 mail postfix/postscreen[22055]: NOQUEUE: reject: RCPT from [157.122.148.242]:47407: 550 5.7.1 Service unavailable...
- May 08 08:26:55 mail postfix/smtpd[27266]: warning: hostname other.host does not resolve to address 1.2.3.4: no address associated with name
- May 08 08:26:55 mail postfix/smtpd[27266]: warning: hostname other.host does not resolve to address 1.2.3.4
-->

<decoder name="postfix">
Expand All @@ -46,6 +48,6 @@
<use_own_name>true</use_own_name>
<parent>postfix</parent>
<prematch>^warning:</prematch>
<regex>^warning: (\S+):|warning: Illegal address syntax from unknown[(\S+)]|warning: hostname \S+ does not resolve to address (\S+)</regex>
<regex>^warning: (\S+):|warning: Illegal address syntax from unknown[(\S+)]|warning: hostname \S+ does not resolve to address (\S+): |warning: hostname \S+ does not resolve to address (\S+)</regex>
<order>srcip</order>
</decoder>

0 comments on commit 4cb0cc7

Please sign in to comment.