Link to home
Start Free TrialLog in
Avatar of CCC-Ravens
CCC-Ravens

asked on

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.

 address: 173.194.77.108
      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=1.3.3.7
: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.
ASKER CERTIFIED SOLUTION
Avatar of CCC-Ravens
CCC-Ravens

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial