Send e-mail with NetWatch tool and script - impossible MikroTik hEX S (2025, E60iUGS)

Hey, there

I am struggling with this one. I did set up the router with two ISPs, the failover working just fine. But when ISP1 or ISP2 is up or down - want to know that, so I choose the script with e-mail notification. When there`s a situation - the log file says “WAN1 is down” and the next row is red and said : not-allowed by device mode (tool/e-mail/send; line 1).

When input /system/device-mode/print in terminal, here`s what I get:

mode: home

allowed-versions: 7.13+,6.49.8+

flagged: no

flagging-enabled: yes

scheduler: no

socks: no

fetch: no

pptp: yes

l2tp: yes

bandwidth-test: no

traffic-gen: no

sniffer: no

ipsec: yes

romon: no

proxy: no

hotspot: no

smb: yes

email: no

zerotier: no

container: no

install-any-version: no

partitions: no

routerboard: no

attempt-count: 0

I suppose the bolded one is the reason why the router cannot send the e-mail. Is it true, that this model just do not support this option at all, or I just messed the things up? I did update with 7.20.4 today.

Thanks in advance.

p.s. the same script runs just fine in my older Mikrotik RB951Ui-2HnD router.

Yes that was changed in newer RouterOS

Open terminal and enter:

/system/devicemode update email=yes

Then turn the device off and on (not “reboot” in the menu, power off-on).

After that it will be possible to send email again.

This is the right and full syntax, paste this on terminal and (press mode) or (pres reset) or (remove the power without shutdown) within 1 day.
Do not simply reboot, is useless.

/system device-mode update activation-timeout=1d mode=advanced flagged=no flagging-enabled=yes \
    bandwidth-test=yes container=no email=yes fetch=yes hotspot=no ipsec=yes l2tp=yes pptp=no \
    proxy=no romon=yes scheduler=yes smb=no sniffer=yes socks=no traffic-gen=no zerotier=no \
    install-any-version=no partitions=yes routerboard=yes authorized-public-key-hash=""
1 Like

This do not work... contain one error...

Yes,

the correct one is

/system/device-mode update email=yes

Yes, that's why I put the right and full syntax in the previous post...
Because besides email, that's not the only thing that doesn't work...

Thanks so much. It works.

I didn`t noticed that the router has 2 buttons - Reset and Mode. Now it working in advanced mode, and everything is OK.