<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># postfix-monitor.pl
# Monitor the postfix server on this host

# Check to see if postfix is running
sub get_postfix_status
{
return { 'up' =&gt; -1 } if (!&amp;foreign_check($_[1]));
&amp;foreign_require($_[1], "postfix-lib.pl");
local %pconfig = &amp;foreign_config($_[1]);
return { 'up' =&gt; -1 } if (!-r $pconfig{'postfix_control_command'});
if (&amp;foreign_call($_[1], "is_postfix_running")) {
	return { 'up' =&gt; 1 };
	}
else {
	return { 'up' =&gt; 0 };
	}
}

sub parse_postfix_dialog
{
&amp;depends_check($_[0], "postfix");
}

1;

</pre></body></html>