Hi Everyone
I am trying to use Netwatch to monitor a pptp connection I use between a remote NAS and my Radius Server.
The Netwatch side of things works, but I cannot get the RB to send an email. I am trying to send an email from a domain hosted by gmail, here are the details I am using :
Server : 173.194.69.109
Port : 587
From : user@mydomain.com
User : user@mydomain.com
Password : Password to login into email
Even when I try to send a test email, nothing happens.
Does anyone have any suggestions?
Best way to troubleshoot is enable verbose logging for email.
/system logging
add topics=e-mail,debug action=memory
Then try a send and check the log. You might need to start TLS using that port.
/tool e-mail
set starttls=yes
We use a fully qualified script statement to send emails like this. We use a hosted Exchange server that requires TLS but you only need this if the mail server requires it. The other thing that most people do not understand is that the router can only send email to a mail server that can either relay the mail or allows the router to login as a user account and send email normally. The router is not a mail server.
/tool e-mail send to=user@domain.com from=router@domain.com subject=“Usage Statistics for $date $time” body=“$results” server=[:resolve smtp.office365.com] user=router@domain.com password=$Password tls=yes port=587
Thank you GeekPatrolMiller, the script works! I just changed the smtp server to smtp.gmail.com.