Hi
I am new in making mikrotik scripts and I’m having a problem. I want my mikrotik router to make backup file by himself and send it to my e-mail.I asked google to help me and find examples which makes someting similar to my needs on - http://wiki.mikrotik.com/wiki/Send_Backup_email/ but there are so many things that I’m not able to understand for example :
add name=“backup_mail” source=“system backup save name=email
\n/tool e-mail send
to="me@mydomaint.abc" from="someone@somewhere.abc" server="213.157.170.43" subject=([/system
identity get name] . " " . [/system clock get time] . " " . [/system clock get date] . "
Backup") file=email.backup” policy=ftp,reboot,read,write,policy,test
In part server which ip address I have to enter?
I have one more question. Where I can find howto for making scripts not just already written one.
You don’t need any POP3 settings for your script to work. You should use your upstream ISP’s SMTP server, and make sure your “from-address” is allowed by your ISP’s SMTP server.
Yes, you have to type in the IP address of that SMTP server.
If you want to use Google or Gmail’s SMTP server, it will not work, as GMail uses port 465 as outbound/SMTP, and needs a SSL connection.
You need a SMTP server wich doesn’t require authentication or anything fancy.
If you don’t have such a server to use, you should consider setting up 'n Linux based server, and configure it with Sendmail to deliver mail directly. There are also free Windows XP based SMTP clients you could use, but I do not advise them.