Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Exchange / Finding Duplicate E-mail (SMTP) Addresses in Exchange

March 15, 2024 Active DirectoryExchangePowerShell

Finding Duplicate E-mail (SMTP) Addresses in Exchange

In this article, we will show you how to find duplicate SMTP addresses in your Exchange Server organization. If your organization has non-unique SMTP addresses, Exchange returns an error when sending e-mails to those addresses:

Event ID: 9217
Event Source: MSExchangeTransport
More than one Active Directory object is configured with the recipient address [email protected]. Messages to this recipient will be deferred until the configuration is corrected in Active Directory.

More than one Active Directory object is configured with the recipient address. Event ID: 9217

This e-mail message will not be delivered to the recipient.

You may also face a situation when you create a new mailbox in the Exchange Server and get a message that a user with that SMTP address already exists:

The proxy address SMTP:[email protected] is already being used by the proxy address or LegacyExchnageDN. Please choose another proxy address.

The proxy address SMTP is already being used by the proxy address or LegacyExchnageDN

To resolve this error, you need to find the Active Directory objects to which the same SMTP address (alias) has been assigned.

You can use the Active Directory Users and Computers console (aduc.msc) to search for AD objects with a specific SMTP address:

  1. Run the console, go to Find -> Custom Search -> Advanced tab;
  2. Enter the following LDAP query: proxyaddresses=smtp:[email protected] (replace the username and domain with your own);
  3. Click Find; Find where a proxy address is used in AD
  4. The console will display all objects that have the proxyaddresses attribute that contains the email address you are looking for. In this example, you can see that different AD objects (user, contact, and Exchange distribution group) can contain the same proxy addresses;
  5. Manually change the value in the proxyaddresses attribute using the Active Directory attribute editor. Set unique SMTP addresses for the objects.

You can also use the Get-ADObject cmdlet from the Active Directory PowerShell module to search for objects in AD:

Get-ADObject -Properties mail, proxyAddresses -Filter {proxyAddresses -eq "smtp:[email protected]"}

Because an SMTP address can be assigned not only to a user, contact, or distribution group but also to an Exchange public folder, you sometimes need to use the Exchange Server cmdlets to search for objects that have the same SMTP address:

Get-Recipient -resultsize unlimited | where {$_.EmailAddresses -like "*[email protected]*"}

Alternatively, you can export the full list of email addresses in your Exchange organization:

Get-recipient -resultsize unlimited | select Name -expand emailaddresses > C:\PS\Results\all_smtp_adresses.txt

The user email address can be contained in the following attributes: userPrincipalName, mail, proxyAddresses, LegacyExchangeDN, or msRTCSIP-PrimaryUserAddress. One of the tools to search for duplicates and invalid e-mail addresses is the Microsoft IdFix (Directory Synchronization Error Remediation Tool). It allows you to check if your on-premises Active Directory can be synchronized with Azure AD.

Finding duplicate e-mail addresses with Microsoft IdFix

You can use IdFix to quickly find all email objects with non-unique/duplicate SMTP addresses within your domain.

Once that’s done, all you need to do is edit the SMTP alias or UserPrincipalName of one of the found objects.

0 comment
2
Facebook Twitter Google + Pinterest
previous post
How to Disable or Uninstall Internet Explorer (IE) in Windows
next post
Enable Internet Explorer (IE) Compatibility Mode in Microsoft Edge

Related Reading

Configure NTP Time Source for Active Directory Domain

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Uninstalling Windows Updates via CMD/PowerShell

April 18, 2025

Allowing Ping (ICMP Echo) Responses in Windows Firewall

April 15, 2025

How to Pause (Delay) Update Installation on Windows...

April 11, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Configure Google Chrome Settings with Group Policy
  • Allow Non-admin Users RDP Access to Windows Server
  • How to Disable or Enable USB Drives in Windows using Group Policy
  • How to Find the Source of Account Lockouts in Active Directory
  • Get-ADComputer: Find Computer Properties in Active Directory with PowerShell
  • Adding Domain Users to the Local Administrators Group in Windows
  • Configure Windows LAPS (Local Administrator Passwords Solution) in AD
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top