mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
sms-forward: use $MailServerIsUp
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
:global Identity;
|
||||
|
||||
:global SendNotification;
|
||||
:global MailServerIsUp;
|
||||
|
||||
# check mail server
|
||||
:if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up") do={
|
||||
:if ($MailServerIsUp = false) do={
|
||||
:log warning "Mail server is not up.";
|
||||
:error "Warning: See log for details.";
|
||||
}
|
||||
|
Reference in New Issue
Block a user