r/exchangeserver • • 2h ago

MS KB / Update Exchange Online Admin API apps lose access on 1 December unless you swap permissions. Script to check your tenant

9 Upvotes

Easy one to miss because nothing is being switched off. Microsoft is replacing the permissions for the Exchange Online Admin API (the REST endpoints under /adminapi/v2.0/ that replaced some EWS admin tasks). Deadline is 30 November. From 1 December, anything still only holding the old permission gets refused. Source is MC1540345.

What to swap (both on Office 365 Exchange Online):

- Delegated: Exchange.ManageV2 becomes Exchange.AdminAPI.Manage
- App-only: Exchange.ManageAsAppV2 becomes Exchange.AdminAPI.ManageAsApp

GCC, GCC High and DoD have until 1 January.

What isn't affected: Connect-ExchangeOnline with a certificate uses Exchange.ManageAsApp (no V2). Different permission, leave it alone. Graph permissions like Mail.Read aren't affected either.

Likeliest culprits are room booking and calendar delegation tools that moved off EWS, since the API covers folder permissions, Send on Behalf, distribution group membership and org config.

Read-only script to find them:

Connect-MgGraph -Scopes "Application.Read.All", "DelegatedPermissionGrant.Read.All"
$exo = Get-MgServicePrincipal -Filter "appId eq '00000002-0000-0ff1-ce00-000000000000'"

# App-only
$old = $exo.AppRoles | Where-Object Value -eq "Exchange.ManageAsAppV2"
Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $exo.Id -All |
Where-Object AppRoleId -eq $old.Id | Select-Object PrincipalDisplayName

# Delegated
Get-MgOauth2PermissionGrant -Filter "resourceId eq '$($exo.Id)'" -All |
Where-Object { ($_.Scope -split " ") -contains "Exchange.ManageV2" } |
ForEach-Object { (Get-MgServicePrincipal -ServicePrincipalId $_.ClientId).DisplayName }

Empty output means you're fine. If something shows up: add the new permission, grant admin consent, test, then remove the old one. Your code shouldn't need changing, because the .default scope picks up whatever's been granted. For vendor apps, email them today.

I've written up the full steps with the portal walkthrough. If you want it, ask in the comments.

Anyone found something using this in their tenant yet?


r/exchangeserver • • 6h ago

Question Exchange Hybrid: Disabling CMT and routing inbound/outbound mail through a third-party email gateway

5 Upvotes

Hi there,

we're running a hybrid Exchange environment with both Exchange on-premises and Exchange Online mailboxes. We still have a small number of on-premises mailboxes for apps, and our distribution groups are currently managed on-premises and synchronized to Entra ID. The groups are still on-prem because of local applications sending mails to the groups.

Our current mail flow looks roughly like this:

Inbound
Internet → Third-party Email Security Gateway (ESA) → Postfix → Exchange On-Premises → Exchange Online

Outbound
Exchange Online → Exchange On-Premises (Centralized Mail Transport) → Postfix / Email Gateway → Internet

We are considering changing this architecture and reducing our dependency on the on-premises infrastructure, despite the issues last week :D

Our proposed target architecture would be:

Inbound
Internet → Email Security Gateway → Exchange Online

  • Exchange Online mailboxes: delivered directly in EXO
  • On-premises mailboxes: routed through the hybrid connector to on-premises Exchange

Outbound

  • Exchange Online mailboxes → Exchange Online outbound connector → Email Security Gateway → Internet
  • On-premises mailboxes → On-premises Exchange → Postfix / Email Security Gateway → Internet

Is this something one can do and is this even proposed?

- Do inbound messages from the internet get correctly split between EXO and on-premises recipients in this configuration?

- Groups are expaned in Exchange Online and afterwards delivered to recipient in both worlds?

- Are there any pitfalls when routing outbound EXO mail through a third-party gateway instead of on-premises Exchange?

- Do you think this architecture provide an improvement in resilience during on-premises outages?

- Would you recommend this architecture, or is there a good reason to keep CMT enabled in this scenario?

We're particularly interested in real-world experiences, potential drawbacks and things to watch out for.

