MoveUser explanations...
I'm using the command MoveUser with the following arguments to move a mailbox from one store to another.
MoveUser \
> -l "ldap://vs-proxy-ldap.my.domain.be:389/o=univ cath louvain,c=be?(uid=map)" \
> -D "cn=Directory Manager" -w XX \
> -s vs-ms-3.my.domain.be \
> -x admin -p YY \
> -d vs-ms-1.my.domain.be \
> -a admin -v ZZ
ldapHost = vs-proxy-ldap.my.domain.be
ldapPort = 389
ldapBaseDN = o=univ cath louvain,c=be
ldapScope = 2
ldapFilter = (uid=map)
ldapBindDN= cn=Directory Manager
srcMailHost = vs-ms-3.my.domain.be
destMailHost = vs-ms-1.my.domain.be
sMailAdm = admin
dMailAdm = admin
=======================================================
mailstore-2-1.my.domain.be:{default\map} --> mailstore-1-1.my.domain.be:{default\map}
dn: employeenumber=815,ou=people,o=univ cath louvain, c=be
changetype: modify
mailhost: mailstore-1-1.my.domain.be
mailalternateaddress: map@mailstore-1-1.my.domain.be
vs-ms-3 is an alias for mailstore-2-1
vs-ms-1 is an alias for mailstore-1-1
I would like that the names vs-ms-x remain unchanged. Is it possible ?
Is the mailalternateaddress necessary ?
Thanks
# 1
No, the mailalternateaddress is only necessary if you want the user to get mail addressed to that specific address.
As for what's changing with the vs stuff are you talking about the mailhost entry? That has to change.
> I'm using the command MoveUser with the following
> arguments to move a mailbox from one store to
> another.
>
> MoveUser \
> > -l "ldap://vs-proxy-ldap.my.domain.be:389/o=univ
> cath louvain,c=be?(uid=map)" \
> > -D "cn=Directory Manager" -w XX \
> > -s vs-ms-3.my.domain.be \
> > -x admin -p YY \
> > -d vs-ms-1.my.domain.be \
> > -a admin -v ZZ
> ldapHost = vs-proxy-ldap.my.domain.be
> ldapPort = 389
> ldapBaseDN = o=univ cath louvain,c=be
> ldapScope = 2
> ldapFilter = (uid=map)
> ldapBindDN= cn=Directory Manager
> srcMailHost = vs-ms-3.my.domain.be
> destMailHost = vs-ms-1.my.domain.be
> sMailAdm = admin
> dMailAdm = admin
> ======================================================
> =
> mailstore-2-1.my.domain.be:{default\map} -->
> mailstore-1-1.my.domain.be:{default\map}
>
> dn: employeenumber=815,ou=people,o=univ cath
> louvain, c=be
>changetype: modify
> mailhost: mailstore-1-1.my.domain.be
> mailalternateaddress:
> map@mailstore-1-1.my.domain.be
>
>
> vs-ms-3 is an alias for mailstore-2-1
> vs-ms-1 is an alias for mailstore-1-1
>
> I would like that the names vs-ms-x remain unchanged.
> Is it possible ?
> Is the mailalternateaddress necessary ?
>
> Thanks
# 2
I don't want to use that mailalternateaddress but it is created automatically. How to avoid this ?I know that the mailHost has to change, but in my command line, I ask to change for vs-ms-1.my.domain.be and in the LDAP server it is changed in mailstore-1-1.my.domain.be !
# 3
> I don't want to use that mailalternateaddress but it
> is created automatically. How to avoid this ?
>
> I know that the mailHost has to change, but in my
> command line, I ask to change for
> vs-ms-1.my.domain.be and in the LDAP server it is
> changed in mailstore-1-1.my.domain.be !
Is vs-ms-1.my.domain.be a CNAME in DNS? That might be it. I didn't think that moveuser would be smart enough to switch it to whatever A record the CNAME would be pointing to but, you never know.
I'm not sure about the mailalternateaddress, are you saying that moveuser adds it or whatever provisioning tool you use adds it?
# 4
>
> Is vs-ms-1.my.domain.be a CNAME in DNS? That might
> be it. I didn't think that moveuser would be smart
> enough to switch it to whatever A record the CNAME
> would be pointing to but, you never know.
>
OK, we will find a workaround to modifiy the LDAP server after the MoveUser
or use the same name.
> I'm not sure about the mailalternateaddress, are you
> saying that moveuser adds it or whatever provisioning
> tool you use adds it?
MoveUser adds it automatically.
# 5
I'm sorry, I can't believe that MoveUser is adding a mailAlternateAddress by itself. That's simply not a job for MoveUser.
I personally shy away from using CNAMEs and other naming aliases, as it can be very confusing.
Messaging Server does, however, have a way to let it know you're doing that. It's the config setting,
local.imta.hostnamealiases
you can locate the doc on this here:
http://docs.sun.com/app/docs/doc/819-2651/6n4u5ce7i?a=view
# 6
> I'm sorry, I can't believe that MoveUser is adding a
> mailAlternateAddress by itself. That's simply not a
> job for MoveUser.
>
You will find hereafter the result of the 3 commands : ldapsearch, MoveUser, ldapsearch again
The file typescript has only be modified for typo errors, domain names and passwords
Script started on Tue Jan 09 15:30:07 2007
sh-3.00# ldapsearch -b "o=univ cath louvain,c=be" \
> -h vs-proxy-ldap.my.domain.be -p 389 \
> uid=form01 mailalternateaddress mail
version: 1
dn: uid=form01,ou=ext,o=univ cath louvain, c=be
mail: form01@my.domain.be
sh-3.00#
sh-3.00# MoveUser \
> -l "ldap://vs-proxy-ldap.my.domain.be:389/o=univ cath louvain,c=be?(uid=form01)" \
> -D "cn=Directory Manager" -w XX \
> -s vs-ms-1.my.domain.be \
> -x admin -p YY \
> -d vs-ms-4.my.domain.be \
> -a admin -v ZZ
ldapHost = vs-proxy-ldap.my.domain.be
ldapPort = 389
ldapBaseDN = o=univ cath louvain,c=be
ldapScope = 2
ldapFilter = (uid=form01)
ldapBindDN= cn=Directory Manager
srcMailHost = vs-ms-1.my.domain.be
destMailHost = vs-ms-4.my.domain.be
sMailAdm = admin
dMailAdm = admin
=======================================================
mailstore-1-1.my.domain.be:{default\form01} --> mailstore-2-2.my.domain.be:{default\form01}
dn: uid=form01,ou=ext,o=univ cath louvain, c=be
changetype: modify
mailhost: mailstore-2-2.my.domain.be
mailalternateaddress: form01@mailstore-2-2.my.domain.be
Mailbox {mailstore-1-1.my.domain.be}INBOX is empty
0 message(s) moved to => {mailstore-2-2.my.domain.be}INBOX
[Ok]
Creating Folder {mailstore-2-2.my.domain.be}Brouillons
Mailbox {mailstore-1-1.my.domain.be}Brouillons is empty
0 message(s) moved to => {mailstore-2-2.my.domain.be}Brouillons
[Ok]
Creating Folder {mailstore-2-2.my.domain.be}Corbeille
Mailbox {mailstore-1-1.my.domain.be}Corbeille is empty
0 message(s) moved to => {mailstore-2-2.my.domain.be}Corbeille
[Ok]
Creating Folder {mailstore-2-2.my.domain.be}SPAM
Mailbox {mailstore-1-1.my.domain.be}SPAM is empty
0 message(s) moved to => {mailstore-2-2.my.domain.be}SPAM
[Ok]
Creating Folder {mailstore-2-2.my.domain.be}Sortie
Mailbox {mailstore-1-1.my.domain.be}Sortie is empty
0 message(s) moved to => {mailstore-2-2.my.domain.be}Sortie
[Ok]
sh-3.00# ldapsearch -b "o=univ cath louvain,c=be" \
> -h vs-proxy-ldap.my.domain.be -p 389 \
> uid=form01 mailalternateaddress mail
version: 1
dn: uid=form01,ou=ext,o=univ cath louvain, c=be
mail: form01@my.domain.be
mailalternateaddress: form01@mailstore-2-2.my.domain.be
sh-3.00# exit
script done on Tue Jan 09 15:34:18 2007
