In case when you need to sync/migrate emails from another server to your myVesta hosting panel, this script could be very useful.
Firstly, consider supporting 'imapsync' project by donation - https://imapsync.lamiral.info/#buy_all
Now, we will install imapsync, because it's not installed by default during myVesta installation. Here is the official GitHub link: https://github.com/imapsync/imapsync/bl ... Debian.txt
In your SSH, as root, run:
Code: Select all
apt update
### COPY-PASTE THIS AS ONE BLOCK ###
apt install -y \
libauthen-ntlm-perl \
libcgi-pm-perl \
libcrypt-openssl-rsa-perl \
libdata-uniqid-perl \
libencode-imaputf7-perl \
libfile-copy-recursive-perl \
libfile-tail-perl \
libio-socket-inet6-perl \
libio-socket-ssl-perl \
libio-tee-perl \
libhtml-parser-perl \
libjson-webtoken-perl \
libmail-imapclient-perl \
libparse-recdescent-perl \
libproc-processtable-perl \
libmodule-scandeps-perl \
libreadonly-perl \
libregexp-common-perl \
libsys-meminfo-perl \
libterm-readkey-perl \
libtest-mockobject-perl \
libtest-pod-perl \
libunicode-string-perl \
liburi-perl \
libwww-perl \
libtest-nowarnings-perl \
libtest-deep-perl \
libtest-warn-perl \
make \
time \
cpanminus
###
cd /root
git clone https://github.com/imapsync/imapsync.git
cd imapsync
chmod +x imapsync
./imapsync --testslive
Code: Select all
mkdir work
mkdir work/accounts
wget -nv -O /root/imapsync/work/create-mail-sync.sh https://c.myvestacp.com/tools/imapsync/create-mail-sync.sh
chmod u+x /root/imapsync/work/create-mail-sync.sh
wget -nv -O /root/imapsync/work/import-from-file.sh https://c.myvestacp.com/tools/imapsync/import-from-file.sh
chmod u+x /root/imapsync/work/import-from-file.sh
wget -nv -O /root/imapsync/work/run-all.sh https://c.myvestacp.com/tools/imapsync/run-all.sh
chmod u+x /root/imapsync/work/run-all.sh