Thanks!


r/exchangeserver • • 26m ago

I built a free WinForms GUI to see which mailboxes a user can access in Exchange Online (reverse lookup + grant/copy/remove)

Thumbnail reddit.com
1 Upvotes

r/exchangeserver • • 2h ago

Exchange 2019 CU12 to Exchange SE – Side-by-Side Replacement on New Server

1 Upvotes

We have an existing on-premises Exchange 2019 CU12 server running on Windows Server 2019. All user mailboxes are hosted in Exchange Online.

We are planning to replace the existing physical server with a new Windows Server 2025 VM running Exchange Server Subscription Edition (SE).

This is strictly a side-by-side replacement. We are NOT performing an in-place upgrade of the existing Exchange server.

My question is:

Does the existing Exchange 2019 CU12 server have to be upgraded to CU15 before introducing a new Exchange SE server into the existing Active Directory/Exchange organization?

Specifically:

  • Can Exchange SE RTM (with the latest applicable SU) be installed on the new VM while the existing CU12 server remains untouched?
  • Does Exchange SE setup require the existing Exchange organization to be running CU15?
  • Is there a supported method to prepare AD for the new SE server without upgrading the existing Exchange binaries?

The concern is that upgrading an older physical production server from CU12 to CU15 introduces unnecessary risk when the objective is to replace it entirely.

Looking for guidance from anyone who has performed this type of migration or can clarify Microsoft's supported coexistence requirements.


r/exchangeserver • • 10h ago

Exchange Online Administration - Course

Thumbnail reddit.com
3 Upvotes

r/exchangeserver • • 1d ago

Exchange se hybrid exchange online

3 Upvotes

Connector cannot validate with starttls. From external while doing telnet to exchange there is no advertised 250-starttls but internal network it shows. With tls certificate bind, exchange online to Onprem exchange tls validation failure. But without tls it worked. I know certificate bind with receive connector and chain required to be configured but even it’s confirmed configured it won’t worked. Is EOP accepts starttls ?


r/exchangeserver • • 2d ago

Email continuity during a Microsoft outage like MO1550821: three approaches we looked at. Has anyone built the "mail relay" part at scale?

Thumbnail reddit.com
0 Upvotes

r/exchangeserver • • 2d ago

Email continuity during a Microsoft outage like MO1550821: three approaches we looked at. Has anyone built the "mail relay" part at scale?

Thumbnail reddit.com
0 Upvotes

r/exchangeserver • • 3d ago

Question Where does Exchange SE go from here with the Powershell 5.1 deprecation?

16 Upvotes

The next version of Windows Server will have PowerShell 5.1 disabled by default, but available as a feature. The version afterwards removes PowerShell 5.1 entirely.

What does this mean for Exchange SE? Will Microsoft migrate the Management Stack to PowerShell 7? Or does this add another nail in the coffin for on prem Exchange support from Microsoft?


r/exchangeserver • • 4d ago

Exchange Online to an on-premises print server

1 Upvotes

I am working on a project which involves an on-premises HP Print Connect server which runs its own SMTP server which will be used to receive print jobs from external senders. When a sender emails a document with an attachment to a Shared Mailbox, the HP Print Connect server processes, then sends an email containing a release code to the user (Using SendGrid) so they can retrieve and print the document at an HP Multifunction printer.

Currently, all user mailboxes reside in Exchange Online, and we also maintain an on-premises Exchange server configured as an SMTP relay.

One option we considered is creating a dedicated mailbox in Exchange Online and then using an Exchange rule to route the email to an Exchange Online outbound connector to route incoming print jobs to the on-premises print server.

https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/use-connectors-to-configure-mail-flow/set-up-connectors-to-route-mail

Are there any alternatives to creating a connector—specifically leveraging our on-premises Exchange server?


r/exchangeserver • • 4d ago

Question Removing an accepted domain in Exchange hybrid (with HMA) – "domain is federated and cannot be removed"

3 Upvotes

Hi all,

We have Exchange Server SE on-prem in a hybrid setup with Exchange Online, and we use Hybrid Modern Authentication (HMA). One of our companies left the group, so we want to remove their email domain from Exchange.

When I try to remove the accepted domain on-prem, I get this error:

"The accepted domain domain.com is federated and cannot be removed. Please use Remove-FederatedDomain task to first remove this domain from the list of federated domains."

The domain is not the AccountNamespace of the federation trust. Our plan is:

  1. Remove all remaining addresses for this domain from users/groups/contacts (on-prem AD)
  2. Remove it from email address policies
  3. Remove-FederatedDomain -DomainName domain.com
  4. Remove it from the hybrid config (Set-HybridConfiguration -Domains ...) so HCW doesn't add it back
  5. Remove-AcceptedDomain domain.com
  6. In EXO, remove it from the organization relationship and the IntraOrganizationConnector (TargetAddressDomains), then remove the domain from the M365 tenant

Questions:

  • Is this the right order?
  • Is it OK to do this with PowerShell, or should we re-run the Hybrid Configuration Wizard and just uncheck the domain?
  • With HMA in place, do we need to change anything on the OAuth side (AuthServer / IntraOrganizationConnector / OAuth config), or is removing the domain from those lists enough?
  • Any side effects on free/busy, Outlook/Outlook mobile sign-in (HMA) or hybrid mail flow for our other domains?

Thanks!


r/exchangeserver • • 5d ago

Question Who is still running Exchange on-prem and why?

58 Upvotes

Honestly I get why some companies don't want everything in the cloud, but I'd like to hear the real reasons. Is it compliance, costs, or just "it works so don't touch it"?


r/exchangeserver • • 4d ago

SE Health Checker - No Internal Transport Certificate found. This may cause several problems.

2 Upvotes

Exchange SE - single server in org

My health checker is reporting that no internal transport certificate can be found and this can cause issues, though everything *appears* to be working fine.

When I check my certificates, I can see:

Name: Microsoft Exchange

Status: Valid

Expires: 27/03/2028

Services: IIS, SMTP

The suggested fix is to run the MS script to generate a new certificate that is assigned the SMTP service.

I suppose my question is, is this a genuine error in my setup? Will running the script break anything else?

Thanks!


r/exchangeserver • • 4d ago

Internet-facing Exchange server after migration.

1 Upvotes

All our mailboxes moved to Exchange Online long ago. We kept one on-prem server for recipient management. Nobody removed the old OWA and ECP publishing rule on the firewall, so both were still reachable from the internet even though we were not using them. I found out sideways. Security asked about an Exchange login page that was still visible to ionix. As far as they knew, "we don't run Exchange anymore."

For those in the same leftover hybrid state, did you pull inbound HTTPS publishing once mail stopped routing through on-prem, or was there still a hybrid service that needed it?


r/exchangeserver • • 5d ago

Article Exchange Certificate Swap PowerShell - Github

39 Upvotes

https://github.com/LoneRiderOH/exchange-cert-swap.git

I hope guys/girls this will make you job easier.

A single-file PowerShell WPF GUI for replacing the public IIS/SMTP certificate on on-premises Exchange Server 2016, 2019 and Subscription Edition mailbox servers, using a PFX file or a free certificate from Let's Encrypt, ZeroSSL, Google Trust Services, SSL.com or Actalis. It covers the whole process: inventory, validation, import, enable, verification and safe removal of the old certificate. Dry run is on by default.

Features

  • Free certificates (optional): requests a certificate from Let's Encrypt, ZeroSSL, Google Trust Services, SSL.com or Actalis using the Posh-ACME module, and passes the resulting PFX straight to validation. Proof of domain ownership, chosen per request:

    • HTTP-01: the tool writes the challenge file into IIS on every selected server, so it works behind a load balancer. It checks that each server serves the file before the CA is asked to validate.
    • DNS-01 manual: the tool shows the _acme-challenge TXT records to create, then checks public DNS before continuing. Supports wildcards.
    • DNS-01 automatic via Cloudflare: built-in option for domains hosted on Cloudflare DNS. You paste a scoped API token, and the tool tests it, creates and removes the TXT records itself, and can remember the token, encrypted for your Windows user. It also detects when your names are on Cloudflare DNS.
    • DNS-01 automatic via other DNS hosts: uses any of Posh-ACME's ~90 DNS provider plugins (Route 53, Azure DNS, GoDaddy and more).
  • Inventory: lists every Exchange certificate on all selected mailbox servers and marks the Auth (OAuth) and internal transport certificates.
  • Validation before changes (read-only):

    • the PFX contains a private key, is in its validity period and has the Server Authentication EKU
    • the chain builds to a trusted root
    • every InternalUrl/ExternalUrl on the OWA, ECP, EWS, OAB, ActiveSync and MAPI virtual directories, plus the Autodiscover SCP, is covered by the certificate's SANs (wildcards are handled correctly)
    • lists Send and Receive connectors whose TlsCertificateName still points to the old certificate
  • Import to multiple servers: imports the same PFX on every selected server with Import-ExchangeCertificate -FileData, so the tool doesn't need to be run on each server.
  • SMTP connectors: updates Send and Receive connectors whose TlsCertificateName points to the old certificate, such as the hybrid Outbound to Office 365 and Default Frontend connectors set by the HCW. It can also pin the new certificate on the Default Frontend connector (port 25), so internet senders get the public certificate on STARTTLS instead of the self-signed one. The connector FQDN is never changed, and rollback commands are logged.
  • Enable for IIS and SMTP: if Enable-ExchangeCertificate -Force replaces the internal transport certificate, the tool restores the previous one unless you choose otherwise.
  • Verification on the network: opens a real TLS connection to each server on port 443 and compares the served thumbprint with the new certificate. It also checks SMTP port 25 with STARTTLS (for information only) and any extra endpoints you list, such as a load balancer or public name.
  • Safe removal of the old certificate: a certificate is removed only if: You confirm each removal.

    • its server passed verification
    • it is not the Auth or internal transport certificate
    • it is no longer bound to IIS
    • no connector points to it
  • Dry run by default: every command is logged instead of being run. You turn Dry run off on purpose, and the header switches to red LIVE MODE.
  • Full log: each run writes logs\CertSwap_<timestamp>.log next to the script. PFX passwords are never logged.
  • No private key is written to the machine that runs the tool: the PFX is opened with EphemeralKeySet, so its key stays in memory. It never goes into a Windows key store or onto a smart card or hardware token. The key is installed only on the Exchange servers, through Import-ExchangeCertificate.

r/exchangeserver • • 5d ago

Exchange hybrid in a small company, keep it or go full cloud?

4 Upvotes

I'm doing the IT for a smaller company on the side and I keep wondering whether hybrid even makes sense at that size. A lot of companies seem to stay hybrid for years even though the plan was to move everything to Exchange Online. What's keeping you on hybrid, or if you went full cloud, how was it? Or how do you migrate??


r/exchangeserver • • 5d ago

Question What do you use for automated certificate deployment in Exchange?

29 Upvotes

We operate in a hybid environment with 365, running Exhange SE on-prem. Now that public CA's have begun shortening the validity periods of their certs, which will eventually be down to 47 days by the time 2029 rolls around, we need something better than what we've been doing which is pretty much just manual renewal since it used to only be done once a year.

We've had Sectigo's cert manager product for a while and though I haven't actively used it much it wouldn't take me long to get more familiar with it. A colleague of mine whom I work closely with has used it more often so it wouldn't be an issue to work him to see what we can do. We've already automated specific named certs for different apps and websites using this product, primarily on IIS.

Here's what our current manual process looks like:

  • Within the Exchange console, select the cert in use and select renew and step through the menu until it spits out a request file.
  • Send request file, receive cert. Select the complete request option in Exchange console, and then have to ensure that it selects the new cert as the 'active' one to be using (it usually prompts for this overwriting action), and then also have to manually select associate the new cert with IIS on the Exchange server.
  • I then run a Exchange shell command to update the TLS connectors with the new cert which I have to change the thumbprint for it to know which cert I'm talking about.
  • Lastly once all of that is done I run through the HCW to select the new cert here.

