Exchange Online always redirects alias to primary smtp

Miba2504 21 Reputation points
2022-05-31T08:46:12.143+00:00

Dear Forum,

We use Exchange Online Protection as our mailfilter. We have a mailbox with primary smtp "invoice.master@keyman .be". The mailbox also has an alias "invoice@keyman .be". There are currently outlook rules set for this alias to move messages to a specific folder. However when a message arrives on Exchange Online addressed to "invoice@keyman .be", the message always gets redirected to "invoice.master@keyman .be". This renders the "invoice@keyman .be" rule useless in Outlook, since the alias is now missing from the message header.

How can we stop "Exchange Online" from redirecting or resolving the alias to the primary smtp??? (see attach with a screenshot for clarification)
206974-alias-redirected-to-primarysmtp.jpg

We have a exchange hybrid set up and this mailbox resides on our Exchange OnPrem (Exchange Server 2016 CU22).

Thanks in advance!
Kind regards,
Michiel

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.


Answer accepted by question author
Andy David - MVP 160.3K Reputation points MVP Volunteer Moderator
2022-05-31T14:52:04.837+00:00

how are these messages being sent? From an authenticated user? or did it work before?

If its from an authenticated user, that is expected as Exchange will resolve that and the alias wont show up in the header.

By the way, have you enabled the ability to send from any alias in Exchange Online? that should preserve the original sender if you can move the mailbox to Exchange Online
https://techcommunity.microsoft.com/t5/exchange-team-blog/sending-from-email-aliases-public-preview/ba-p/3070501

Messages sent to aliases were rewritten to the primary SMTP address in the past. Complex routing configurations may rely on this behavior. When the sending from aliases feature is enabled, rewriting to the user’s primary SMTP address will stop, which could break routing.
When using the user’s primary SMTP address in a Message Trace query, the results do not include messages sent using an alias. To trace messages sent to or from an alias, you need to use the alias in your query. This is less of a known issue and more about highlighting the change to existing behavior.
This feature is for Exchange Online-hosted mailboxes only. Messages to and from on-premises can be subject to rewriting the aliases on those servers.

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Massimo Mattiello 1 Reputation point
    2023-05-22T15:59:56.6466667+00:00

    Dear all,

    i've a similar issue on my Exchange Online.

    I've many contacts in the GAL that have more that one email address and when i receive and email and i reply to it, the system will change the recipiant email to the primary address.

    For example in my GAL i've a contact below

    User's image

    If the contact send me an email from ******@email.com and i reply to it, the syste will change the recipient email to ******@email.com.

    How can i avoid this situation (considering also i'm using also OWA and Outlook mobile to work with emails)?

    Thanks

    Massimo Mattiello

    Was this answer helpful?


  2. Joyce Shen - MSFT 16,706 Reputation points
    2022-06-10T07:14:19.31+00:00

    Hi @Miba2504

    Glad to know that your issue is resolved now, I would make a brief summary of this post so that other forum members could easily find useful information here:

    [Exchange Online always redirects alias to primary smtp - Summary]

    Issue Symptom:
    Outlook rule not working for mailboxes located on-prem when the messages are sent to the mailbox alias.

    After the message arrives and...
    the header of the message contains the words 'alias@keyman .com'
    Do the following...
    move the message to folder 'COMPANY'
    and stop processing more rules on this message

    Solution:
    Move the on-prem mailbox to cloud, and the external emails send to the email alias can successfully apply the outlook rule and be moved to the specific folder.

    You could "Accept Answer" for this summary to close this thread, and your action would be helpful to other users who encounter the same issue and read this thread. Thanks for your understanding!


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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.

    Was this answer helpful?

    0 comments No comments

  3. Miba2504 21 Reputation points
    2022-06-01T07:18:43.177+00:00

    Dear Andy,

    Thank you for your feedback. I was also thinking about enabling this feature: "Send from aliases" in an effort to solve my problem...
    Now that you mentioned it as well, I'll try it out and see if it changes anything... I'll migrate the mailbox to exchange online first.

    @Joyce Shen - MSFT

    Dear Joyceshen, I came across this post as well: https://learn.microsoft.com/en-us/answers/questions/133111/alias-email-address-getting-replaced-by-primary-em.html
    Because it describes the same phenomenon as we have, only we have this issue as well from external senders... So if somebody outside our Exchange organization sends an email to "invoice@keyman .be", it gets redirected as well to "invoice.master@keyman .be". This issue is not related to only authenticated users...

    Kind regards,
    Michiel

    Was this answer helpful?


  4. Miba2504 21 Reputation points
    2022-05-31T14:47:06.82+00:00

    Dear Andy,

    In the attachment you can find the specific Outlook rule.

    After the message arrives and...
    the header of the message contains the words 'invoice2022@keyman .be' or 'invoice@keyman .be'

    Do the following...
    move the message to folder 'COMPANY'
    and stop processing more rules on this message

    This rule is: On!

    Thanks in advance.
    Kind regards,
    Michiel

    207049-invoice-mailbox-rule.jpg

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.