Skip to main content
Question

SMTP server and Office 365

  • October 4, 2016
  • 19 replies
  • 53 views

Forum|alt.badge.img+1

I am trying to setup out JSS to relay messages out to Office 365. All of our mailboxes are in the cloud.I have it setup to use smtp.office365.com on port 587 with SSL. Anyone else set this up and have any info. I keep getting an error when sending a test email.

19 replies

daz_wallace
Forum|alt.badge.img+13
  • Contributor
  • 224 replies
  • October 5, 2016

Hi @kdbillings74

We have this running with our JSS at the moment.

The only difference we have is using TLS instead of SSL

I'd suggest giving that a go. Good luck!

Darren


Forum|alt.badge.img+7
  • Contributor
  • 22 replies
  • January 4, 2017

Hi @kdbillings74

Did you ever get this working? We have the same issue. Tried @daz_wallace 's suggestion but that didn't work.

thanks
Raj


Forum|alt.badge.img+7
  • Contributor
  • 22 replies
  • January 4, 2017

We figured it out - you need to use TLS and the UPN in the username field for it to work.


Forum|alt.badge.img+9
  • Contributor
  • 12 replies
  • February 24, 2018

Well played, it worked for me. Thanks @typeraj


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • March 25, 2020

How do you setup smtp setting for Office 365 with no on prem smtp server?


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • September 2, 2020

not working for me tried all encryption settings combined with UPN


markdmatthews
Forum|alt.badge.img+17
  • Contributor
  • 67 replies
  • January 26, 2021

try the following (although this will be an issue when MSFT deprecates BasicAuth)
Server and Port: smtp.outlok.com : 587
Encryption: TLSv1.2
Requires Authentication: Enable + Add UID/PASS


KyleEricson
Forum|alt.badge.img+17
  • Valued Contributor
  • 444 replies
  • January 26, 2021

Yeah any news from Jamf to support the new modern auth with SMTP?


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • October 26, 2021

we are in october 2021. still cannot use the smtp with our azure modern auth. smtp basicauth is disable on azure.

anyone has found a solution ? 


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • November 3, 2021

Same boat.  Can't get SMTP to work with O365


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • March 29, 2022

Forum|alt.badge.img+1
  • New Contributor
  • 4 replies
  • May 23, 2022

I have the same problem, and have a consultant assisting us with our setup who does not know why it's not working.

Set this up with an account that is NOT enabled for MFA, with the SMTP authentication enabled.

Using port 587 with TLSv1.2 (tried the others also).

UPN for the username

Tried the workaround posted by jsmith_pbs.

Still not working. 

ERROR:Error sending message.
SUGGESTION:Ensure you can connect to the SMTP Server.

 


markdmatthews
Forum|alt.badge.img+17
  • Contributor
  • 67 replies
  • May 24, 2022

Just to re-confirm what I am using (successfully):

Server: smtp.outlook.com
Port: 587
Connection Timeout: 5s
Requires Authentication: <username> <password>
Encryption: TLSv1.2


Forum|alt.badge.img+1
  • New Contributor
  • 4 replies
  • May 24, 2022

Just to re-confirm what I am using (successfully):

Server: smtp.outlook.com
Port: 587
Connection Timeout: 5s
Requires Authentication: <username> <password>
Encryption: TLSv1.2


Thanks for the feedback!

I tried that, still failing.

  • Tried both smtp.office365.com and smtp.outlook.com
  • both ports 25 and 587
  • Connection timeout from 5 to 20 seconds
  • With and without authentication
  • All encryption options

And every combination possible of the above

Verified the password on the account, verified that it is NOT enabled for MFA, verified that the account is enabled and can log in, and that SMTP authentication is enabled on the account.

I also created a connector in Exchange online, with all the IP addresses Jamf lists as sending IPs

Also verified that there are no conditional access policies that would be blocking.

 

Still no joy.

Might be a lost cause, but I've opened a support case with Jamf about this.

 

We've been working with a consultant to help us get up to speed on Jamf for Mac management, and he can't figure it out either.


Jaykrishna1
Forum|alt.badge.img+7
  • Jamf Heroes
  • 82 replies
  • December 28, 2022

I have the same problem, and have a consultant assisting us with our setup who does not know why it's not working.

Set this up with an account that is NOT enabled for MFA, with the SMTP authentication enabled.

Using port 587 with TLSv1.2 (tried the others also).

UPN for the username

Tried the workaround posted by jsmith_pbs.

Still not working. 

ERROR:Error sending message.
SUGGESTION:Ensure you can connect to the SMTP Server.

 


I am also stuck in the same situation... will you suggest me if, you got the way out 


Forum|alt.badge.img+1
  • New Contributor
  • 4 replies
  • January 3, 2023

I am also stuck in the same situation... will you suggest me if, you got the way out 


Not yet - opened a case with Jamf support, but they were not able to help
________________________________
"This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. If you are not the intended recipient, you must not review, disclose, copy, distribute or use this e-mail; please delete it from your system and notify the sender immediately."

KyleEricson
Forum|alt.badge.img+17
  • Valued Contributor
  • 444 replies
  • January 7, 2023

  @pray 

Like most other orgs basic auth in O365 should be disabled which would break this setup that @markdmatthews shared. Jamf still needs to update their product to support modern auth or other method with O365.


markdmatthews
Forum|alt.badge.img+17
  • Contributor
  • 67 replies
  • January 9, 2023

  @pray 

Like most other orgs basic auth in O365 should be disabled which would break this setup that @markdmatthews shared. Jamf still needs to update their product to support modern auth or other method with O365.


Agreed on Basic Auth and that Jamf needs to provide an SMTP server for Jamf Pro Cloud, but the account as setup...

The account is member of a group which allows connection to O365 without MFA from outside of Organization and is given exception for basic auth for SMTP protocol using a configured policy.


Forum|alt.badge.img+1
  • New Contributor
  • 4 replies
  • January 10, 2023

Agreed on Basic Auth and that Jamf needs to provide an SMTP server for Jamf Pro Cloud, but the account as setup...

The account is member of a group which allows connection to O365 without MFA from outside of Organization and is given exception for basic auth for SMTP protocol using a configured policy.


I've tried using an account that is enabled for Basic Authentication for SMTP - didn't make a difference.

________________________________
"This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. If you are not the intended recipient, you must not review, disclose, copy, distribute or use this e-mail; please delete it from your system and notify the sender immediately."