Search This Blog

Friday, February 13, 2009

zimbra mail exchange mails synchronization using imapsync command

zimbra mail exchange mails synchronization using imapsync command

[File id has all users, password must be same replace otherwise write then into file and script accordingly]

for i in `cat id`
do
echo $i
#zimbra command to create a user with password 123456
#./zmprov ca $i@host.com

imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 hostip1 --user1 $i --password1 --host2 hostip2 --user2 $i --password2 --authmech1 PLAIN --authmech2 LOGIN

echo "----------------------------"
done

2 comments:

  1. You forgot some arguments,
    here is a more complete command line:
    imapsync --subscribed --subscribe \
    --syncinternaldates --host1 127.0.0.1 \
    --user1 $i --password1 secret1 \
    --host2 192.168.0.1 \
    --user2 $i --password2 secret1 \
    --authmech1 PLAIN --authmech2 LOGIN

    (Gilles LAMIRAL)

    ReplyDelete