Daily Spam Report Customization

ejmerkel

Active Member
Sep 20, 2012
75
0
26
What is the proper format for the Spam Detector -> Quarantine -> Email 'From:' ?

Would and entry as follows be correct?

section: spamquar
mailfrom 'Company Email Filter <admin@domain.com>'


Also, is it possible to customize the email template for the Daily Spam Report?

Thanks,
Eric
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
2,316
241
63
Would and entry as follows be correct?

section: spamquar
mailfrom 'Company Email Filter <admin@domain.com>'
you can set that via GUI (and doing so results in a similar line, but without the "'"
see: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_spamdetector

Also, is it possible to customize the email template for the Daily Spam Report?
yes - by using PMGs templating mechanism https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_service_configuration_templates

It should work by just creating '/etc/pmg/templates/spamreport-custom.tt and setting the report-style to custom.

Hope this helps!
 

diegola

New Member
Nov 14, 2019
2
0
1
32
I have the same doubt, I got Mail Gateway 5.1-4, I don't have a subscription. Following the link of Spam detector,

you can set that via GUI (and doing so results in a similar line, but without the "'"
see: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_spamdetector
I only have 3 buttons
- Options
- Quarantine
- Status
You said that I can create a file name spamreport-custom.tt

It should work by just creating '/etc/pmg/templates/spamreport-custom.tt and setting the report-style to custom.
But what should be the content of the file to customize it, I would like to insert an image of my company to look more serious when users received the report, how can I do that.
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
2,316
241
63
But what should be the content of the file to customize it, I would like to insert an image of my company to look more serious when users received the report, how can I do that.
check the shipped verbose report '/var/lib/pmg/templates/spamreport-verbose.tt' and adapt that to your needs
(it's mostly html)
 
  • Like
Reactions: diegola

diegola

New Member
Nov 14, 2019
2
0
1
32
check the shipped verbose report '/var/lib/pmg/templates/spamreport-verbose.tt' and adapt that to your needs
(it's mostly html)
Thanks a lot, I already modify the template, my doubt now is, how can I check or generate a daily mail spam to view the new look?

I think that this mail is generate automatic daily when discover a new mail on Spam inbox.
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
2,316
241
63
hm - you can send a test-spam-mail (GTUBE) to your account, and afterwards run `pmgqm send --timespan today` - that should result in you receiving the quarantine report.

I hope this helps!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!