none
How to reply with a custom message if someone send an email to a specific disabled user account? RRS feed

  • Question

  • Hi All,
    We have some mail flow rules enabled in Exchange Online that reply with a custom message for some specific recipient address (disabled users accounts).
    Some of them works fine (old user accounts), but the new ones don't works.
    With the new ones we receive this error:
    550 5.1.10 RESOLVER.ADR.RecipientNotFound; Recipient xxx@domain.ext not found by SMTP address lookup

    Some difference between old disabled user accounts and new ones is that the new ones (that have problems) are not listed as "Mail user" in the contacts section of Exchange Online.
    The only thing changed is that the user accounts that are listed as "mail users" was imported some years ago from an on-premises Exchange installation.

    Anyway, my only goal is to reply with a custom message if someone send an email to a specific disabled user account.

    Any idea?
    Thanks
    Thursday, November 14, 2019 10:53 AM

Answers

  • Solution found with Microsoft tech support.
    I had to move the local disabled accounts to a dedicated AD OU and then disable the new OU sync with Azure AD, changing the settings in the "Azure AD Connect" configuration utlity.
    After this, you can create a contact (alwasy on your local AD) with the same email address on wich you want to enable the auto responder.
    After the final sync, the local disabled AD account will non longer exists on Azure AD, and the new contact will be synced in Azure AD.
    In this case, al works fine.

    Thanks to all for your support.
    • Marked as answer by thenewmessiah Wednesday, November 20, 2019 11:55 AM
    Wednesday, November 20, 2019 11:55 AM

All replies

  • Hi All,
    We have some mail flow rules enabled in Exchange Online that reply with a custom message for some specific recipient address (disabled users accounts).
    Some of them works fine (old user accounts), but the new ones don't works.
    With the new ones we receive this error:
    550 5.1.10 RESOLVER.ADR.RecipientNotFound; Recipient xxx@domain.ext not found by SMTP address lookup

    Some difference between old disabled user accounts and new ones is that the new ones (that have problems) are not listed as "Mail user" in the contacts section of Exchange Online.
    The only thing changed is that the user accounts that are listed as "mail users" was imported some years ago from an on-premises Exchange installation.

    Anyway, my only goal is to reply with a custom message if someone send an email to a specific disabled user account.

    Any idea?
    Thanks

    Why the need for a custom message? The sender is still going to get a NDR if the user doesnt exist.

    Are these mailboxes in Exchange Online or on-prem? A "mail user" contact means the user mailbox is not in Office 365.

    Thursday, November 14, 2019 11:14 AM
    Moderator


  • Anyway, my only goal is to reply with a custom message if someone send an email to a specific disabled user account.

    Any idea?
    Thanks

    Why the need for a custom message? The sender is still going to get a NDR if the user doesnt exist.

    Are these mailboxes in Exchange Online or on-prem? A "mail user" contact means the user mailbox is not in Office 365.

    We need to customize the NDR for some deactivated mailboxes in order to give more information about the new e-mail address to which send e-mails.

    The e-mail address on which we want to activate the custom NDR is related to disabled AD users synced with our Exchange Online.
    They don't have any mailbox activated.

    The old deactivated users that we see in the "mail users" tab in Exchange Online are old users that was configured on-premises before the migration on Exchange Online.
    For these users the custom NDR mail flow rule works fine.
    Thursday, November 14, 2019 2:17 PM


  • Anyway, my only goal is to reply with a custom message if someone send an email to a specific disabled user account.

    Any idea?
    Thanks

    Why the need for a custom message? The sender is still going to get a NDR if the user doesnt exist.

    Are these mailboxes in Exchange Online or on-prem? A "mail user" contact means the user mailbox is not in Office 365.

    We need to customize the NDR for some deactivated mailboxes in order to give more information about the new e-mail address to which send e-mails.

    The e-mail address on which we want to activate the custom NDR is related to disabled AD users synced with our Exchange Online.
    They don't have any mailbox activated.

    The old deactivated users that we see in the "mail users" tab in Exchange Online are old users that was configured on-premises before the migration on Exchange Online.
    For these users the custom NDR mail flow rule works fine.

    If those users are not synced/existing in Office 365, then it wont know about them and the message you are getting is expected. That lookup failure will occur before any transport rule. 

    Thursday, November 14, 2019 7:57 PM
    Moderator
  • Hi,

    Based on my testing, after syncing AD account to Exchange online, when user send emails to this account, it will try to deliver to Exchange on-premises.

    So, you need to add this account as mail user in Exchange on-premises, then create transport rule in Exchange on-premises to block those email which send to this disabled account.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Friday, November 15, 2019 8:33 AM
    Moderator
  • Hi,

    I am writing here to confirm with you how thing going now?

    If the above suggestion helps, please be free to mark it as an answer for helping more people.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Wednesday, November 20, 2019 11:37 AM
    Moderator
  • Solution found with Microsoft tech support.
    I had to move the local disabled accounts to a dedicated AD OU and then disable the new OU sync with Azure AD, changing the settings in the "Azure AD Connect" configuration utlity.
    After this, you can create a contact (alwasy on your local AD) with the same email address on wich you want to enable the auto responder.
    After the final sync, the local disabled AD account will non longer exists on Azure AD, and the new contact will be synced in Azure AD.
    In this case, al works fine.

    Thanks to all for your support.
    • Marked as answer by thenewmessiah Wednesday, November 20, 2019 11:55 AM
    Wednesday, November 20, 2019 11:55 AM
  • Hi,

    I am writing here to confirm with you how thing going now?

    If the above suggestion helps, please be free to mark it as an answer for helping more people.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Thanks for your support.

    Solution added as a reply on the top topic.

    Wednesday, November 20, 2019 11:55 AM
  • Hi,

    Glad to see this issue is solved, here is a summary about this thread:

    Question:

    Create auto reply for a local AD disabled account.

    Solution Summary:

    Move this AD account to a non-sync OU, this account will be remove from Azure AD. Create a mail contact from this AD account in Exchange on-premises and set auto reply with transport rule. Then, we could resync this account to Azure AD again.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Sunday, November 24, 2019 11:39 AM
    Moderator