[Dovecot] Post login scripting and imapsync on user login

Robert Schetterer robert at schetterer.org
Fri Feb 18 16:22:04 EET 2011


Am 18.02.2011 13:25, schrieb Tomislav Mihalicek:
> 
> Did anyone set up the enviroment in dovecot with post login scripting in
> which imapsync does sync between two mailservers on users login (on login
> sync mail from old to new mailserver) is there a alternative or different
> approach?
> 
> something like
> 
> #!/bin/bash
> /usr/bin/imapsync --syncinternaldates --nosyncacls --authmech1 PLAIN --host1
> old.server.com --user1 $USER*master --password1 master --authmech2 PLAIN
> --host2 new.server.com --user2 $USER*master --password2 master
> exec /usr/lib/dovecot/imap "$@"
> 
> thanx

hm i may fail here, but there might be a lot of imap logins session
such heavy process may overload your system

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


More information about the dovecot mailing list