First, for Let’sEncrypt, to get it to update the certificates I had to go into System Admin Pro and change the port for Admin away from port 80 and change LetsEncrypt from Disabled to Port 80. Is this expected?
Second (and more importantly in my case), I configured email to forward to Gmail via System Admin Pro. I’m getting the following error -
delivery temporarily suspended: SASL authentication
failed; cannot authenticate to server smtp.gmail.com[142.251.16.109]: no
mechanism available
I have not found a solution to this one. I’m guessing I’m missing a library? But if so, I don’t have any idea which one.
What are you using for the Gmail password? You need to enable 2 factor authentication on your Gmail account and then create an app password at the following link.
The odd thing is it is working fine on my old freepbx15 system. Which really means nothing as it’s a totally different base operating system. I must be missing something, but I’m just stumped at the moment.
I’ve also tried various debug flags.
starting new SASL client
name_mask: noanonymous
smtp_sasl_authenticate: smtp.gmail.com[142.251.2.109]:587: SASL mechanisms LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
warning: SASL authentication failure: No worthy mechs found
Your apt list | grep sasl2 shows that you have libsasl2-2/stable and libsasl2-modules-db installed, but you do not have libsasl2-modules installed.
Try installing libsasl2-modules/stable,stable 2.1.28+dfsg-10 amd64 and see if this fixes it.
Are you using the same app specific password or did you create a new one for the new server? You must create a new one or it will not work.
Maybe check if the postfix config at /etc/postfix/main.cf is pointing at the correct file for the certificate. This is what it should be for self-signed on Debian 12. Not sure what it should be if using FreePBX + Cert Manager + LetsEncrypt.
If all else fails you can set it up manually on postfix instead of trying to rely on sysadmin pro. These are my install notes.
## ADD THE FOLLOWING TO THE BOTTOM OF /etc/postfix/main.cf
## CREATE THE FILE /etc/postfix/sasl_passwd and add:
## [smtp.gmail.com]:587 [email protected]:somepassword
## then run "postmap /etc/postfix/sasl_passwd" to create the sasl_passwd.db file
#Set the relayhost to the Gmail SMTP server
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous