Simply remove the passwords section from imap_users
Code:
domains=(
domain1 \
domain2 \
domainy)
users=(
user1@domain1 \
user2@domain1 \
userx@domain1 \
user1@domain2 \
user2@domain2 \
userx@domain2 \
user1@domainy \
user2@domainy \
userx@domainy)
and change imapsync_crontab to the following:
Code:
. imap_users #if in the same folder as imap_users else full-path to imap_users
src_srv = zimbra.server.com
dest_srv = backup.server.com
for ((i = 0 ; i < ${#users[@]} ; i++ ))
do
/usr/bin/imapsync --noauthmd5 --syncinternaldates --buffersize 65535000 --subscribe \
--host1 $src_srv --ssl1 --user1 ${users[$i]} --authuser1 adminusername --password1 adminpassword --nofastio1 --authmech1 LOGIN \
--host2 $dest_srv --ssl2 --user2 ${users[$i]} --authuser2 adminusername --password2 adminpassword --nofastio2 --authmech2 LOGIN
done I think that is what you need, let me know
Costa