Quarantine Mail only in Plaintext

iprigger

Renowned Member
Sep 5, 2009
192
43
93
earth!
Hi All,

Maybe it's a stupid question... but on the former versions (7, 8) of PMG the quarantine messages were "nicely" (i.e. manager friendly) formatted messages.

With the new version 9, this seems to have been changed. Or is it just me being stupid?

Tobias
 
I assume you mean the daily spamreport sent to users who have mails in their quarantine?
This is a change with PMG 9.0 - see https://pmg.proxmox.com/wiki/index.php/Roadmap#Proxmox_Mail_Gateway_9.0
The spamreport (and the admin report) now should send a text/plain version in addition to the text/html version (this one did not change since a long time).

Most mail-clients should display the text/html version unless you've set them to prefer and display the text/plain version (in which case you'd see a different report now)

how does the spamreport look like? (which mime-parts does it have)

do you have overrides for the report-templates?

See also https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
 
I assume you mean the daily spamreport sent to users who have mails in their quarantine?
This is a change with PMG 9.0 - see https://pmg.proxmox.com/wiki/index.php/Roadmap#Proxmox_Mail_Gateway_9.0
The spamreport (and the admin report) now should send a text/plain version in addition to the text/html version (this one did not change since a long time).

Most mail-clients should display the text/html version unless you've set them to prefer and display the text/plain version (in which case you'd see a different report now)

how does the spamreport look like? (which mime-parts does it have)

do you have overrides for the report-templates?

See also https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
yes, exactly.

No changes made to the templates - but I don't get the html version with the normal message...

Tried it on several systems - there is no attachment with HTML...

Tobias
 
Hello @Stoiko Ivanov

I have noticed that since upgrading to PMG 9.0, the Apple's email client on iPhone is showing the text/plain version instead of the text/html one. After consulting an AI, it appears that the body parts order is incorrect in PMG 9.0's generated report emails:

The email is formatted as a multipart/alternative MIME message, which provides alternative representations of the same content (in this case, an HTML version and a plain text version). According to the MIME standard (RFC 1521), the body parts in a multipart/alternative must be ordered in increasing preference, with the sender's preferred format placed last. Mail clients, including Apple's Mail app on iPhone, are expected to display the last part they can understand or render, overriding earlier parts.

In this email's source:
  • The text/html part appears first (after the boundary marker).
  • The text/plain part appears second (and last, before the closing boundary).
This makes the plain text version the sender's indicated preference. As a result, Apple Mail displays the plain text instead of the HTML, following the standard behavior. To prioritize HTML rendering, the sender would need to reverse the order: plain text first, then HTML last.

See: https://www.freesoft.org/CIE/RFC/1521/18.htm

Can you please provide a fix for this. Thank you.
 
  • Like
Reactions: sci