Mail Gateway Report Style

iTweek

Well-Known Member
Jan 2, 2017
136
4
58
Moin Proxmox Team , user , community.

Ich habe eine frage zu daliy report.
Wir haben nun mehrere domains drauf laufen. Nicht jeder will die Daily Report bekommen.

Wie kann ich das auf einzelene oder meherer domains anwenden?

Da die Option "Custom" gibt. Aktuell habe ich es auf No Reports eingestellt.

Kann mir da wer weiter helfen?

lg Michu und Danke schon mal.
 
You can modify the rule system, and only move mails for specific domains to the spam quarantine.

No mails in spam quarantine => no daily report.
 
Okey.
Nicht das wir uns missversehen.

Ich möchte gerne das daily späm report weiterhin gesendet wird, aber nicht für jede mail adresse. Späm filter sollte aber weiterhin aktiv sein.
Mit der Regel System habe ich mich noch nicht wirklich beschäftigt.

Wie muss man das genau einstellen, lehrne gerne dazu ;)

danke
 
Okey.
Nicht das wir uns missversehen.

Ich möchte gerne das daily späm report weiterhin gesendet wird, aber nicht für jede mail adresse. Späm filter sollte aber weiterhin aktiv sein.
Mit der Regel System habe ich mich noch nicht wirklich beschäftigt.

Wie muss man das genau einstellen, lehrne gerne dazu ;)

danke

If you still not noticed it, this is an Englisch forum. (I assume we will open a German forum too in near future)

Such a rule will look like this:

from: anyone
to: mydomain.com
what: spam
action: quarantine

so only emails to "xy@mydomain.com" are moved to the quarantine.
 
Hello, I have posted on "German" forum.
is that wrong?

I'll try it out again. thx
 
Hello, I have posted on "German" forum.
is that wrong?

I'll try it out again. thx

You posted in the German Proxmox VE forum, I moved the thread to Mail Gateway forum.
I will discuss about a new German Forum for the Mail Gateway tomorrow with the rest of the team.
 
Ah okay. I did not notice :) Thank you. I'll watch it. Please contact me again
 
Hi,

I had a similar problem. I'm using a cronjob now to send those reports.

Disable the daily report in the gui and try something like this:

Code:
# this will output all recipients with mails in the spam quarantine:
pmgqm status -timespan yesterday| sed '1d' | awk '{ print $3; }'

# this will send the report to the given recipient:
pmgqm send -style verbose -timespan yesterday -receiver <recipient@domain.com>

You can wrap those commands in some for-loops, where you compare the recipient of quarantined mails with the list of users who want the report. Very easy and comfortable :)

Additionally you could send the report to an, hm, "admin" user with the "-redirect"-switch of "pmgqm send". So this admin user can check the messages in the spam quarantine. But please be careful as this could violate company policies, as you could possibly see mail which isn't meant for you to see ;)
 
Last edited:
ok thanks for your help. But I am now on the hose. xD
That you can not solve this easier ?. :D

So if I want the xyz the mail report gets, I have to paste this in crontab?


# this will send the report to the given recipient:
pmgqm send -style verbose -timespan yesterday -receiver <xyz@xyz.de>
pmgqm send -style verbose -timespan yesterday -receiver <xyz@xyz2.de>
pmgqm send -style verbose -timespan yesterday -receiver <xyz@xyz3.de>
pmgqm send -style verbose -timespan yesterday -receiver <xyz@xyz4.de>


is this right?
 
Hi,

I had a similar problem. I'm using a cronjob now to send those reports.

Disable the daily report in the gui and try something like this:

Code:
# this will output all recipients with mails in the spam quarantine:
pmgqm status -timespan yesterday| sed '1d' | awk '{ print $3; }'

# this will send the report to the given recipient:
pmgqm send -style verbose -timespan yesterday -receiver <recipient@domain.com>

You can wrap those commands in some for-loops, where you compare the recipient of quarantined mails with the list of users who want the report. Very easy and comfortable :)

Additionally you could send the report to an, hm, "admin" user with the "-redirect"-switch of "pmgqm send". So this admin user can check the messages in the spam quarantine. But please be careful as this could violate company policies, as you could possibly see mail which isn't meant for you to see ;)

To send to admin is this correct?

pmgqm send -style verbose -redirect <admin@admin.com
 
Can one also shout at all mailboxes? pmgqm send -style verbose -timespan yesterday -receiver <* @ xyz4.de> So everyone got the spam from the domain xyz?

pmgqm send -style verbose -timespan yesterday -receiver *@xyz4.de>

Or are only correct mailboxes?
Since I currently have only one domain that does not want to get mails.

Can one exclude only a domain from it?
 

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!