In Progress CPANEL-42511 - email exim defer ( R=virtual_user T=dovecot_virtual_delivery defer (-1))

Operating System & Version
CentOS 7
cPanel & WHM Version
108.0.13

ilyasjaelani

Member
Jul 28, 2020
13
5
3
Indonesia
cPanel Access Level
DataCenter Provider
Dear All,

i am facing problem with e-mail, incoming e-mail is frozen with logs like this:


2023-03-06 13:20:38 1pZ4D5-000VWw-2c rewrite: malformed address: '> may not follow "'[email protected]'"
2023-03-06 13:20:38 1pZ4D5-000VWw-2c failed to read delivery status for [email protected] from delivery subprocess
2023-03-06 13:20:38 1pZ4D5-000VWw-2c lmtp transport process returned non-zero status 0x0100: exit code 1
2023-03-06 13:20:38 1pZ4D5-000VWw-2c == [email protected] R=virtual_user T=dovecot_virtual_delivery defer (-1)
2023-03-06 13:20:38 1pZ4D5-000VWw-2c Frozen
2023-03-06 13:54:40 1pZ4D5-000VWw-2c Message is frozen


what do I have to do?
 

phil99

Well-Known Member
Jun 10, 2018
55
20
58
UK
cPanel Access Level
Root Administrator
We have seen a few cases like this recently. I cannot be sure, but I think they started after the upgrade to WHM 108 with exim v4.96.

As the log entry in the original post shows, there is a malformed email address in the headers, or at least one that exim considers malformed. Similar to that email, we have seen addressess like:

"'[email protected]'" <[email protected]>

The single quotation marks inside the double quotation marks are what exim doesn't like and causes the error message, such as

rewrite: malformed address: '> may not follow "'[email protected]'"

There have possibly been other reasons for exim considering addresses malformed, but I have not studied these yet. The log entries in the second post do not appear to have been caused by single quotation marks.

It appears as though exim's parsing of addresses may have changed at some point. Whether this is a bug or correct behavior I don't know.
 

R4 Datacenter

Registered
Mar 7, 2023
2
0
1
Brazil
cPanel Access Level
Root Administrator
I have four servers.
Three of them are running cPanel/WHM 108.0.14. In these servers I have the same issue.
One of them is running cPanel/WHM 106.0.18. In this server I don't see the error message ( rewrite: malformed address: ) .

I noticed that this happens only to our customes using 3rd party softwares ( like ERP's ). When sending messages from webmail and standard mail softwares, like Microsoft Outlook ou Mozila Thunderbird, the e-mail account is working perfectly.
 
Last edited:

ilyasjaelani

Member
Jul 28, 2020
13
5
3
Indonesia
cPanel Access Level
DataCenter Provider
Hi,

I have also created a ticket and the cpanel team has provided suggestions below:

We do have an internal case on the issue with case ID CPANEL-42511. While I do not have an ETA of resolution on the case, I encourage you to follow this support article in order to receive updates on it:

In v108, Exim's "EXPERIMENTAL: Rewrite From: header to match actual sender" fails when the "TO" header is separated with a semicolon


Section 3.6.3 of RFC5322 does not appear to be widely enforced, and was not enforced by cPanel's implementation of Exim previously.

Current workaround are:

  • Update mailing scripts and email clients to separate recipient addresses with commas instead of semi-colons.
  • Disable WHM -> Exim Configuration Manager -> "EXPERIMENTAL: Rewrite From: header to match actual sender.
 

phil99

Well-Known Member
Jun 10, 2018
55
20
58
UK
cPanel Access Level
Root Administrator
Thanks ilyasjaelani. We have disabled the "EXPERIMENTAL: Rewrite" setting for now. The default is "disable", but it was set to "all", though we don't remember explicitly enabling it.
 
Mar 9, 2006
12
2
153
Mexico City
cPanel Access Level
DataCenter Provider
Hello,

We have the same issue and it started happening since cpanel upgrade to v108.
We had to disable "EXPERIMENTAL: Rewrite From" even though it was very useful in the past, but now it's causing occasionally delivery problems from legitimate emails.

Is there an internal case working on ways to fix this?