How to solve conflict mail address when using aliased domain?
Currently I am using domain1.com on messaging server.
For some reason I have to merge users from domain2.com to the same messaging server.
How can I solve the email address conflict problem if two users have the same username on domain1 and domain2?
For example,
User1: ab@domain1.com
User2: ab@domain2.com
After adding associateddomain domain2.com to messaging server, it seems user1 will own ab@domain2.com automatically.
(The fact is: messaging server will do search on LDAP below:)
13:58:59.02:URL determined to be: ldap:///o%3Ddomain1.com%2Cdc%3Ddomain1%2Cdc%3Dcom?*?sub?(|(mail=ab@domain1.com) (mail=ab@domain2.com)(mailAlternateAddress=ab@domain1.com)(mailAlternateAddress= ab@domain2.com)(mailEquivalentAddress=ab@domain1.com)(mailEquivalentAddress=ab@d omain2.com))
How can user1 still own ab@domain1.com and user2 keep using his ab@domain2.com?
Here is the test result, after adding associated domain (domain2.com), user1 will own ab@domain2.com
//@msg#imsimta version
Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)
libimta.so 6.2-3.04 (built 01:32:55, Jul 15 2005)
SunOS msg 5.10 Generic_118855-19 i86pc i386 i86pc
//@msg#imsimta test -rewrite
Address:ab@domain2.com
forward channel= l
channel description=
channel user filter=
dest channel filter=
source channel filter =
channel flags #0= BIDIRECTIONAL MULTIPLE IMMNONURGENT NOSERVICEALL
channel flags #1= NOSMTP DEFAULT
channel flags #2= COPYSENDPOST COPYWARNPOST POSTHEADONLY HEADERINC NOEXPROUTE
channel flags #3= LOGGING NOGREY NORESTRICTED RETAINSECURITYMULTIPARTS
channel flags #4= EIGHTBIT NOHEADERTRIM NOHEADERREAD RULES
channel flags #5=
channel flags #6= LOCALUSER REPORTNOTARY
channel flags #7= NOSWITCHCHANNEL NOREMOTEHOST DATEFOUR DAYOFWEEK
channel flags #8= NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM
channel flags #9= NOTHURMAN INTERPRETENCODING USEINTERMEDIATE RECEIVEDFROM VALIDATELOCALSYSTEM NOTURN
defaulthost= domain1.com domain1.com
linelength = 1023
channel env addr type = SOURCEROUTE
channel hdr addr type = SOURCEROUTE
channel official host = msg.domain1.com
channel queue 0 name= LOCAL_POOL
channel queue 1 name= LOCAL_POOL
channel queue 2 name= LOCAL_POOL
channel queue 3 name= LOCAL_POOL
channel after params=
channel user name=
urgentnotices = 2 4 24
normalnotices = 2 4 24
nonurgentnotices= 2 4 24
channel rightslist ids =
nonurgentbackoff= PT10M PT30M PT1H PT2H
normalbackoff = PT10M PT30M PT1H PT2H
urgentbackoff = PT10M PT30M PT1H PT2H
local behavior flags= %x7
expandchannel =
notificationchannel=
dispositionchannel=
saslswitchchannel=
tlsswitchchannel=
backward channel= tcp_local
header To: address= ab@domain1.com
header From: address= ab@domain1.com
envelope To: address= ab@domain2.com (route (msg.domain1.com,msg.domain1.com)) (host domain2.com)
envelope From: address = ab@domain2.com
name=
mbox= ab
Extracted address action list:
ab@domain2.com
Extracted 733 address action list:
ab@domain2.com
Address list expansion:
23770@ims-ms-daemon
1 expansion total.
Expanded address:
ab@domain2.com
Submitted address list:
ims-ms
23770@ims-ms-daemon (orig ab@domain2.com, inter ab@domain2.com, host ims-ms-daemon) *NOTIFY-FAILURES* *NOTIFY-DELAYS*
Submitted notifications list:
Address:
23370 is the uid for user1 on domain1.com
--
I have also tried to assign mailEquivalentAddress (or mailAlternateAddress) for user1 and user2, but it seems user1 will still occupy ab@domain2.com
user1:
mail: ab@domain1.com
mailEquivalentAddress: a_b@domain2.com
user2:
mail: a_b@domain1.com
mailEquivalentAddress: ab@domain2.com
Address:ab@domain2.com
forward channel= l
channel description=
channel user filter=
dest channel filter=
source channel filter =
channel flags #0= BIDIRECTIONAL MULTIPLE IMMNONURGENT NOSERVICEALL
channel flags #1= NOSMTP DEFAULT
channel flags #2= COPYSENDPOST COPYWARNPOST POSTHEADONLY HEADERINC NOEXPROUTE
channel flags #3= LOGGING NOGREY NORESTRICTED RETAINSECURITYMULTIPARTS
channel flags #4= EIGHTBIT NOHEADERTRIM NOHEADERREAD RULES
channel flags #5=
channel flags #6= LOCALUSER REPORTNOTARY
channel flags #7= NOSWITCHCHANNEL NOREMOTEHOST DATEFOUR DAYOFWEEK
channel flags #8= NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM
channel flags #9= NOTHURMAN INTERPRETENCODING USEINTERMEDIATE RECEIVEDFROM VALIDATELOCALSYSTEM NOTURN
defaulthost= domain1.com domain1.com
linelength = 1023
channel env addr type = SOURCEROUTE
channel hdr addr type = SOURCEROUTE
channel official host = msg.domain1.com
channel queue 0 name= LOCAL_POOL
channel queue 1 name= LOCAL_POOL
channel queue 2 name= LOCAL_POOL
channel queue 3 name= LOCAL_POOL
channel after params=
channel user name=
urgentnotices = 2 4 24
normalnotices = 2 4 24
nonurgentnotices= 2 4 24
channel rightslist ids =
nonurgentbackoff= PT10M PT30M PT1H PT2H
normalbackoff = PT10M PT30M PT1H PT2H
urgentbackoff = PT10M PT30M PT1H PT2H
local behavior flags= %x7
expandchannel =
notificationchannel=
dispositionchannel=
saslswitchchannel=
tlsswitchchannel=
backward channel= tcp_local
header To: address= ab@domain2.com
header From: address= ab@domain2.com
envelope To: address= ab@domain2.com (route (msg.domain1.com,msg.domain1.com)) (host domain2.com)
envelope From: address = ab@domain2.com
name=
mbox= ab
Extracted address action list:
ab@domain2.com
Extracted 733 address action list:
ab@domain2.com
Address list expansion:
-17 expansion total.
Submitted address list:
Address list error -- 5.1.4 duplicate/ambiguous directory match: ab@domain2.com
Submitted notifications list:
Address:
Any sugestion for this issue? I appreicate for your reply.

