A robust email, calendaring, and collaboration platform developed by Microsoft, designed for enterprise-level communication and data management.Miscellaneous topics that do not fit into specific categories.
I have conducted some research and found that Authenticated SMTP submission (typically port 587) enforces “send as” authorization based on the authenticated identity. In practice, it will only allow the client to submit mail using the authenticated mailbox address (or other mail-enabled identities in AD/Exchange where the account has explicit Send As rights).
This is why it works when the “From” matches the mailbox but fails for arbitrary sender addresses that don’t exist as mail-enabled objects.
To support an ERP/application sending with custom “From” addresses that are not tied to AD mailboxes, use a dedicated anonymous relay Receive connector (Frontend Transport, TCP 25) scoped only to the ERP/app servers’ static IPs. This design is the recommended approach because it enables relay while preventing an open relay by restricting who can use the connector.
- Create a dedicated Receive connector (Frontend Transport / Custom) bound to port 25 and restrict RemoteIPRanges to only the ERP/app server IPs (remove the default
0.0.0.0-255.255.255.255). - Configure permissions using one of the supported methods (choose one):
- Anonymous method: set PermissionGroups to AnonymousUsers and grant Ms-Exch-SMTP-Accept-Any-Recipient to
NT AUTHORITY\ANONYMOUS LOGON. - Externally secured method: set AuthMechanism to ExternalAuthoritative and PermissionGroups to ExchangeServers (use only if those hosts are fully trusted, since it grants broader trust
- Anonymous method: set PermissionGroups to AnonymousUsers and grant Ms-Exch-SMTP-Accept-Any-Recipient to
You can read here for more information:
https://learn.microsoft.com/en-us/exchange/receive-connector-permissions-exchange-2013-help
https://learn.microsoft.com/en-us/exchange/mail-flow/connectors/allow-anonymous-relay
Hope my answer will help you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.