Email tool

I just started using Mikrotik routers. I need help in using the email tool, I tried using some of the scripts, for example the one that sends backups, but it seems that it does not work, may be because I haven’t setup the email correctly.
I use gmail, so can somebody tell me how to set it up in my 433AH router board, and how to test it.
Thanks!

The big issue is not what the recipient email address is, rather what local SMTP server will you use.

So what you have to do is a two part procedure;

  1. Find out if a non SMTP Authentication SMTP server exists on your ISP network. Then get the IP of that.

  2. Then open a new terminal window in winbox and type the following;
    /tool e-mail set server=1.2.3.4 from=valid_email_address

You need a valid email address (or at least a valid domain) because your SMTP server may check this. Also 1.2.3.4 represents the IP of your local SMTP server.

Then once that’s done, you can send a test email like this;

/tool e-mail send to=you@gmail.com subject=test body=hello

Hope this helps.

I just set that script up.
Heres what works for me, I have my own email server so yours will very.

:log info “backup beginning now”
:global backupfile ([/system identity get name] . “-” . [/system clock get time])
/system backup save name=$backupfile
:log info “backup pausing for 10s”
:delay 10s
:log info “backup being emailed”
/tool e-mail send to=“user@domain.com” subject=([/system clock get date] .
" Backup") from=“router@domain.com” file=$backupfile server=mailserveriphere
:log info “backup finished”

thanks a lot guys for your help!
It worked just fine!!!

Nick, I tried the script. It creats the file OK, but when it tries to email it, i get on the log the folling error: "Error sending email: abnormal termination (timeout). The file is 1063.8 KiB.
Any idea on what can i do? ..
Thanks

File might be a little to big.
mine are around 400kb

Make sure that your email server ip in the script is right and that it doesn’t require auth.

I tried sendig a samller file and it does it all right!, so the problem must be the file size.
Thanks Nick.