Cannot view the mail queue in the PA Provider Panel at Infrastructure > Service Nodes > mail node > Mail Server Settings > Mail Queue. One of the following errors is displayed:
Internal error: Message File JsonRpc.php Line 117 Type Service_Agent_Exception
Internal error: Message File JsonRpc.php Line 120 Type Service_Agent_Exception
The mail queue contains an email which has a non-unicode and non-latin characters in the subject field. This behavior is considered as a software issue PPA-3055. The fix is planned to be included in one of the next PA updates.
(Re)move the problem email from the mail queue. The messages are stored in
To find an ID of the message that has to be removed, execute the command on the mail node:
# /usr/local/psa/admin/bin/mailqueuemng --queue DHIAC -P1 -C25 -s EFA421085 (E, D) Return-path: Eletr▒nica <firstname.lastname@example.org From: Eletr▒nica email@example.com To: firstname.lastname@example.org Subject: Eletr▒nica n▒mero 044121 Date: Mon, 4 Jan 2016 21:12:18 +0100 (CET) Size: 7287 Message-Id: <20160104201218.XXXXXXX@aws1.dyndns.info> Timestamp: 1451935472 Queue time: 1451935472 Envelope Recipients (D): email@example.com
As a result, the mail queue will be displayed. The message with unparsed symbols in its headers is most probably the one that causing the problem (see example above).
Use it's id to remove from the queue:
# postsuper -d EFA421085
NOTE: If there are lots of emails, it is not possible to define corrupted one and you have to move them selectively or all of them until the error disappear.
NOTE: You may clear the mail queue with the following command:
postsuper -d ALL