Hello everyone,
I have taken the trouble to make my spam report a little prettier.
I wanted to share the result with you and hope it's OK. If this is not desired, please delete my post.
The aim was to make the whole look and feel a bit more modern and user-friendly, to refresh it completely and to translate it into German without restricting the functions.
I have applied a bit of HTML and CSS and take some help of ChatGPT to centralise the report boxed. At the top there is a header with a background colour and an embedded logo. The header has a forced paragraph and the date format is formatted to dd.mm.yyyy everywhere.
The action links are now displayed as buttons.
At the bottom there is a section for the reference to the web interface and a disclaimer.
I have censored the recipient e-mail address here:
I tested the spam report with MS Outlook 2019-2024, Exchange OWA & iOS.
The source code must be saved once as spamreport-custom.tt:
If you are using a PMG cluster, you must copy the file to all nodes.
In order to use the custom template, you must set ‘User Spamreport Style’ to Custom in the GUI under Configuration > SPAM Detector > Quarantine.
You can then test the whole thing using:
However, a spam report is only sent if the specified e-mail address currently also has objects in quarantine
I have attached the source code of my spamreport-custom.tt. I have added comments to some lines; colours, logo, buttons and disclaimer are all freely editable.
I have taken the trouble to make my spam report a little prettier.
I wanted to share the result with you and hope it's OK. If this is not desired, please delete my post.
The aim was to make the whole look and feel a bit more modern and user-friendly, to refresh it completely and to translate it into German without restricting the functions.
I have applied a bit of HTML and CSS and take some help of ChatGPT to centralise the report boxed. At the top there is a header with a background colour and an embedded logo. The header has a forced paragraph and the date format is formatted to dd.mm.yyyy everywhere.
The action links are now displayed as buttons.
At the bottom there is a section for the reference to the web interface and a disclaimer.
I have censored the recipient e-mail address here:
I tested the spam report with MS Outlook 2019-2024, Exchange OWA & iOS.
The source code must be saved once as spamreport-custom.tt:
Code:
nano /var/lib/pmg/templates/spamreport-custom.tt
If you are using a PMG cluster, you must copy the file to all nodes.
In order to use the custom template, you must set ‘User Spamreport Style’ to Custom in the GUI under Configuration > SPAM Detector > Quarantine.
You can then test the whole thing using:
Code:
pmgqm send --receiver email@yourdomain.com
I have attached the source code of my spamreport-custom.tt. I have added comments to some lines; colours, logo, buttons and disclaimer are all freely editable.
Attachments
Last edited: