最近公司跨域迁移 Exchange2010 到 Exchange2016。由于邮箱数据是pst导入导出的,在回复以前的邮件时,会收到未送达的退信。
虽然可以重新输入地址解决,但同学用起来很不方便。后来经过查询,在新邮箱系统添加原邮箱系统的X500地址即可解决问题。
邮箱、通讯组、会议室等,都可使用下面的方法
一、原邮箱X500地址查看,及批量导出
原邮箱系统X500地址导出
Get-Mailbox -ResultSize unlimited |Select-Object PrimarySmtpAddress,LegacyExchangeDN|Export-Csv -Encoding utf8 -Path D:\scripts\x500.csv
x500.csv文件(修改后)
upn,x500zhaodongwei@demo.com,X500:/o=DEMO/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=user9e3fb5871111@demo.com,X500:/o=DEMO/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=???2222@demo.com,X500:/o=DEMO/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=??
二、新邮箱X500地址批量导入
Import-Csv D:\scripts\x500.csv | foreach {Set-Mailbox -Identity $_.upn -EmailAddresses @{Add= $_.x500}}