From 69279ba34f83ae801c0f7deb7607709671ee6e5c Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 10 Apr 2021 16:50:16 +0200 Subject: [PATCH] bundles/postfix: be a bit more relaxed when checking for smtp errors --- bundles/postfix/metadata.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundles/postfix/metadata.py b/bundles/postfix/metadata.py index f54ce30..6c9820d 100644 --- a/bundles/postfix/metadata.py +++ b/bundles/postfix/metadata.py @@ -31,12 +31,16 @@ if node.has_bundle('postfixadmin'): defaults['icinga2_api']['postfix']['services'].update({ 'SMTP CONNECT': { 'check_command': 'check_smtp', + 'max_check_attempts': '5', + 'retry_interval': '3m', 'vars.notification.sms': True, }, 'SMTP SUBMISSION CONNECT': { 'check_command': 'check_smtp', - 'vars.port': '587', + 'max_check_attempts': '5', + 'retry_interval': '3m', 'vars.notification.sms': True, + 'vars.port': '587', }, }) else: