Nota Acap
  • Introduction
  • Linux Guide
    • Fresh Installed Centos 7
    • Changing Network Interfaces in Centos 7
    • Lockdown SSH
    • Recursively change permission Linux
    • Proxy Server IPtables
    • Provisioning Web Server with Custombuild
    • MySQL Basic Management
    • Increasing Existing LVM Disk
  • Windows Guide
  • Application Guide
    • WEB Port IPtables Rate Limit
    • Simple Email Piping Script
    • HTTP Dead
    • Email Relay Outgoing
    • Compiling Extra PHP version (Directadmin)
    • Finding the SPAM (cPanel)
    • HTTP Basic Virtual Host
    • Update Kernel for DRBD Hosts
  • Migration Related
    • Cpanel -> Cpanel (Bulk)
    • IMAPSYNC Basic Scripts
    • Directadmin -> cPanel (Copy/Sync Emails)
    • Basic Rsync Script
Powered by GitBook
On this page

Was this helpful?

  1. Migration Related

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/ root@sme09.small-dns.com:$new/$i/

done 
PreviousIMAPSYNC Basic ScriptsNextBasic Rsync Script

Last updated 6 years ago

Was this helpful?