I’m trying to use our organization G Suite service to route SMTP mail through our Gibbon instance, but I’m not finding support articles to help me through the process. I will keep digging, but I wanted to see if you all had any additional guidance.
To be clear, we aren’t interested in using the single sign on integration. I want to route Gibbon emails through our G Suite email services.
Thank you, Ross, and thank you to Jack too! I haven’t had any luck quite yet–I get a variety of errors when I try to send the test email (depending on my settings), but this one seems to indicate I am close.
If it helps, I had the same issue when I first tried to set it up. It really helped me to look at my PHP error logs, to see what the issue was. For me, it seemed to be legacy authentication wasn’t enabled in Microsoft Admin, however, this will be different for you in GSuite.
I got it enabled on the G Suite side (at least according to the Google instructions), so I think it’s something on the server side. I tried opening up the 587 port on ufw in case that was an obstacle, but no luck. I started some php digging and found articles suggesting a need to use phpmailer, but that’s when I hit a wall.
I will see what I can do on the php error log side and keep digging into G Suite settings that might be off. I am happy to peruse any other help materials either of you find.
Hi Kevin, in addition, if you are using a dedicated account for this (smtp@…) make sure you’ve logged into it at least once, otherwise I am not sure it’ll work.
Behind the scenes Gibbon uses phpmailer, so don’t worry about that: it’s been widely used and tested, and we know it works 99 times out of 100…and in general when it doesn’t it is a config issue rather than a coding issue.
Your three steps got it working, Jack–thank you so much! That all makes sense now that I’ve got it in place, but I don’t think I would have made it without guidance. I had step one all set, but turning off less secure apps for a single account was not intuitive at all. (And it took some additional experimenting to get the app password in place.)
I just send a test email, though, and it came through. Thanks again, Jack, and thank you Ross as well!
I am facing similar setup. I am using my personal gmail email id with 2 factor authentication enabled.
I cant used less secure apps option as Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
In php logs I am getting error CLIENT → SERVER: [credentials hidden]
[12-Dec-2022 19:31:34 Asia/Kolkata] SERVER → CLIENT: 535-5.7.8 Username and Password not accepted.