-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 24.12.2010 um 18:11 schrieb Henrique Fernandes:
> Gona firt migrate us...@domain1.com > > # chmod a-w /path/to/thatuserhome/ > > Now, dovecot can not write any emails there. Will will result in temporary > failure, at least in my conf it does. That seems a bit brute and will throw a good amount of log entries for sure. How about this. Implement a header check in Postfix and put the mail for the account to be maintained on HOLD: [ master.cf ] cleanup unix n - - - 0 cleanup -o header_checks=pcre:/etc/postfix/header_checks_maintenance $ cat /etc/postfix/header_checks_maintenance /^To:.*u...@domain.tld.*/ HOLD Planned maintenance for account […] All mail matching the regex will be put on hold. This will allow other users to resume operation. Disable new logins for the user by adding 'allow_net=" to his record, effectively disallowing all nets. Then kill his open sessions if any: $ doveadm who <user> $ doveadm kick <user> Perform the mdbox backup: $ dsync -v -u <user> backup mdbox:~/mdbox - - adjust userdb entries if required to reflect new 'mail_location' - - clean up/revoke/uncomment 'header_checks_maintenance' and 'allow_net' entries - - requeue/release HELD mails and flush queue $ postsuper -r <message> … $ postsuper -f Regards Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) iEYEARECAAYFAk0Yl38ACgkQ+meF/S97aXiijACgnArXmWOhnAkXoEtMJeqg8jjv GGsAn3L43ojC6npaWUFzwJpsir95fghn =SqwN -----END PGP SIGNATURE-----