I am running the ISO on a virtual machine, based on CentOs I believe. I purchased the system admin module but have not been able to get email working. I’m trying to get it to work with gmail. I created the app and got the 16 digit password. I followed several guides setting up the main.cf and sasl_passwd file but keep getting “SASL authentication failed; server smtp.gmail(dotedit)com[142.250.111.109] said: 535-5.7.8 Username and Password not accepted.” I am stuck what to try next. Had to edit post as it is seeing my information as links so am not able to post main.cf.
sasl files has "smtp.gmail(dotedit)com:587 mygamilemail:16digitapppaswordfromgooglenospaces
Some things I have noticed different from the different guides/posts: Some enclose the relay host in [ ] and some don’t? Ubunu and CentOs seem to keep the CAfile in different locations (I did edit the path to where I verified the file to be) There are different methods and commands to send email from the command line… tried all I could find but no success. I was not able to find a command line example where I could also enter the google 16 digit password… was hoping to verify it was not a google end problem.
Solved - not sure exactly which change I made made it work, or if it was more about rebooting at the right time. If it was due to a change, I did change the inet_protocalls = all to ipv4 in the main.cf file. I also suspect fwconsole stop …and then fwconsole start are more effective than fwconsole reload. I got clues on the stop and start that I did not get with just reload. I found several posts but few solutions when searching this problem, hope this helps someone.
Under Admin - System Admin - Email setup -
Use External SMTP Server freepbx.local.com was used for both My Hostname and My Origin local.com was used for my domain
Select GMAIL button
Enter gmail email address for username
Enter 16 digit App password created by Google… no spaces
clicking submit creates new sasl_passwd and sasl_passwd.db files