06-01-2018 02:54 PM - edited 06-01-2018 02:55 PM
I've searched via google, ucrm forum and the ucrm guides. And haven't been able to get the mailer to work.
Using a fresh installation of UCRM 2.11.1 and an app password from gmail I get this error after clicking test connection: Failed to authenticate on SMTP server with username "email" using 1 possible authenticators.
I've checked the server ports in settings->application I've tried the standard SMTP with google's settings and I've tried with the gmail option selected. The organization email is the same as the mailer, and I can ping smtp.google.com from within docker.
Does gmail need to allow less secure apps even with the app password and two step authentication?
Sorry to start another thread on the topic... I'm not sure where else to look. Any help would be appreciated.
06-01-2018 11:46 PM
Hello, you should use your full email address as username, including for example "@gmail.com". (looks like you obfuscated the username in the message, so just to be sure)
Other than that, yes, you should allow less secure apps. It is recommended to also have 2FA enabled and generate an app password just for UCRM.
You can find all this in UCRM help. (writing from my phone, I can send you links on monday).
06-02-2018 05:30 AM
@UBNT-Ondra, I do have the full email entered and an app password just for UCRM, and I went to "allow less secure apps" and google says: "This setting is not available for accounts with 2-Step Verification enabled. Such accounts require an application-specific password for less secure apps access.
06-02-2018 05:47 AM
I just tested with a different google account and it worked.. What other settings could be missing? The main difference between the one that worked and the one that doesn't that I'm aware of is the one that worked is a personal gmail and the other is a business email. Is there an administrater setting that needs to be changed?
06-02-2018 08:41 AM
Hello, I will let you know on monday, I don't have a computer with me currently. One thing though, I am without any problems using personal gmail SMTP with active 2FA for testing since beginning of UCRM, so it will probably be just something you should turn on/off. Also you can try to create new app password for the account and try again.
06-03-2018 03:17 PM
Thanks @UBNT-Ondra I was able to get it working on a different business account under a different domain. I believe the reason for the problems is that the domain is hosted somewhere other then google, in our case hostgator, which I was not aware of. I'll know this for certain when when we migrate the domain to google's registrar. But since getting the system working is time sensitive the work around on a google domain similar to our primary domain will have to do for now.
06-04-2018 12:45 AM
Hello @Brandon-W, the only thing I could find is, that you have to have less secure apps allowed on your business account for the Gmail SMTP to work, but as I don't have access to business account with less secure apps allowed, I cannot try it.
04-03-2019 02:42 PM
Sorry to dig up an old thread, but I'm having the same issue. I'm in the process of moving everything from one domain to another (company rename) and the mailer successfully authenticates on the old domain, but not the new one. Both are G-Suite accounts with 2FA, and I'm using app passwords with both. Any ideas?
04-04-2019 08:54 AM
From what I've found, "allowing less secure apps" is the only way to get this to work. I think in some cases google allows it through but eventually blocks it as "insecure".