• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Email Import Fail

stefanb

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Version 18.0.62 Update #2
Hello,

I'm having some problems importing a mailbox from another Linux panel into Plesk using the mail importer.

I've tried multiple mailboxes on the domain to transfer to Plesk and they all error.

Any help with this error would be appreciated.

Failed to connect to the source server and copy mail messages [Hide details]
Command execution failed on the local server with non-zero exit code.
command: /usr/local/psa/admin/plib/modules/site-import/backend/lib/python/parallels/core/extras/mail-migrator/linux/mail-migrator migrate --source-account-description-file=/usr/local/psa/var/modules/site-import/sessions/mail-migration-3/mail_migrator_source_account_2024-08-06-18-10-24-1_1 --source-message-ids-cache-file=/usr/local/psa/var/modules/site-import/sessions/mail-migration-3/mail_message_ids_cache.f5287b4536280f8af68b8c5dd01abac2 --target-account-description-file=/usr/local/psa/var/modules/site-import/sessions/mail-migration-3/mail_migrator_target_account_2024-08-06-18-10-24-1_1 --backup-progress-file=/usr/local/psa/var/modules/site-import/sessions/mail-migration-3/mail_migrator_backup_progress_2024-08-06-18-10-24-1_1.json --restore-progress-file=/usr/local/psa/var/modules/site-import/sessions/mail-migration-3/mail_migrator_restore_progress_2024-08-06-18-10-24-1_1.json --source-ca-bundle=/usr/local/psa/admin/plib/modules/site-import/backend/lib/python/parallels/core/extras/cacert/cacert.pem --target-server-type=dovecot --source-host=mail.intraweb.uk --source-port=993 --source-timeout=30 --source-imap-protocol=imap-over-ssl --stop-mark-file=/usr/local/psa/var/modules/site-import/sessions/mail-migration-3/tasks/2024-08-06-18-10-24-1/stop
exit code: 1
stdout:
stderr: Failed to backup message #10 (UID 10) in IMAP folder '"2024"': 'utf-8' codec can't decode bytes in position 2347-2348: invalid continuation byte

Failed to backup message #127 (UID 127) in IMAP folder '"Trash"': 'utf-8' codec can't decode byte 0xcd in position 8105: invalid continuation byte

Failed to backup message #182 (UID 183) in IMAP folder '"Trash"': 'utf-8' codec can't decode bytes in position 7665-7666: invalid continuation byte

Failed to backup message #230 (UID 231) in IMAP folder '"Trash"': 'utf-8' codec can't decode byte 0xcd in position 9554: invalid continuation byte

Failed to backup message #235 (UID 236) in IMAP folder '"Trash"': 'utf-8' codec can't decode byte 0xcd in position 8140: invalid continuation byte

Failed to backup message #239 (UID 240) in IMAP folder '"Trash"': 'utf-8' codec can't decode byte 0x92 in position 10475: invalid start byte

Failed to backup message #1 (UID 1) in IMAP folder '"Junk"': 'utf-8' codec can't decode byte 0xae in position 5664: invalid start byte

Failed to backup message #5 (UID 5) in IMAP folder '"Junk"': 'utf-8' codec can't decode byte 0xeb in position 6270: invalid continuation byte

Failed to backup message #7 (UID 7) in IMAP folder '"Junk"': 'utf-8' codec can't decode byte 0xeb in position 6207: invalid continuation byte

Failed to backup message #164 (UID 165) in IMAP folder '"Archive"': 'utf-8' codec can't decode byte 0xe2 in position 7362: invalid continuation byte

Failed to backup message #217 (UID 218) in IMAP folder '"Archive"': 'utf-8' codec can't decode bytes in position 8723-8724: invalid continuation byte

Failed to backup message #218 (UID 219) in IMAP folder '"Archive"': 'utf-8' codec can't decode bytes in position 2389-2390: invalid continuation byte

Failed to backup message #224 (UID 225) in IMAP folder '"Archive"': 'utf-8' codec can't decode byte 0xcd in position 8109: invalid continuation byte

Failed to backup message #259 (UID 260) in IMAP folder '"Archive"': 'utf-8' codec can't decode byte 0xcd in position 9523: invalid continuation byte
 
That’s perfect. It worked.

I thought I was going to have to painfully manually migrate the mailboxes.

Thanks for your help.
 
We have released an update which fixes the "utf-8' codec can't decode" error. If you have automatic updates enabled this update should be installed automatically. Site Import 1.8.1:

Fixed the issue where migration of mailboxes with emails that contained some Latin-1 encoded symbols could fail. (PMT-5354)

Please let us know if you encounter any further issues.
 
Back
Top