[Dovecot] migrate 15K users to new domain name

Jan-Frode Myklebust janfrode at tanso.net
Thu Apr 19 17:19:30 EEST 2012


On Thu, Apr 19, 2012 at 05:03:01PM +0300, Odhiambo Washington wrote:
> >
> 
> In my setup, I have virtual users. So the home directory is in the
> /var/spool/virtual/$domain/$user/mdbox
> 
> How is yours setup?

	mail_home = /srv/mailstore/%256LRHu/%Ld/%Ln

> If the domain name changed, from domain1 to domain2, I
> believe it would be easy to change as follows:
> 
> cd /var/spool/virtual/
> mv $domain1 $domain2

If I could figure out what the %256LRHu hash is, mv would probably be a
very good solution..

> 
> And the login names are stored in a flatfile or db??

LDAP

> Either way, you can do a rename.

No, we need to keep the old username/password working, so that all users
will get notified of the changed -- even if they take off on a 6 month 
vacation the day before the change.

> 
> Maybe I still don't understand you:-)

You seem to be understanding perfectly well. I've been looking myself
blind on dsync mirror, when a simple "mv" probably will work just as
well :-)


   -jf



More information about the dovecot mailing list