Trying to enable master users to migrate an old server.
In the old server I can activate the master user, but in the new, I tried following dovecot documentation without success (Master users/passwords — Dovecot documentation).
When I try to log-in using user user*masteruser and pass masterpass I always have auentication failed.
Is there any tricks or limitation ?
There is no real need to do this as you can read a users mail from virtualmin without setting this up. There is also an option in webmin to read mail also. 3rd option is to log into usermin as the user from the virtualmin edit user screen
Are you just moving mail accounts? What platform are you moving from? I wrote a script that is mainly documentation when I had to move users from ‘Webozo’. Mainly small sites without a ton of accounts so it wasn’t too painful.
I know I had to tease out a users list, rsynced the folders and then the script chowned the folders after getting the correct values from the new account settings.
More info:
Source mail server is an old Centos 6.x, but this doesn’t matter.
Only interested in moving mail accounts
It use Dovecot with standard unix users.
mbox format
I already moved few accounts to another server based on iredmail without problems.
I usually transfer mail accounts using imapsync ( https://imapsync.lamiral.info/ ).
So I can also convert to MailDir format.
My only problem is how to enable master users in the new mail server (virtualmin on Rocky 9.2).
I can copy passwd/shadow so I can create users in the new server without knowing the users password.
I need to transfer some hundreds of users so I can’t ask the password to the users.
My alternative option is to set a (temporary), new password to the users in the destination server, but I prefer enable the master users that is more flexible and give the possibility to do a more real test before the final sync.
Thanks, P.
If it is mbox format that’s a problem. Years, maybe a couple decades, ago I used a fetchmail script. Someone on the fetchmail mailing list was kind enough to help me out after they changed fetchmail because it was possible to expose passwords. Something my script relied on when I wrote it and got changed before I was able to use it.
I wanted to just get the old fetchmail but one of the users took pity on me and sent me a modified script.
This can be useful to manually convert an mbox folder into MailDir folder, but It isn’t my need (I already do it using the IMAP servers and can sync modifications using imapsync).