I don't think I can remove any of these steps, but I'm sure I'm not the only one in this position. What are some of you doing for automated deployment?


r/exchangeserver • • 5d ago

How to provide email business continuity when primary mail server (Exchange Online) outage occurs? (In relation to MO1550821)

Thumbnail reddit.com
0 Upvotes

r/exchangeserver • • 8d ago

Question OWA gets hit with password spray every night and I only see it in the morning lockouts.

23 Upvotes

We run our own Exchange 2019 server with OWA open for a few staff who work remotely, and I'm the one who ends up looking after it. Most mornings there's a handful of locked accounts and a wall of 4625s on the server. Moving everyone onto a VPN is the proper fix and it's on the list, but until that's sorted I'd like to know about a spray while it's actually happening.

What are you alerting on for OWA, and where do those events end up for you?


r/exchangeserver • • 8d ago

Exchange SE & 2019 Coexistence: Can a client buy only 300 SE CALs for a 700-mailbox org?

0 Upvotes

Hi everyone, looking for clarification on Microsoft licensing rules for an upcoming project.

  • 700 total mailboxes on-premises running on Exchange Server 2019 (perpetual licenses, likely no active Software Assurance).
  • Active Exchange Hybrid setup in place (likely for EOP), though all 700 mailboxes sit strictly on-premise.

The Plan:

  • Add a new Exchange Server Subscription Edition (SE) server into the existing Exchange organization.
  • Migrate 300 mailboxes to Exchange SE and leave the remaining 400 mailboxes on Exchange 2019 for now.
  • No mailboxes are moving to Exchange Online.
  • The client plans to purchase the Exchange SE server license plus only 300 SE CALs, assuming the other 400 users remain covered by their existing Exchange 2019 CALs.

What I want to know:

  1. Is this licensing split valid, or does introducing Exchange SE into the organization require all 700 users to have Exchange SE CALs (or active Software Assurance)?
  2. Does the existing Hybrid configuration affect the CAL requirements for the 300 users remaining on Exchange 2019?

Thanks in advance for any help or links to the official licensing documentation.


r/exchangeserver • • 9d ago

Question Resolve split brained hybrid user?

2 Upvotes

Trying to figure out how this happened.

I assume a license was assigned before the mailbox migration happened.

I found this documentation on how to recover. https://learn.microsoft.com/en-us/troubleshoot/exchange/user-and-shared-mailboxes/mailbox-exists-exo-onpremises

It shows steps, but how do we verify which mailbox the user is actually using so we don’t delete the wrong one?

How do we verify that we enter the correct RemoteRoutingAddress so that will work and match other users?

Step 5 says restore custom proxy addresses and other Exchange Server attributes. How can I find what’s needed and the steps to do that?

Is there are more clean and simple way to do this other than the steps shown in the link above?


r/exchangeserver • • 9d ago

Looking for a Barracuda email security alternative

3 Upvotes

Our Barracuda renewal is due in January and I’m leaning towards not signing again. We’re around 300 users on 365 business premium with me and a part timer running everything. It’s email gateway defense, the cloud one, so the appliance RCE going around isn’t us.

A recent incident kinda pushed me where one of our suppliers had their mailbox taken over and whoever was in it replied on a invoice thread asking AP to update the bank details. There was no link or attachment and it came from their real address and it passed SPF and DKIM, barracuda just delivered it like any other email. AP only caught it cause the new account was overseas and they rang the supplier on the number they had.

The rest is the usual stuff like legit mail sits in quarantine most days and I lose a couple hours a week releasing it, to be fair some of that is on me since I’ve been allowlisting whole domains to make the complaints stop. I’m cleaning that up either way.

We already have defender P1 through business premium and check point keeps coming up in older threads here. What did you move to when you dropped barracuda?


r/exchangeserver • • 10d ago

Article Teams traffic moved onto the Exchange Online gateway set off the bug behind the 20-hour M365 outage

Thumbnail leaddev.com
1 Upvotes

r/exchangeserver • • 11d ago

Question Orphaned exchange server.

Thumbnail reddit.com
0 Upvotes