mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
Detect warning ahead of errors
This commit is contained in:
parent
445cd812e6
commit
c0431474c9
@ -106,11 +106,11 @@ detect_syslog_error() {
|
||||
/status=(bounced|deferred|undeliverable)/ { exit 1 }
|
||||
/warning:/ && /spamhaus\.org: RBL lookup error:/ { exit 2 }
|
||||
!/postfix\/qmgr/ && /warning:/ { exit 1 }
|
||||
/named\[\d+\]:.* receive error: .*: connection reset/ { exit 2 }
|
||||
/(fatal|reject|error):/ { exit 1 }
|
||||
/Error in / { exit 1 }
|
||||
/Exception on / { exit 1 }
|
||||
/named\[\d+\]:.* verify failed/ { exit 1 }
|
||||
/named\[\d+\]:.* receive error: .*: connection reset/ { exit 2 }
|
||||
' \
|
||||
>>$TEST_OF 2>&1 <<< "$line"
|
||||
if [ $? -eq 1 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user