diff --git a/bundles/postfix/metadata.py b/bundles/postfix/metadata.py index f5850b0..ffdf6f6 100644 --- a/bundles/postfix/metadata.py +++ b/bundles/postfix/metadata.py @@ -100,8 +100,12 @@ def iptables(metadata): 'icinga2_api/postfix/services', ) def icinga2(metadata): - services = {} + if metadata.get('postfix/relayhost', ''): + # The system does not send mail on its own. There is no point in + # checking it for any listings. + return {} + services = {} for ip_type in repo.libs.tools.resolve_identifier(repo, node.name).values(): for ip in ip_type: if not ip.is_private: