How to configure email?
-
@jflores13 said in How to configure email?:
For some reason now it does try to log in but the error has to do with Google not allowing access to the application because it "doesn't meet the security requirements".
Can you post the full error output please.
Mango does work fine with Google, personally I use port 587 and TLS. It depends on your account though - https://support.google.com/a/answer/176600?hl=en
-
I just managed to solve the rest of the issue. Being logged in, I clicked the profile pic, then Google Account/Security, then on the section of "Less secure app access" and turned that from "Don't allow" (recommended) to "Allow" (not recommended), and now it worked.
Thanks for your replies, Jared.
-
Interesting, I can't even see that setting. I am using a G-Suite account with 2FA turned on so I have a "device password" configured for Mango.
edit. It does seem like it is dependent on your G-Suite admin allowing you to see the "less secure access" setting and with 2FA enabled its different again - https://devanswers.co/allow-less-secure-apps-access-gmail-account/
-
@jared-wiltshire I see.
Why would Google say that Mango doesn't use modern security standards and, as a result, is "easier to break into"?
And so, if I used 2 Step Verification I'd need to create an app password for mango and then use that one as the email account's password? -
@jflores13 said in How to configure email?:
Why would Google say that Mango doesn't use modern security standards and, as a result, is "easier to break into"?
I have no idea. They don't give any technical details on their help page - https://support.google.com/accounts/answer/6010255?hl=en
All I know is I can use TLS to port 587 on smtp.gmail.com and it works fine without me changing any "Less secure app access" settings. I use 2FA and a device password.
@jflores13 said in How to configure email?:
And so, if I used 2 Step Verification I'd need to create an app password for mango and then use that one as the email account's password?
Correct.
-
@jared-wiltshire Alright, I will try to enable the 2FA and use that port instead. Thanks again!
-
We are encountering a similar issue with emailing reports on Mango3.6.3
It is a gmail account, all settings appear to be correct (TLS, SMTP 587,, less secure apps allowed, IMAP enabled) When sending a test email) We keep getting an error but are not seeing anything on the log to further debug this.
INFO 2020-02-17T12:28:48,166 (com.serotonin.m2m2.Main.main:105) - Starting Mango 3.6.3 with Schema Version: 28 INFO 2020-02-17T12:28:48,756 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'asciiFile', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,766 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'BACnet', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,770 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'controlcore', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,773 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'dashboardDesigner', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,774 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: C:\Mango\web\modules\dashboardDesigner\web\dox\manifest.xml INFO 2020-02-17T12:28:48,776 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'dataFile', v3.6.1 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,784 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'dataImport', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,786 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'deviceConfig', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,788 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: C:\Mango\web\modules\deviceConfig\web\dox\manifest.xml INFO 2020-02-17T12:28:48,789 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'dnp3', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,793 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'egauge', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,796 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'envcands', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,798 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'excelReports', v3.6.1 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,808 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'graphicalViews', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,831 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'Haystack', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,834 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'http', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,838 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'jsonFileImport', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,840 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'log4jDS', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,843 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'log4JReset', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,844 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'loggingConsole', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,846 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'maintenanceEvents', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,849 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'mangoApi', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,853 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'mangoUI', v3.6.2 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,854 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: C:\Mango\web\modules\mangoUI\web\dox\manifest.xml INFO 2020-02-17T12:28:48,874 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'mbus', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,877 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'meta', v3.6.1 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,880 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'modbus', v3.6.2 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,883 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'onewire', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,886 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'opcda', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,887 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'pakbus', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,891 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'pointLinks', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,895 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'pop3', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,898 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'reports', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,902 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'scheduledEvents', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,905 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'scripting', v3.6.2 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,907 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'serial', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,910 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'snmp', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,913 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'sqlConsole', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,915 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'sqlds', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,918 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'ssh', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,920 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'sstGlobalScripts', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,923 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'sstGraphics', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,933 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'TCPIP', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,936 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'templateConfig', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,939 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'twilio', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,942 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'virtualDS', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,944 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'vmstat', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,948 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'watchlists', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:48,954 (com.serotonin.m2m2.Main.loadModules:586) - Loading module 'internal', v3.6.0 by Infinite Automation Systems Inc. INFO 2020-02-17T12:28:50,584 (com.serotonin.m2m2.Lifecycle.loadLic:611) - Checking license... INFO 2020-02-17T12:28:50,658 (com.serotonin.m2m2.db.H2Proxy.initializeImpl:61) - Initializing H2 connection manager INFO 2020-02-17T12:28:53,493 (com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade:38) - Starting instance with core version 3.6.3, schema v28 INFO 2020-02-17T12:28:55,306 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:125) - Spring context 'runtimeContext' refreshed: org.springframework.context.annotation.AnnotationConfigApplicationContext@6e3ecf5c INFO 2020-02-17T12:28:55,309 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextStarted:139) - Spring context 'runtimeContext' started: org.springframework.context.annotation.AnnotationConfigApplicationContext@6e3ecf5c INFO 2020-02-17T12:28:55,437 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:176) - Starting 0 Publishers... INFO 2020-02-17T12:28:55,438 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:188) - 0 Publisher's started in 2ms WARN 2020-02-17T12:28:55,885 (org.eclipse.jetty.webapp.StandardDescriptorProcessor.addServletMapping:1220) - Duplicate mapping from *.jsp to jsp INFO 2020-02-17T12:28:56,134 (com.serotonin.m2m2.web.M2M2ContextListener.contextInitialized:32) - Mango Automation context starting INFO 2020-02-17T12:28:56,134 (com.serotonin.m2m2.web.M2M2ContextListener.contextInitialized:40) - Mango Automation context started INFO 2020-02-17T12:28:57,123 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:125) - Spring context 'rootWebContext' refreshed: Root WebApplicationContext INFO 2020-02-17T12:28:57,643 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:125) - Spring context 'jspDispatcherContext' refreshed: WebApplicationContext for namespace 'JSP_DISPATCHER-servlet' INFO 2020-02-17T12:28:57,794 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:125) - Spring context 'rootRestDispatcherContext' refreshed: WebApplicationContext for namespace 'ROOT_REST_DISPATCHER-servlet' INFO 2020-02-17T12:28:58,731 (com.serotonin.m2m2.web.mvc.rest.v1.BacnetDiscoveryRestController.<init>:54) - Creating Discovery Rest Controller INFO 2020-02-17T12:28:59,254 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:125) - Spring context 'restV1DispatcherContext' refreshed: WebApplicationContext for namespace 'restV1DispatcherServlet-servlet' INFO 2020-02-17T12:29:01,348 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:125) - Spring context 'restV2DispatcherContext' refreshed: WebApplicationContext for namespace 'restV2DispatcherServlet-servlet' INFO 2020-02-17T12:29:01,349 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: EnvCanEditDwr INFO 2020-02-17T12:29:01,350 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: HttpDataSourceDwr INFO 2020-02-17T12:29:01,351 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: TcpIpDataSourceEditDwr INFO 2020-02-17T12:29:01,352 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: Pop3EditDwr INFO 2020-02-17T12:29:01,353 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: HaystackDataSourceDwr INFO 2020-02-17T12:29:01,353 (com.serotonin.m2m2.Lifecycle.configureDwr:1267) - Duplicate definition of DWR class ignored: com.serotonin.m2m2.http.dwr.HttpDataSourceDwr INFO 2020-02-17T12:29:01,354 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: DataFileDataSourceEditDwr INFO 2020-02-17T12:29:01,356 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: OPCDAEditDwr INFO 2020-02-17T12:29:01,358 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: BACnetMSTPEditDwr INFO 2020-02-17T12:29:01,360 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: PakBusEditDwr INFO 2020-02-17T12:29:01,361 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: MBusEditDwr INFO 2020-02-17T12:29:01,361 (com.serotonin.m2m2.Lifecycle.configureDwr:1267) - Duplicate definition of DWR class ignored: com.infiniteautomation.mango.pakbus.dwr.PakBusEditDwr INFO 2020-02-17T12:29:01,362 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: SNMPEditDwr INFO 2020-02-17T12:29:01,363 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: InternalEditDwr INFO 2020-02-17T12:29:01,364 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: SerialEditDwr INFO 2020-02-17T12:29:01,365 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: MetaEditDwr INFO 2020-02-17T12:29:01,367 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: DnpEditDwr INFO 2020-02-17T12:29:01,368 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: ModbusEditDwr INFO 2020-02-17T12:29:01,369 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: Log4jEditDwr INFO 2020-02-17T12:29:01,370 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: ScriptingEditDwr INFO 2020-02-17T12:29:01,372 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: SshDataSourceEditDwr INFO 2020-02-17T12:29:01,373 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: AsciiFileEditDwr INFO 2020-02-17T12:29:01,373 (com.serotonin.m2m2.Lifecycle.configureDwr:1267) - Duplicate definition of DWR class ignored: com.serotonin.m2m2.http.dwr.HttpDataSourceDwr INFO 2020-02-17T12:29:01,375 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: OneWireEditDwr INFO 2020-02-17T12:29:01,376 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: SqlEditDwr INFO 2020-02-17T12:29:01,377 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: VMStatEditDwr INFO 2020-02-17T12:29:01,378 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: EgaugeDataSourceDwr INFO 2020-02-17T12:29:01,378 (com.serotonin.m2m2.Lifecycle.configureDwr:1267) - Duplicate definition of DWR class ignored: com.serotonin.m2m2.http.dwr.HttpDataSourceDwr INFO 2020-02-17T12:29:01,380 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: BACnetIPEditDwr INFO 2020-02-17T12:29:01,380 (com.serotonin.m2m2.Lifecycle.configureDwr:1267) - Duplicate definition of DWR class ignored: br.org.scadabr.dnp3.dwr.DnpEditDwr INFO 2020-02-17T12:29:01,381 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: ControlCoreEditDwr INFO 2020-02-17T12:29:01,381 (com.serotonin.m2m2.Lifecycle.configureDwr:1267) - Duplicate definition of DWR class ignored: com.serotonin.m2m2.modbus.dwr.ModbusEditDwr INFO 2020-02-17T12:29:01,381 (com.serotonin.m2m2.Lifecycle.configureDwr:1267) - Duplicate definition of DWR class ignored: com.serotonin.m2m2.http.dwr.HttpDataSourceDwr INFO 2020-02-17T12:29:01,382 (com.serotonin.m2m2.Lifecycle.configureDwr:1274) - Added DWR definition for: VirtualEditDwr INFO 2020-02-17T12:47:09,662 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:403) - Data source 'Field Server' initialized INFO 2020-02-17T12:47:09,746 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:403) - Data source 'Mango Internal' initialized WARN 2020-02-17T13:10:21,579 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:167) - Javascript error Description: SyntaxError: unterminated parenthetical Page: http://localhost:8080/resources/view/dataPoint/allDataPoints.js Line: 329 Browser name: Firefox Browser version: 72 osName: Windows location: http://localhost:8080/data_source_edit.shtm?dsid= WARN 2020-02-17T13:10:22,091 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:167) - Javascript error Description: SyntaxError: unterminated parenthetical Page: http://localhost:8080/resources/view/dataPoint/allDataPoints.js Line: 329 Browser name: Firefox Browser version: 72 osName: Windows location: http://localhost:8080/data_source_edit.shtm?dsid= WARN 2020-02-17T13:10:26,106 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:167) - Javascript error Description: SyntaxError: unterminated parenthetical Page: http://localhost:8080/resources/view/dataPoint/allDataPoints.js Line: 329 Browser name: Firefox Browser version: 72 osName: Windows location: http://localhost:8080/data_source_edit.shtm?dsid= WARN 2020-02-17T13:10:26,494 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:167) - Javascript error Description: SyntaxError: unterminated parenthetical Page: http://localhost:8080/resources/view/dataPoint/allDataPoints.js Line: 329 Browser name: Firefox Browser version: 72 osName: Windows location: http://localhost:8080/data_source_edit.shtm?dsid=
-
You have setup an application only password haven't you?
-
Hi MattFox, not sure what you mean by application only password
Are you referring to the mango instance? -
You need to setup an application only password in gmail for mango to use. Otherwise you are unable to send mail.