Posted on 04-07-2023 10:23 AM
Has anyone had success setting up SMTP in JSS using Google's SMTP relay? We are struggling to find settings that work. This is the doc I'm referencing: https://support.google.com/a/answer/2956491?hl=en
Solved! Go to Solution.
Posted on 04-10-2023 09:59 AM
Google/Gmail no longer work since Google has dropped "less secure app" access for SMTP. See https://support.google.com/accounts/answer/6010255?hl=en. We have been looking for a replacement since that happened almost a year ago. Jamf teased us in a survey a while back that they would be adding the ability to add a SMTP server that would be supplied by Jamf but that has not yet happened.
Posted on 04-10-2023 05:15 PM
The replacement for that Google setting, in places where you cannot use "Sign in with Google" such as the SMTP settings in Jamf, are App Passwords.
Essentially, while logged in with the user that will be used for SMTP, go to the Google Account settings > Security > Signing in to Google > App Passwords.
Add one and give it a descriptive name like Jamf SMTP, and copy the 16 character password it generates, then use that when setting up SMTP in Jamf.
It can only be used by a single "app", so after the first time you test it in Jamf, that password will be invalid for anything else to use.
If you want to be fancy, you can customize the sender to be different than the primary email of the user by first adding the desired alias to the user in Google admin, then adding that alias within the users Gmail settings > Accounts > Send mail as. Send a test from gmail with that alias, and you can then use it as the sender email in Jamf SMTP server settings without issues in most cases (there are some gmail service settings that could flag it as spam for your users without additional configuration).
Btw you'll only have the option to use App Passwords with 2-step auth enabled on the account in question. Check the Google page for full info.
Btw, this is also the best way to enable SMTP on printers these days! Used to whitelist the public IP in Google and do a no-auth SMTP, but that's got a lot of potential issues and seems deprecated.
Posted on 04-10-2023 09:59 AM
Google/Gmail no longer work since Google has dropped "less secure app" access for SMTP. See https://support.google.com/accounts/answer/6010255?hl=en. We have been looking for a replacement since that happened almost a year ago. Jamf teased us in a survey a while back that they would be adding the ability to add a SMTP server that would be supplied by Jamf but that has not yet happened.
Posted on 04-10-2023 05:15 PM
The replacement for that Google setting, in places where you cannot use "Sign in with Google" such as the SMTP settings in Jamf, are App Passwords.
Essentially, while logged in with the user that will be used for SMTP, go to the Google Account settings > Security > Signing in to Google > App Passwords.
Add one and give it a descriptive name like Jamf SMTP, and copy the 16 character password it generates, then use that when setting up SMTP in Jamf.
It can only be used by a single "app", so after the first time you test it in Jamf, that password will be invalid for anything else to use.
If you want to be fancy, you can customize the sender to be different than the primary email of the user by first adding the desired alias to the user in Google admin, then adding that alias within the users Gmail settings > Accounts > Send mail as. Send a test from gmail with that alias, and you can then use it as the sender email in Jamf SMTP server settings without issues in most cases (there are some gmail service settings that could flag it as spam for your users without additional configuration).
Btw you'll only have the option to use App Passwords with 2-step auth enabled on the account in question. Check the Google page for full info.
Btw, this is also the best way to enable SMTP on printers these days! Used to whitelist the public IP in Google and do a no-auth SMTP, but that's got a lot of potential issues and seems deprecated.
04-11-2023 06:27 AM - edited 04-11-2023 09:27 AM
Don't you have to enable less secure app access in order to create an app password?
04-11-2023 09:23 AM - edited 04-11-2023 09:26 AM
This was the answer. I will say though that I was unable to find "app passwords" as a listed option in security settings. I had to search for it, but then it worked. THANK YOU!
Posted on 04-11-2023 05:26 AM
@bigben54, thanks for this info! Going to give your suggestion a try later this morning.
04-11-2023 12:09 PM - edited 04-11-2023 12:09 PM
@pseudopunk yeah I see what you mean about the option not being visible, super odd and hope it doesn't imply this is also being phased out. Along with searching for it in the settings, the direct link is https://myaccount.google.com/u/1/apppasswords.
Happy to help!
Posted on 01-10-2024 08:35 AM
Sadly we've been having issues with this. I've been in contact with Jamf support with seemingly no solution in sight. We are on Jamf Pro Cloud 11.1.1. So a recap of everything.