SMTP Addresses Tab: Swap Proxy - SwapTargetOnly
Created: 2013-03-20 10:19:06Modified: 2022-08-18 09:19:27
Tags: Active Directory Address Manipulation Custom Mapping Features UnitySync
The SwapProxy feature allows you to swap mail, targetaddress and proxyaddresses in favor of a specific email domain. The solution requires the originating source object to include a secondary smtp address of the desired domain. The secondary and the existing primary will be swapped (hence the name SWAP).
There may be a circumstance, however, where you want to swap just the targetaddress at Sync time.
To do so, implement SwapProxy as usual, then customize your map file to ensure your DN, mail and proxyaddresses do not get swapped.
Create a custom object map file
Change the DN mapping to use
^mail^
instead of~mail~
i.e.dn=cn=^mail#64^,~struct~
Change the mail mapping to use
^mail^
instead of~mail~
i.e. mail#256=^mail^
Change the proxyaddresses mapping to use
[allmail]
and add a new proxyaddresses line above it to define SMTP. Exact syntax is:
proxyaddresses=SMTP:^mail^
proxyaddresses=smtp:[allmail]
The default targetaddress mapping should remain unchanged. It uses
~target~
which is variable based on swap proxy.
targetaddress=~target~
If you need additional proxyaddresses like SIP or x500, see this knowledge base article for the specific mappings.
Save the file.
Run a new Simulation. You should see that with the above modifications, only targetaddress gets modified.