When using a GMail account as SMTP with Jamf Pro, we need to enable the “Less Secure Apps” configuration on Google side.
We can check this in our Google Account > Security > and verify if “Allow less secure apps” is turned ON
Google give us a tool we can use to specify a password for each application we want to use our GMail account to have access to.
For example we can have multiple SMTP servers using the same GMail account and each of them have a “dedicated password.
So what is this Apps passwords?
“App passwords let you sign in to apps and devices that don’t support 2-Step Verification”, or OAuth2.0 we can add
Let’s first check in our Google Account > Security > that Allow less secure apps is turned ON
Next steps we will turn on 2FA following: https://support.google.com/accounts/answer/185839?hl=en
Once this is done we can go back into Security and create an App password following: https://support.google.com/accounts/answer/185833?hl=en
We will not get a 16 characters random generated password, let’s take note of the generated App Password as we won’t be able to recover it later
Once this is done we can go to Jamf Pro > SMTP Server and replace our current password with the randomized unique password we just obtained