Community discussions

MikroTik App
 
Gergana
just joined
Topic Author
Posts: 11
Joined: Thu Aug 30, 2007 1:12 pm
Location: Bulgaria

Make my script working

Thu Aug 30, 2007 1:34 pm

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.

Apologize for my not so fluent English... :lol:
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Make my script working

Thu Aug 30, 2007 1:58 pm

scripting manual:
http://www.mikrotik.com/testdocs/ros/2. ... ipting.php

here you can find a lot of examples to learn:
http://wiki.mikrotik.com/wiki/Scripts

also 2.8 manual has some examples, these scripts should work on 2.9 :
http://www.mikrotik.com/testdocs/ros/2. ... pting1.php
 
leonj
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Thu Jun 22, 2006 4:23 pm
Location: South Africa
Contact:

Re: Make my script working

Fri Aug 31, 2007 5:55 pm

The 'server' part in the script is the IP of the SMTP server through wich you can send mail.

Regards
Leon
 
Gergana
just joined
Topic Author
Posts: 11
Joined: Thu Aug 30, 2007 1:12 pm
Location: Bulgaria

Re: Make my script working

Sat Sep 01, 2007 10:06 am

Is this mean that I have to add google mail SMTP and POP3 server and shoul it be a IP address?
 
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: Make my script working

Sun Sep 09, 2007 1:52 am

Is this mean that I have to add google mail SMTP and POP3 server and shoul it be a IP address?

Hi Gergana

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.

Hope the info was useful.

Who is online

Users browsing this forum: No registered users and 23 guests