Re: Disable user login for a few seconds ?

2014-07-04 Thread Robert Schetterer
Am 04.07.2014 10:52, schrieb Florent B: Hi all, I need to move e-mail files of my users from one file system to another. I use a MySQL backend on Dovecot 2.1. How can I do to disable temporary an account while moving files ? I have an active bit in my DB, but if I set it to 0, my MX

Re: Disable user login for a few seconds ?

2014-07-04 Thread Reindl Harald
Am 04.07.2014 11:46, schrieb Florent B: Thank you very much Robert. I also had a look at dsync tool. But I think it handles only mails directory, and not all user's home (my users's home contains indexes, Maildir and sieve directories) rsync --force --delete-after --devices --specials

Re: Disable user login for a few seconds ?

2014-07-04 Thread Nick Edwards
stop mail server daemons (you DO have a backup MX I hope if you only have one mail server), rsync, (or if theres not much, sshfs and cp -a) start mail server daemons. if this is a different machine, with new IP, hope you changed your DNS to TTL 0 - and did it at least 24 hours ago so changes are