Directadmin -> cPanel (Copy/Sync Emails)
Simple scripts in copying emails from Directadmin to cPanel to it's correct directory
#!/bin/bash
set -x
current="/home/summerbay/imap/summerbayresort.com.my"
new="/home/summerbay/mail/summerbayresort.com.my"
for i in `cat $current/list.txt`; do
rsync --verbose --owner --group --progress --stats \
--recursive --times --perms --links --delete --rsh="/usr/bin/ssh -l root -p 9321" $current/$i/Maildir/ [email protected]:$new/$i/
done
Last updated
Was this helpful?