Community discussions

MikroTik App
 
trevorlc1234
just joined
Topic Author
Posts: 19
Joined: Tue May 25, 2010 8:46 am

SMTP via SSL/TLS to email router system backup

Thu Jun 03, 2010 6:32 am

I use to be able to have my router send email backups to me via a script
/system backup save name=([/system identity get name] . "-System-" . \
[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]); \
/tool e-mail send to="support@xyz.com" subject=([/system identity get name] . " System Backup " . \
[/system clock get date]) file=([/system identity get name] . "-System-" . [:pick [/system clock get date] 7 11] . \
[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".backup"); :delay 10; \
/file rem [/file find name=([/system identity get name] . "-System-" . [:pick [/system clock get date] 7 11] . \
[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".backup")]; \
:log info ("System Backup emailed at " . [/sys cl get time] . " " . [/sys cl get date])
Since my uplink provider has blocked all traffic to smtp port 25 now, my router no long can send emails. I now send email via my PC's email client to smtp.xyz.com and have my port set to 465 SSL/TLS

What would I adjust in my RD433AH or in my script to allow it to send email via this method?
Any help would be greatly appreciated
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: SMTP via SSL/TLS to email router system backup

Thu Jun 03, 2010 10:22 am

change settings under /tool e-mail

adjust settings for server, where you set up ip address and port number of server
and add for send command tls=yes

Who is online

Users browsing this forum: Huy0880 and 131 guests