I broke down and purchased the Pro version of Systems Admin. I used email settings for a Gmail account with proper address and password as credentials, and then used Debug to send an email and view the mail log. The log says “Network is unreachable”. The next line has “530 5.7.0 Must issue a STARTTLS command first”. Not sure what I’m missing here.
That’s a smart decision for all of the different aspects that are included with SysAdmin Pro. When you are setting up the email account, make sure to select the Gmail preset button. The username should be the full gmail email address. Follow the link it shows on the page for information on what’s needed for this type of use.
I tried the Google App password. I set it up on my google account and then entered the 16 digit password in FreePBX. I get the same results when I try to send a test email. Do I need something in My Hostname, My Origin, and My Domain? I left those as is and only clicked Gmail and entered my email credentials. Still not sure what I’m missing here for the email to work.
I think app passwords only work if and when you have enabled 2-factor authentication on the account. Is that enabled for your Google account? If not, it’s not absolutely required, but there is a different setting you need to enable in the Google settings, “Less Secure App Access”. You’ll find this under Managing Your Google Account → Security. You can turn that On and instead of using an app password, you just use the regular password you use to sign into your Google account.
Yes, I have two-factor turned on for this account. Looks like enabling “Less Secure App Access” is not available when using two-factor authentication. So since 2-factor is on, and I’m using an app password, any other thoughts on why I can’t connect?
Is it possible that my initial attempts to set up postfix manually left some entries that are causing a problem connecting to Gmail? …specifically in /etc/postfix/main.cf and /etc/postfix/sasl_passwd (and the postmap hash of /etc/postfix/sasl_passwd)?
I cleaned up my main.cf file and removed credentials from sasl_passwd and now it seems to work. However, the emails arrive and are put in spam. How do we address that? Simply have each user mark them as “not spam”?
Actually, in looking at the email that was marked spam by Gmail, it looks like the email says it’s from [email protected] Why is it not my email? Do I need to change My Hostname, My Origin, and My Domain on the System Admin, Email Settings form?