this post was submitted on 27 Oct 2023
5 points (72.7% liked)
Sysadmin
7688 readers
642 users here now
A community dedicated to the profession of IT Systems Administration
No generic Lemmy issue posts please! Posts about Lemmy belong in one of these communities:
!lemmy@lemmy.ml
!lemmyworld@lemmy.world
!lemmy_support@lemmy.ml
!support@lemmy.world
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It sounds like you need to set up Exchange Hybrid although it's really not clear to me what you're actually doing.
What is the "secondary server?" How did all this work before you bought "MS accounts?" Where was the MX pointing before? When you say "Exchange server" are you talking about Exchange Online or onprem? Which server is rejecting with the relay error?
Regardless, you're going to need objects in the environment where the MX points that forward to the second location where the rest of the users are. In Exchange onprem/Online this would ideally be a MailUser object created by Azure AD Connect, but a Contact could suffice in certain setups.
And the second environment needs to trust the emails forwarding through the first or you'll have SPF failures.
But again, a proper Exchange Hybrid setup takes care of all of this.