Posted on 12-18-2019 03:33 AM
would like to share this short guide to help other users out using gmail as official server to send email.
it works in both cases with @gmail.com domain and google managed one @my_domain.tld
Server and Port: smtp.gmail.com : 587 Encryption: TLSv1.2 Connection timeout: 30 sec Sender Display name: JAMF Software Server Sender email address: ______@XXXX //your domain, gmail o gmail-managed Username: _______@XXXX //your domain, gmail o gmail-managed
check AUTHENTICATED CONNECTION.
use same email and password we used for the SMTP account.
Less secure app option should be turned at ACCOUNT LEVEL, not at organization one. as a console admnistrator I wasted hours debugging this issue and realized just now that the option must be on at account level, not at organization one.
Less secure apps & your Google Account
hope this will help!
Posted on 12-18-2019 04:37 AM
I ran into this recently as well. Thanks for the write up.
One thing to note is that Google allows 2000 messages a day using this method. Depending on how many notifications you have and how big your organization is it could hit that. Google SMTP Settings
Posted on 05-05-2020 10:43 AM
until gmail disables that "feature"
I prefer to use the smtp-relay.gmail.com service for stuff like this, as it has a 10,000/day limit but can't get a lock on all the possible outbound IPs jamfcloud uses.
Posted on 06-29-2020 05:21 AM
Thank you @Arkage! This worked perfectly.
Posted on 09-16-2020 05:50 PM
Thanks Arkage. Once I enabled less secure option on my gmail account, the test email works!
Posted on 09-17-2020 12:46 PM
Posted on 11-01-2020 02:43 PM
This is still not allowing to send. Thank you and i will update on our solution.
Posted on 12-02-2020 05:52 PM
You can (and should) do this without enabling less secure apps. Create an app-specific password for the user and use that instead: https://myaccount.google.com/apppasswords
Accounts that have 2FA turned on are not allowed to enable less secure apps anyway.
Posted on 01-05-2021 09:44 AM
Thanks a million, Arkage, you saved my day!
Posted on 03-16-2021 02:59 PM
I configured my smtp server as suggested in this post but it fails the test each time. Any tips on troubleshooting?
Posted on 03-25-2021 02:04 PM
Try the following settings
Encryption Type: SSL
Connection Timeout: 5 Seconds
Requires Authentication is checked.
You are using an actual account username and password, are you able to sign in to the account itself (not using Jamf)?
Posted on 10-06-2022 10:22 AM
Just a heads up, this option has been depreciated and you're no longer able to enable the less secure option.
Posted on 12-20-2022 09:58 AM
So without being able to enable less secure apps is there no way to have Gmail as an SMTP server in Jamf?
Posted on 12-20-2022 10:24 AM