How to use gmail with a MOBOTIX camera with APP Password option

Introduction

MOBOTIX cameras can send e-mails with different types of attachments:

  • Image
  • Video clip
  • Image information (JPEG comment)
  • Logs: System messages, Web Server Log, Camera Status, Entry Log
  • MxAnalytics reports: Counting corridors, Heatmaps

These e-mails can be sent out as Actions on Events or as Time-Tasks. E.g. to send an image every five minutes or to send an image when someone calls the bell button on the door station.

Setup the e-mail profile to use gmail

Pre-requisites

  • Camera must support TLS/SSL for E-Mail configuration. This is possible with P3 (x4,x5) and Mx6 models running up to date firmware versions and with the M12 running a beta firmware (3.6.*) which is available upon request to support.
  • Camera must have access to the internet and a gateway and DNS must be defined.
  • Access for less secure apps must be setup for the gmail account.

Enable less secure apps in Gmail
The following link takes you to the setting that enables access to less secure apps.

https://myaccount.google.com/lesssecureapps

Configure the gmail account in the camera

Step 1. Go to Admin Menu > E-Mail Profiles
Step 2. Set the following parameters

Step 3. Set an address in one of the profiles to Test it.

Step 4. Go to Admin Menu > Test Current Network Configuration and allow the pop-up window. You will see the results of the test in this pop-up window.

Step 5. Scroll down and test the AlarmMail profile.

Step 6. Verify the success of the test.

Conclusion

E-Mail is a widely spread communication method which is seamlessly integrated into the MOBOTIX camera. An SSL/TLS secured connection can be used to securely transfer images, recordings and logs.

Furthermore it is possible to use Gmail and other major providers.

2 Likes

I had all of our cameras set up to send alerts and pictures with a gmail business account, the other day the password on that account changed and when I went in to the cameras to change it it doesn’t work. When I do the test network settings I keep getting "Sending email failed, error #123 SMTP authentication failed (on connecting mail server).

I have gone back and follow the above instructions and still no luck

Instead of using SSL/TLS, try STARTTLS

Can we get an updated guide for the MOVE line of cameras?

I’ve been wrestling with email notification using the latest firmware (Aug 2020), and it will not work with any combination of IP, FQDN, port, SSL/not, login/pw, etc through Google’s G-Suite email relay.

The “Test” button shows consistent failure.

Dear @GridKid,
I’ve tested the lastest Move Firmware and it should work.
Are you using the same settings like this?

Yes. It still fails. Consistently.

I’ve tried every iteration of port, PW, login, and protocol. I get a consistent “send failed” every time. Something is broken.

I’ve tried setting it to the same gmail account as the login.

I’ve tried setting it to a different gmail account as the login.

I’ve whitelisted my IP address with google’s email servers (other devices on my network can send to Google’s servers without difficulty)

Doesn’t work. Every other device on my network can send to gmails servers (I specifically whitelisted my fixed IP with google to avoid problems), but nothing is getting through from the cameras.

I used exactly the settings you recommended (other than my own login/pw, of course)

Did you get it working? @GridKid

No. I cannot get any of the MOVE bullets to pass mail to the gmail servers. I’ve tried to relay mail with my personal Gmail account, and my business account. I’ve configured my Google account to allow less-secure apps, and tried every combination of server/login, recipient, and protocol… no joy.

I have several Q25 cameras in the same installation, and on the same network, and they’re relaying email alerts off-site without any problem.

And unfortunately, the logs are not very illuminating. I really wish the logging-level on the newer MOVE cameras was as informative as the older ones; it might give us an idea of why it’s failing.

The Move cameras are to totally different animal. I would stick with the IoT cameras for these type of applications.

Live and learn. Mobotix used to be my go-to for remote, low-bandwidth connections, especially solar installs. Email images were a great, low-power way to keep track of alerts, and have some redundant images stored off-site.

Well… note-to-self. Mobotix has taken a step backwards with their newest line of cameras. What a shame.

Anybody have an email setup/provider that DOES work with MOVE cameras? Am I going to have to set up an email server on-site to act as a relay? What a hassle.

Maybe I’ll just do it on a raspberry Pi, and stick it in an enclosure. At least I’d have meaningful logs, and be able to tell why it failed.

Is there / will there be any SSL/TLS firmware update for my D12?
All major mail providers require this now…

there are no major updates planned for the x2 series cameras since they have reached their End-Of-Service

There is a beta version MX3.6.0.9 available that supports SSL/TLS. Get in touch with our Support to get a copy.

When installing the MX3.6.0.9 you need to keep in mind that it is a beta version and it might not be as stable as our official releases. Also with this version ActivitySensor is not available for the camera.

Thank you, I’ll try that!

Gmail has sent out a notice that support for their “less secure” login is being discontinued, and all my Mobotix M25 and Q25 cameras have now quit sending their alarm emails. And when you use Network Test to connect, you get an Gmail error message on the log file saying something like “check in with your web browser.”

I’ve tried every imaginable configuration change, no luck. Is there an alternative email host that still supports “less secure” logins? Or is there an update to the Mobotix firmware for this purpose?

Thanks,
Tom S.

As per TomS comments, Gmail is dropping traditional SMTP authentication support, I don’t personally use Gmail for this task but have probably a few hundred customer cameras (not controlled by us) that do so am waiting for the avalanche of calls when they realise this has happened.

Asking here before I spend time on setting up a test system, does anyone know if generating ‘App Passwords’ works around this issue effectively?

Gmail announcement: https://support.google.com/accounts/answer/6010255?hl=en
App password directions: https://support.google.com/accounts/answer/185833

One of my customers has kindly tested this for us and their results are as below. Hope this might be helpful to anyone facing this issue in the future.

Successful SMTP login test from a Mobotix camera using an App Password.

Details

  1. 2-step verification enabled on Gmail account (so less secure 3rd party login option automatically disabled)
  2. 16 character App Password generated within Gmail account security settings
  3. SMTP login username: name@gmail.com, app password: XXXXXXXXXXXXXXXXX
  4. SMTP security: STARTTLS (port 25 or 587)
  5. SMTP server: smtp.gmail.com

So at this stage App Passwords could be an alternative way for the Mobotix camera to log into Gmail accounts.

The test will be on 30/5/22 when the “less secure 3rd party login” option is officially disabled by Google.

Thanks so much for this. That worked.

La prueba será el 30/5/22 cuando Google deshabilite oficialmente la opción “inicio de sesión de terceros menos seguro”.

Finalmente llego el día, y ya no puedes desactivar la verificación de 2 pasos en gmail. y tampoco usar la cuenta con aplicaciones menos seguras.

Solo lo logre con Hotmail, live, outlook.

¿Alguna metodologia para seguir usando Gmail?, ya que sabemos es mas formal que las demas cuentas.

Saludos CHILE

Hello Lexon,
The above mathod usin the APP password option for the gmail account is still valid.
Please note: The google account requires to use 2-step authentication in order to be able to set up an App Password.
Please refer to the google help article: