Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

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

January 27, 2023 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 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

In order 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

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

October 15, 2023

How to Query and Change Teams User Presence...

October 8, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

Leave a Comment Cancel Reply

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

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

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 Find the Source of Account Lockouts in Active Directory
  • How to Disable or Enable USB Drives in Windows using Group Policy
  • Get-ADComputer: Find Computer Properties in Active Directory with PowerShell
  • Refresh AD Groups Membership without Reboot/Logoff
  • How to Automatically Fill the Computer Description in Active Directory
Footer Logo

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


Back To Top