Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • 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 2012
    • 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 username@woshub.com. 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:user2@woshub.com 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:jsmith@woshub.com (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:jsmith@woshub.com"}

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 "*jsmith@woshub.com*"}

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
1
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 Network Settings on Windows with PowerShell: IP...

March 24, 2023

Exchange Offline Address Book Not Updating in Outlook

March 21, 2023

How to Restore Deleted Users in Azure AD...

March 16, 2023

Send-MailMessage: Sending E-mails with PowerShell

March 14, 2023

Clear Cache and Temp Files in User Profiles...

March 13, 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

  • How to Run Program without Admin Privileges and Bypass UAC Prompt?

    March 24, 2023
  • Configure Network Settings on Windows with PowerShell: IP Address, DNS, Default Gateway, Static Routes

    March 24, 2023
  • Exchange Offline Address Book Not Updating in Outlook

    March 21, 2023
  • Attaching Host USB Devices to WSL or Hyper-V VM

    March 20, 2023
  • Sending an E-mail to a Microsoft Teams Channel

    March 17, 2023
  • How to Restore Deleted Users in Azure AD (Microsoft 365)?

    March 16, 2023
  • Fix: Remote Desktop Services Is Currently Busy

    March 15, 2023
  • Send-MailMessage: Sending E-mails with PowerShell

    March 14, 2023
  • Clear Cache and Temp Files in User Profiles on Windows (RDS) with PowerShell and GPO

    March 13, 2023
  • Prevent Users from Creating New Groups in Microsoft 365 (Teams/Outlook)

    March 6, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Configure Google Chrome Settings with Group Policy
  • How to Find the Source of Account Lockouts in Active Directory?
  • Get-ADComputer: Find Computer Properties in Active Directory with PowerShell
  • How to Disable or Enable USB Drives in Windows using Group Policy?
  • How to Automatically Fill the Computer Description in Active Directory?
  • Adding Domain Users to the Local Administrators Group in Windows
  • How to Disable NTLM Authentication in Windows Domain?
Footer Logo

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


Back To Top