E-mails generated by cPanel do not conform to RFC2046

gramzon

Active Member
Dec 4, 2017
30
5
8
Croatia
cPanel Access Level
Root Administrator
Multipart e-mails generated by cPanel do not conform to RFC2046.

Specifically they are missing the close delimiter ( -- ) on the last boundary.

Here is an example of an affected e-mail. I have only isolated the boundaries:

Code:
Content-Type: multipart/mixed; boundary="mixed-Cpanel::Email::Object-5656-1570752648-0.871855538590609"
--mixed-Cpanel::Email::Object-5656-1570752648-0.871855538590609
Content-Type: multipart/alternative; boundary="alternative-Cpanel::Email::Object-5656-1570752648-0.0664815243214427"
--alternative-Cpanel::Email::Object-5656-1570752648-0.0664815243214427
--alternative-Cpanel::Email::Object-5656-1570752648-0.0664815243214427
Content-Type: multipart/related; boundary="related-Cpanel::Email::Object-5656-1570752648-0.0208768035383926"
--related-Cpanel::Email::Object-5656-1570752648-0.0208768035383926
--related-Cpanel::Email::Object-5656-1570752648-0.0208768035383926
--related-Cpanel::Email::Object-5656-1570752648-0.0208768035383926--
--alternative-Cpanel::Email::Object-5656-1570752648-0.0664815243214427--
--mixed-Cpanel::Email::Object-5656-1570752648-0.871855538590609
--mixed-Cpanel::Email::Object-5656-1570752648-0.871855538590609
As you can see the last boundary "mixed-Cpanel::Email::Object-5656-1570752648-0.871855538590609" is missing the close delimiter "--"

E-mails affected by this:
- The backup process completed.
- Backup transport errors.
- cPanel & WHM update failure in upcp script
- Out of memory: ⚠ The process “x” was terminated because the system is low on memory.
- HANG: ⚠: x (x.x.x.x)

It is possible there are other e-mails that are affected, but I have not received them.

This issue is causing problems with some mail scanners.

I am currently using WHM 86.0.22, but looking back through the e-mails it looks like this issue has been around for a long time.