email smtp server address check

My first script for a pretty simple stuff.

My smtp server is using a FQDN name and not an ip address. Even if I’m sure they are not changing their IP daily, it may happen. Then here’s just a small script to check and update the ip address in case it has changed.

:local ipsmtp
:set ipsmtp [:resolve smtp.mymailserver.net]
if ($ipsmtp != [/tool e-mail get address]) do={ /tool e-mail set address=$ipsmtp}

Of course replace smtp.mymailserver.net by your smtp FQDN and set the scheduler to run this script every few hours.

Thank you, I will :slight_smile:

But it would be nice if that was built in, and its very easy to add it.