nothing changed on my router that i am aware of but regular emails sent from RB2011 (6.40.9) via gmail no longer go out, they give a time out error.
it has been working fine for over a year.
I dont use the gmail account for anything else, so I dont log in to it. but when troubleshooting this issue I logged in and Google asked me security questions
I then had to set it to use less secure apps. but so far nothing is working to get it to work. I wondered if the ip address has changed since we cannot use urls in the mikrotik.
edit: this same account works fine from a PRTG server to email out of gmail using the url and same account and password so seems to be something with the Mikrotik settings. maybe ip address or lack of SSL?
any thoughts appreciated
here is my code, it was working but I now I just get a timeout error with no further info in the logs.
/tool e-mail
set address=173.194.77.108 from=myaddress@gmail.com password=\
"laaadeeeda" port=587 start-tls=yes user=myaddress@gmail.com
smtp.gmail.com resolves to another IP (173.194.79.108, depending on location and used dns service). Just set hostname as address and you should be fine.
I am curious why this of all places does not make use of the DNS and URL option, since smtp.gmail.com is not a permanent/single ip address. Surely it would be of benefit and make sense to have URL option in the email configuration, why would it be detrimental? there must be some reason behind it.
This is a perfect example of how it should not be done. This will resolve smtp.gmail.com only once (on config update), fix the ip and further dns updates from Gmail will go unnoticed.
Well technically it’s an URI or in this case the subset, URN. Here it just happens to also be an URN that is a FQDN. A FQDN and an IP address is nothing more than a URI and without a method of transport list when used (http://, ftp://, etc) it is considered an URN, the moment the transport method is added it is considered to be an URL. So to recap:
forum.mikrotik.com <<-- A FQDN that is in URN format http://forum.mikrotik.com <<-- A FQDN that is in URL format
192.168.92.12 <<-- IP address, URN format
tftp://192.168.92.12 <<-- IP address, URL format.
All four of those are URIs, two of them use FQDNs. Try being precise, everybody will understand you better.
@Samot: in case you missed the point of solution of OPs problem: when setting up tool mail, one has to use specifically FQDN and not IP. Both are, per your explanation, URNs … the first one solves problem and other does not.