Re: Properly "locking" a useraccount (on a proxy)

2014-10-24 Thread Timo Sirainen
On 21 Oct 2014, at 11:27, Ralf Hildebrandt wrote: > But how can I "lock" a user during migration? > > The plan is: > > > * lock the user > * kick the user (doveadm kick) > * migrate mailbox (some rsync magic) > * unlock the user again Alternative is to use "doveadm sync" and you d

Re: Properly "locking" a useraccount (on a proxy)

2014-10-22 Thread Benny Pedersen
On October 22, 2014 2:22:52 PM Ralf Hildebrandt wrote: * Benny Pedersen : Not my domain :) See my "lazy" comment above. If active state 2, then update postfix maps to query this, with a key result of defer if permit :) And dovecot auth to include active 1 or 2, then you manage the sql

Re: Properly "locking" a useraccount (on a proxy)

2014-10-22 Thread Ralf Hildebrandt
* Benny Pedersen : > > >for the "locked" user. But I'm lazy and would prefer a single place / > >a single query to lock the account > > Setup postfix to check the recipient account is active, then set a > temp new password while move mail to the new server, when its done > change password back to

Re: Properly "locking" a useraccount (on a proxy)

2014-10-21 Thread Benny Pedersen
for the "locked" user. But I'm lazy and would prefer a single place / a single query to lock the account Setup postfix to check the recipient account is active, then set a temp new password while move mail to the new server, when its done change password back to user, and setup postfix to kn

Re: Properly "locking" a useraccount (on a proxy)

2014-10-21 Thread Robert Schetterer
Am 21.10.2014 um 20:37 schrieb Ralf Hildebrandt: > * Ralf Hildebrandt : > >> 2) defer LMTP delivery somehow (Postfix is talking to dovecot's LMTP server) > > I could of course put a mysql: query into postfix which would return > > user@domain retry: > > for the "locked" user. But I'm lazy and

Re: Properly "locking" a useraccount (on a proxy)

2014-10-21 Thread Urban Loesch
Hi, Am 21.10.2014 20:37, schrieb Ralf Hildebrandt: * Ralf Hildebrandt : 2) defer LMTP delivery somehow (Postfix is talking to dovecot's LMTP server) I could of course put a mysql: query into postfix which would return user@domain retry: for the "locked" user. But I'm lazy and would prefer

Re: Properly "locking" a useraccount (on a proxy)

2014-10-21 Thread Ralf Hildebrandt
* Ralf Hildebrandt : > 2) defer LMTP delivery somehow (Postfix is talking to dovecot's LMTP server) I could of course put a mysql: query into postfix which would return user@domain retry: for the "locked" user. But I'm lazy and would prefer a single place / a single query to lock the account

Properly "locking" a useraccount (on a proxy)

2014-10-21 Thread Ralf Hildebrandt
I'm preparing a migration of several mailboxes to another machine. The different useraccounts are distributed to different backend machines by means of a dovecot LMTP/IMAP/POP proxy. Proxying is working really well (now that the kernel does as it should). But how can I "lock" a user during migrat