I’m trying to configure Gmail smtp on RouterOS. I generated the application password in the account but it still didn’t work. I made the two configurations below:
As I was only testing the source and destination email is the same. As I said before, neither test worked. Does Gmail still work for notifications and backup?
Another doubt. In addition to the “.backup” file, can you email an encrypted “.rsc” export file?
I E-Mail a backup, Export and a Version text file every night. I addition messages extracted from the log when someone logs in or out, or a port knock sequence completes. Additionally a status message when the router boots, and results of some regular ping tests.
What version of RouterOS and winbox are you using? There is a difference in the options some combo of routeros/winbox that adds even more confusion. I suspect if you try tls=starttls and port=587 at the CLI, it should work if V7.
RouterOS version is 6.49.10. I’m testing on a CHR X86 VM, but I intend to do the same configuration on a Routerboard that has the same version of RouterOS.
The “tls=” syntax is a V7 thing — so my example was wrong… but either of these should work (assuming user= and password=<gmail_app_password> are also set):
/tool e-mail set start-tls=yes port=587
OR
/tool e-mail set start-tls=tls-only port=587
If it’s authentication error, something should show up in the log AFAIK. Also, you might also want to check your firewall filters, maybe the output traffic is dropped?
The “set address=” must be changed to “set server=”
/tool e-mail
set address=smtp.gmail.com from=“RB4011iGS+ Router” password=mypasswordhere
port=587 start-tls=yes user=userid@gmail.com
Well if you ever need me to ping your router and let you know its not available let me know LOL
Just make sure to give me a non-MT dyndns URL LOL, seems like the MT ecosystem is vulnerable to shenanigans.