linux

Plesk – email import – large folders

1 min read

When importing mailboxes that contain folders with many emails, the import tool may fail to synchronise. Following the instructions on the Plesk support site here, we can change the file /opt/plesk/python/2.7/lib64/python2.7/imaplib.py. The change goes in the line containing:

python
    _MAXLINE = 1000000

and the value is changed by adding 2 zeros, so it becomes:

python
    _MAXLINE = 100000000

After saving the changes, just go to the email import settings and click “resync” to continue the import process.

#email#linux#plesk