mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-11-11 08:46:00 +01:00
Detect warning ahead of errors
This commit is contained in:
1 parent
445cd812e6
commit
c0431474c9
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user