Mikrotik with Gmail Stopped working

I am using Mikrtoik 5.26 at various branches, and have configured gmail account which sends me mikrotik backup and other alerts daily. It was working fine from past few months BUT from 23rd July, it have stopped sending me emails, and seeing errors in logs like

error sending e-mail : invalid FROM address

My email settings are as follows …

/tool e-mail
set address=173.194.66.108 from=mygmailid@gmail.com password=mygmailpassword port=587 starttls=yes user=mygmailid

I am using following command for test sending email

/tool e-mail send server=173.194.66.108 port=587  user=mygmailid password=mygmailpassword to
=myinbox@hotmail.com subject=test body=test from=mygmailid@gmail.com tls=yes

in RouterOS v6.17 this command works fine:

[admin@normis] > /tool e-mail send server=173.194.66.108 port=587  user=mygmailid password=mygmailpassword to=myinbox@hotmail.com subject=test body=test from=mygmailid@gmail.com start-tls=yes

(I am using “start-tls” because syntax is different in v6.17)

So maybe time to upgrade?

So are you saying that now i cannot send email using gmail id in mikrotik 5.x ? Do I have to upgrade must ?

I can’t explain why this command fails in v5, but I can say for sure that it works in v6.17.
So logically if you want it to work, upgrade is needed. Upgrading is free and will bring other benefits, including technical support.

Hmm then I must ask for the confirmation before upgrade, as there are so may RB’s with 5.26.

Is Gmail mail send support not working with 5.26 ?

Can other members confirm this?

First of all, consider to upgrade to 6.17.

Where are the quotas?

5.26:

/tool e-mail
set address=173.194.66.108 port=587 > starttls> =yes user=“mygmailid” password=“mygmailpassword” from=“My GMail ID <> mygmailid@gmail.com> >”

/tool e-mail
send server=173.194.66.108 port=587 > tls> =yes user=“mygmailid” password=“mygmailpassword” from=“> mygmailid@gmail.com> " to=”> myinbox@hotmail.com> " subject=“test” body=“test”

6.17:

/tool e-mail
set address=173.194.66.108 port=587 > start-tls> =yes user=“mygmailid” password=“mygmailpassword” from=“My GMail ID <> mygmailid@gmail.com> >”

/tool e-mail
send server=173.194.66.108 port=587 > start-tls> =yes user=“mygmailid” password=“mygmailpassword” from=“> mygmailid@gmail.com> " to=”> myinbox@hotmail.com> " subject=“test” body=“test”

Check if gmail want “user@gmail.com” or only “user” as user.

I’m using the same setup since ROS 5.25 (just updated to every leter version)
By the way, I have different IP for Gmail, don’t remember where i get it.

/tool e-mail
set address=173.194.77.108 from=RB@MT password=pass \
    port=587 start-tls=yes user=user@gmail.com



/tool e-mail send to=user@inbox.lv subject="test" body="email test";

P.S. Is it bug - with above config winbox Tools/Email StartTLS isn’t checked!!

I have tried every one suggestions , but no results, I still get INVALID FROM ADDRESS. It seems its picking subject as a from address, strange. If I change subject, it gives this address as invalid from address.

As showed in the image below…
log.PNG

Ok this is to confirm that after upgrade to 6.17, the problem is solved now :slight_smile:
However I am still interested if email can be send using gmail via 5.26 as i still have many rb that i cannot upgrade at a moment.

Are you read the link inside your log???

http://support.google.com/mail/bin/answer.py?answer=14257

Get to your Gmail account’s security settings and set permissions for “Less secure apps” to Enabled.

I can confirm this issue on 5.24 as well.

Is not one issue, gmail one day decide to mark as insecure all the clien who are not supporting some crypto protocols.

6.x as the new protocols, but on 5.x are not presents and for this are considered unsecure.

Simply go on gmail and change the option as I write before.

I have already checked this on my 2 gmail accounts, and both are set for ‘less secure’ settings. But still its not sending emails in 5.26

Mmmm.. some item are changed on gmail…

Hi. I have the same problem, version 5.26. I have one account gmail with two-step verification and code for only application.
Until two days ago it’s run all but from yesterday stop with error invalid FROM address.
I’ve tried all the settings you suggested, but the result is negative.
If I upgrade at version 6.17, I have to configure everything again?
Thanks.


P.S. sorry for my English.

For upgrade or update is never required reconfiguration.

Two-step verification:
https://support.google.com/a/answer/175197?hl=pl
https://productforums.google.com/forum/#!topic/gmail-pl/t9Hyej2OGsY

Hi, I have update to 6.17 and change only start-tls…
now it’s good!!!
Thanks!!!

Hi,

“Allowing less secure apps” on gmail don’t assure that the mail will be sent. Sometimes it is sent and sometimes not, I don’t know why.

Are the people here COMPLETELY SURE that upgrading to 6 solves the problem and that this is the only solution?

Anybody has had 100% success sending mails still working with 5?

Thanks,

Miquel.

PS:
Previous links appear to me in Polish. The English links that work for me are:
https://support.google.com/accounts/answer/6010255
https://www.google.com/settings/security/lesssecureapps

I have tested it that with 6.x , it send email on regular basis twice a day 9actually RB backup)

and today I tested with same old settings in 5.x , its sending email perfectly. maybe some issue for few days only ? now i m getting all 5.x rb’s backup via mail using Gmail.


strange :confused: