The following script reads the variables id and pass, which are in passtest.txt file in single line with a whitespace to separate,
and
sync the mailboxes from google app mail server to a zimbra mail server
while IFS=" " read id pass;
do
imapsync --syncinternaldates --useheader 'Message-Id' \
--host1 imap.googlemail.com --user1 $id@zimbraserver.in \
--password1 $pass --ssl1 \
--host2 mail.zimbraserver.in \
--port2 993 --user2 $id@zimbraserver.in \
--password2 $pass --ssl2 \
--authmech1 LOGIN --authmech2 LOGIN
done < passtest.txt
No comments:
Post a Comment