Unverified Commit cd4d2170 authored by Helmo's avatar Helmo
Browse files

Add found_mx to log message

parent 2f998784
Pipeline #11154 passed with stage
in 7 minutes and 40 seconds
......@@ -121,9 +121,10 @@ class cronjob_monitor_domain_mx extends cronjob {
if (!in_array( $mx_ip, $smtpin_ips)) {
if ($maildomain['active'] == 'y') {
$app->log('Mail domain[' . $maildomain['domain'] . '] is active but the DNS does not match our IP.', LOGLEVEL_WARN);
$str = 'Domain is active but the DNS does not match our IP. ( points to: ' . ($first_mx ?? 'not found') . ')';
$app->log('Mail domain[' . $maildomain['domain'] . ']: ' . $str, LOGLEVEL_WARN);
$state = 'warning';
$data[$maildomain['domain']] = 'Domain is active but the DNS does not match our IP.';
$data[$maildomain['domain']] = $str;
} else {
$app->log('Good, the mail domain[' . $maildomain['domain'] . '] is not active and DNS is not pointing to us.', LOGLEVEL_DEBUG);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment