Inserting disclaimer on incoming mail from external senders makes rest of message text "small"

SteveSteve

New Member
Jan 3, 2025
3
0
1
Hi,

I'm trying to move as much configuration into Proxmox Mail Gateway as I can (and off of Exchange), as I've been having issues with Exchange only inserting my "this mail is from outside the organization" warning sometimes instead of all of time time.

I've copy and pasted my disclaimer text blurb from Exchange to PMG, as well as manually fiddled around with the HTML disclaimer, but, when Exchange (successfully) inserts the disclaimer, the message text is "normal sized", however when Proxmox Mail Gateway inserts the same disclaimer, the message text is "small", like 4 to 6 pixels tall on my screen I'd guess. The disclaimer text itself is normal sized, but everything after it, tiny.

Is there something I should be doing differently to insert a HTML disclaimer in Proxmox Mail Gateway?

If useful or relevant, this is the warning text / disclaimer I'm trying to insert.
HTML:
<table style="width: 100%;">
    <tr>
        <td class="left-column" style="background-color: #bba555; width: 5px; padding: 0;"></td>
        <td class="right-column" style="background-color: #ffe599; width: calc(100% - 5px); padding: 5px;"><b>WARNING:</b> This email originated from outside of the organization.</td>
    </tr>
</table>
 
Hello

i have seen this question pop up a few times.. like https://forum.proxmox.com/threads/adding-disclaimer-to-emails-originating-externally.122663/

i have seen a guide here https://imanudin.net/2023/02/16/add...odies-in-proxmox-mail-gateway-a-simple-guide/

i hope that the Proxmox Team adds a easyer way to add disclaimer to incomming mail.

i asked chatgtp about you´r issue and here is what it said.

The issue with the text size after the disclaimer being too small likely stems from CSS inheritance or unintentional cascading effects caused by the styles in the inserted disclaimer. Here's how you can address this problem effectively:

1.​

When Proxmox Mail Gateway inserts the disclaimer, the styles you define may unintentionally affect the rest of the email due to cascading. To prevent this:

  • Use inline styles as much as possible, as they have higher specificity and will not unintentionally propagate.
  • Avoid defining global styles (e.g., for &lt;td&gt; or &lt;table&gt;) and scope your styles tightly.
Here’s your adjusted disclaimer:
Code:
<table style="width: 100%; border-spacing: 0; border-collapse: collapse;">
    <tr>
        <td style="background-color: #bba555; width: 5px; padding: 0;"></td>
        <td style="background-color: #ffe599; padding: 5px; font-size: 14px; font-family: Arial, sans-serif; line-height: 1.5;">
            <b>WARNING:</b> This email originated from outside of the organization.
        </td>
    </tr>
</table>

2.​

After the disclaimer is inserted, Proxmox Mail Gateway does not automatically reset styles. This can affect subsequent email content. Ensure that styles after the disclaimer are explicitly reset to prevent unintended small text.

You can append this CSS after the disclaimer:
Code:
<div style="font-size: 14px; font-family: Arial, sans-serif; line-height: 1.5;">
    <!-- Email content continues here -->
</div>
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!