• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1734
  • Last Modified:

mikrotik email

I have a backup i want to email to me weekly. the backup works perfectly but when the sripts tries to email me it gets cannot connect to the server. I sent a test email from the email tools and it came through. here are the settings in my email tool. I am using gmail so the port has to be 587 and tls has to be used.

      port: 587
  starttls: yes
      from: mikrotik@coffeyville.edu
      user: mikrotik@coffeyville.edu
  password: #########

Here is my script:

: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="jeremyr@coffeyville.edu" subject=([/system identity get name] . \
" Backup") from=mikrotik@coffeyville.edu file=$backupfile server=
:log info "backup finished"

Open in new window

I have done this before but not using gmail. I have googled the issue and found several sites where they have addressed the issue but nothing is working for me. any ideas would be greatly appreciated.
1 Solution
CCC-RavensAuthor Commented:
I found my problem i had a server ip I didn't need (server= removed that and all is well!

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now