Symptoms
-
plesk repair mail
command fails with the following error:# plesk repair mail example.com
Repairing the mail server configuration
Reconfiguring the settings of domains: example.com …….. [OK]
Reconfiguring the mailboxes ……………………………….
[2016-09-13 15:56:14] ERR [util_exec] proc_close() failed [‘/usr/local/psa/admin/bin/mailname_repair’] with exit code [1] [FAILED]
– mailname_repair failed: Input parse error: Invalid or
unsupported Unicode character or escape sequence found in
string. UTF8 encoded characters and ‘u’ escape sequences are
not supported. Error occured at offset 2124, character ”.
Worker /usr/local/psa/admin/sbin/mailname_repair.worker failed
with exit status 1
Error messages: 0; Warnings: 0; Errors resolved: 0
exit status 1 -
In Domains > Email Addresses > [email protected] > Auto-Reply contains text in Japanese/French/German or other languages considered as NON-ASCII.
Cause
NON-ASCII symbols in Auto-Reply in one or several mailboxes. This is Plesk bug with ID #PPPM-4946 , that will be fixed in future Plesk updates.
Resolution
Until fix available, proceed with the following:
Workaround via Plesk
-
Connect to the server via SSH.
-
Locate all mailboxes with auto-reply feature enabled:
# plesk db “select m.mail_name, d.name AS domain from domains d, mail m where m.dom_id = d.id and m.autoresponder=’true'”
+———–+———-+
| john | example.com |
| jane | example.net |
+———–+———-+Note: In this output, emails with enabled auto-reply option are [email protected] and [email protected]
-
Log in to Plesk.
-
Temporary disable Auto-Reply for the found mailboxes via Domains > example.com > Email address > [email protected] > Auto-reply.
-
Run
plesk repair mail
again:# plesk repair mail
-
Turn back on Auto-Reply for mailboxes if needed in Domains > example.com > Email address > [email protected].
Automated solution with a script
-
Connect to the server via SSH.
-
Download the attached script:
# wget https://support.plesk.com/hc/en-us/article_attachments/360017476440/fix_plesk_repair_mail.sh
-
Give the execution permission:
# chmod +x fix_plesk_repair_mail.sh
-
Run the script:
# ./fix_plesk_repair_mail.sh
Note: This script produces a log file
repair-YYYYMMDD-hhmm.log
in/var/log/plesk/
with the result of commands.