Blocking Daily Spam Report for mailing list

kransom

New Member
Aug 22, 2023
22
1
3
Hi,

I have read multiple threads on my question, but I still am confused. I have a large user base for multiple domains being hosted on PMG. I have a list of mailing lists an alias addresses that do not need to receive a daily spam report. I know that spam reports will not go to anyone that does not have SPAM in their quarantine.
I created a who object containing the list of addresses to not receive daily reports. I also created a what object with a match field to block the subject line of the spam report, but that did not work. I also tried creating another who object with the postmaster address to block that from sending a report, but that also did not work.
I am using pmgqm send --receiver kransom@mydomain.org to test sending reports. Any insight to this is helpful. Thanks.
 
Locally generated mails on PMG - like the spamreport do not get passed through the rule-system - so this explain why you cannot block them from being sent.

One option that you could try is adding a rule with a priority higher than the rule that puts the mails in the spamquarantine:
* To object - containing all the mailinglists and other addresses that should not get a report
* Action object - Block or Accept - depending on what you want
then no mail for those addresses should end up in the quarantine - thus no report will be sent.

I hope this helps!
 
Setup seems simple enough and makes sense. Thank you. I'll try that out for a while, and see if this is what I am looking for.
 
This solution will not work as some of those aliases need to receive legitimate mail, and I cannot block all mail to those addresses. And just to clarify.
Blocking the subject line or from address is not plausible since the report is locally generated.
Is there no way to match the subject line or from address and block based on that?
From: Proxmox Mail Gateway <postmaster@mydomain.com>
Subject: Daily Spam Report for 'kransom@mydomain.com' - 2023-11-15

Any other solutions to try?
 
This solution will not work as some of those aliases need to receive legitimate mail, and I cannot block all mail to those addresses. And just to clarify.
- add the spam-level as what object based on which you want to block in addition
- add another rule with the same To object and action accept with a priority between the block rule for the addresses, and the general rule for quarantine ...

Blocking the subject line or from address is not plausible since the report is locally generated.
as said - locally generated mails do not pass at all through the rule-system!
(if nothing else works for you you can adapt the postfix configuration for the smtpd-listener on port 10025 and add the blocking there):
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
 

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!