Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Helmo
ISPConfig 3
Commits
cd4d2170
Unverified
Commit
cd4d2170
authored
Apr 28, 2022
by
Helmo
Browse files
Add found_mx to log message
parent
2f998784
Pipeline
#11154
passed with stage
in 7 minutes and 40 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/100-monitor_domain_mx.inc.php
View file @
cd4d2170
...
...
@@ -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
);
...
...
Helmo
@helmo
mentioned in commit
d294b8cd
·
Jun 12, 2022
mentioned in commit
d294b8cd
mentioned in commit d294b8cd52357c41da015e3a88cd35570f9a9acc
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment