Backup and restore your imap mailboxes.
clone https://github.com/arkadiusjonczek/imapdump.git
cd imapdump
composer install
chmod u+x imap
./imapInfo about your mailbox usage and limit quota:
php imap info <host> <username>List all your mailboxes with number of messages:
php imap ls <host> <username>Backup your mailboxes to your filesystem:
php imap backup <host> <username> <filepath>Restore your mailboxes from filesystem backup:
php imap restore <host> <username> <filepath>Add email passwords in a configuration file:
cp config.sample.ini config.ini[accounts]
user@mail.com=password
user2@mail.com=password