diff --git a/lib/checks.py b/lib/checks.py index c7bfc6a41f497c9db27af2ee91b78d41ea8e15bb..d9f7f1bb26c99c46f6b7ea10363f41f5e586625a 100644 --- a/lib/checks.py +++ b/lib/checks.py @@ -208,7 +208,8 @@ class CheckSMTP(Check): def build_command(self): command = ['/usr/lib/nagios/plugins/check_smtp', '-H', self.addr, - '-f', self._options.get('from', 'nonexisting@localhost'), + '-f', self._options.get('from_addr', + 'picomon@localhost.local'), '-t', '2'] if 'command' in self._options: command += ['-C', str(self._options['command'])]