|
|
|
@ -16,29 +16,29 @@ _port = (?::\d+)?
|
|
|
|
|
prefregex = ^%(__prefix_line)s<mdpr-<mode>> <F-CONTENT>.+</F-CONTENT>$
|
|
|
|
|
|
|
|
|
|
mdpr-normal = (?:NOQUEUE: reject:|improper command pipelining after \S+)
|
|
|
|
|
mdre-normal=^RCPT from [^[]*\[<HOST>\]<_port>: 55[04] 5\.7\.1\s
|
|
|
|
|
^RCPT from [^[]*\[<HOST>\]<_port>: 45[04] 4\.7\.1 (?:Service unavailable\b|Client host rejected: cannot find your (reverse )?hostname\b)
|
|
|
|
|
^RCPT from [^[]*\[<HOST>\]<_port>: 450 4\.7\.1 (<[^>]*>)?: Helo command rejected: Host not found\b
|
|
|
|
|
^EHLO from [^[]*\[<HOST>\]<_port>: 504 5\.5\.2 (<[^>]*>)?: Helo command rejected: need fully-qualified hostname\b
|
|
|
|
|
^VRFY from [^[]*\[<HOST>\]<_port>: 550 5\.1\.1\s
|
|
|
|
|
^RCPT from [^[]*\[<HOST>\]<_port>: 450 4\.1\.8 (<[^>]*>)?: Sender address rejected: Domain not found\b
|
|
|
|
|
^from [^[]*\[<HOST>\]:?
|
|
|
|
|
mdre-normal=^RCPT from [^[]*\[<HOST>\]%(_port)s: 55[04] 5\.7\.1\s
|
|
|
|
|
^RCPT from [^[]*\[<HOST>\]%(_port)s: 45[04] 4\.7\.1 (?:Service unavailable\b|Client host rejected: cannot find your (reverse )?hostname\b)
|
|
|
|
|
^RCPT from [^[]*\[<HOST>\]%(_port)s: 450 4\.7\.1 (<[^>]*>)?: Helo command rejected: Host not found\b
|
|
|
|
|
^EHLO from [^[]*\[<HOST>\]%(_port)s: 504 5\.5\.2 (<[^>]*>)?: Helo command rejected: need fully-qualified hostname\b
|
|
|
|
|
^VRFY from [^[]*\[<HOST>\]%(_port)s: 550 5\.1\.1\s
|
|
|
|
|
^RCPT from [^[]*\[<HOST>\]%(_port)s: 450 4\.1\.8 (<[^>]*>)?: Sender address rejected: Domain not found\b
|
|
|
|
|
^from [^[]*\[<HOST>\]%(_port)s:?
|
|
|
|
|
|
|
|
|
|
mdpr-auth = warning:
|
|
|
|
|
mdre-auth = ^[^[]*\[<HOST>\]: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed:(?! Connection lost to authentication server| Invalid authentication mechanism)
|
|
|
|
|
mdre-auth2= ^[^[]*\[<HOST>\]: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed:(?! Connection lost to authentication server)
|
|
|
|
|
mdre-auth = ^[^[]*\[<HOST>\]%(_port)s: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed:(?! Connection lost to authentication server| Invalid authentication mechanism)
|
|
|
|
|
mdre-auth2= ^[^[]*\[<HOST>\]%(_port)s: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed:(?! Connection lost to authentication server)
|
|
|
|
|
# todo: check/remove "Invalid authentication mechanism" from ignore list, if gh-1243 will get finished (see gh-1297).
|
|
|
|
|
|
|
|
|
|
# Mode "rbl" currently included in mode "normal", but if needed for jail "postfix-rbl" only:
|
|
|
|
|
mdpr-rbl = %(mdpr-normal)s
|
|
|
|
|
mdre-rbl = ^RCPT from [^[]*\[<HOST>\]: [45]54 [45]\.7\.1 Service unavailable; Client host \[\S+\] blocked\b
|
|
|
|
|
mdre-rbl = ^RCPT from [^[]*\[<HOST>\]%(_port)s: [45]54 [45]\.7\.1 Service unavailable; Client host \[\S+\] blocked\b
|
|
|
|
|
|
|
|
|
|
# Mode "rbl" currently included in mode "normal" (within 1st rule)
|
|
|
|
|
mdpr-more = %(mdpr-normal)s
|
|
|
|
|
mdre-more = %(mdre-normal)s
|
|
|
|
|
|
|
|
|
|
mdpr-ddos = lost connection after(?! DATA) [A-Z]+
|
|
|
|
|
mdre-ddos = ^from [^[]*\[<HOST>\]:?
|
|
|
|
|
mdre-ddos = ^from [^[]*\[<HOST>\]%(_port)s:?
|
|
|
|
|
|
|
|
|
|
mdpr-extra = (?:%(mdpr-auth)s|%(mdpr-normal)s)
|
|
|
|
|
mdre-extra = %(mdre-auth)s
|
|
|
|
|