Anpassung des Spam-Reports

Dec 17, 2025
5
1
3
Ich möchte die aktuelle Konfiguration des Spam-Reports anpassen und stehe hier vor folgender Hürde:

IST:
Eingang der E-Mail in der Quarantäne am 26.05.2026 07:55:56 - dieses E-Mail erscheint aktuell aber erst
in dem Spam-Report am 27.05.2026 09:00.

SOLL:
09:00 und 16:00 soll unverändert bleiben, aber:

E-Mails die zwischen 09:00 und 16:00 eingehen sollen in dem Bericht um 16:00 aufgeführt werden
E-Mails die zwischen 16:00 und 09:00 eingehen sollen in dem Bericht des Folgetages um 09:00 aufgeführt werden

Ich freue mich auf Eure Unterstützung!


Nachfolgend die aktuelle Konfiguration der .Service und .timer

pgmspamreport.service
### Editing /etc/systemd/system/pmgspamreport.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

### Edits below this comment will be discarded

### /usr/lib/systemd/system/pmgspamreport.service
# [Unit]
# Description=Send Daily Spam Report Mails
# ConditionPathExists=/usr/bin/pmgqm
# After=postfix.service
# After=postgresql.service
# Wants=postfix.service
# Wants=postgresql.service
#
# [Service]
# Type=oneshot
# ExecStartPre=-/usr/bin/pmgqm purge
# ExecStart=/usr/bin/pmgqm send --timespan yesterday


pgmspamreport.timer
### Editing /etc/systemd/system/pmgspamreport.timer.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Timer]
OnCalendar=
OnCalendar=09:00
OnCalendar=16:00

### Edits below this comment will be discarded


### /usr/lib/systemd/system/pmgspamreport.timer
# [Unit]
# Description=Send Daily Spam Report Mails
#
# [Timer]
# OnCalendar=00:05
# Persistent=true
#
# [Install]
# WantedBy=timers.target
 
Ich möchte die aktuelle Konfiguration des Spam-Reports anpassen und stehe hier vor folgender Hürde:

IST:
Eingang der E-Mail in der Quarantäne am 26.05.2026 07:55:56 - dieses E-Mail erscheint aktuell aber erst
in dem Spam-Report am 27.05.2026 09:00.

SOLL:
09:00 und 16:00 soll unverändert bleiben, aber:

E-Mails die zwischen 09:00 und 16:00 eingehen sollen in dem Bericht um 16:00 aufgeführt werden
E-Mails die zwischen 16:00 und 09:00 eingehen sollen in dem Bericht des Folgetages um 09:00 aufgeführt werden

Ich freue mich auf Eure Unterstützung!


Nachfolgend die aktuelle Konfiguration der .Service und .timer

pgmspamreport.service
### Editing /etc/systemd/system/pmgspamreport.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

### Edits below this comment will be discarded

### /usr/lib/systemd/system/pmgspamreport.service
# [Unit]
# Description=Send Daily Spam Report Mails
# ConditionPathExists=/usr/bin/pmgqm
# After=postfix.service
# After=postgresql.service
# Wants=postfix.service
# Wants=postgresql.service
#
# [Service]
# Type=oneshot
# ExecStartPre=-/usr/bin/pmgqm purge
# ExecStart=/usr/bin/pmgqm send --timespan yesterday


pgmspamreport.timer
### Editing /etc/systemd/system/pmgspamreport.timer.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Timer]
OnCalendar=
OnCalendar=09:00
OnCalendar=16:00

### Edits below this comment will be discarded


### /usr/lib/systemd/system/pmgspamreport.timer
# [Unit]
# Description=Send Daily Spam Report Mails
#
# [Timer]
# OnCalendar=00:05
# Persistent=true
#
# [Install]
# WantedBy=timers.target

Hi,

es sollte ausreichen, diese Zeile zu ändern von
Code:
ExecStart=/usr/bin/pmgqm send --timespan yesterday

in
Code:
ExecStart=/usr/bin/pmgqm send

SO hab ich das bei mir gemacht. Der Service arbeitet jetzt zumindest so, dass aufkommender Spam um 9 Uhr und um 16 Uhr bekannt gegeben wird, sofern das vorher noch nicht gemacht wurde.

Du siehst natürlich nur den neueren Spam. Was bereits per Report kommuniziert wurde, wird nicht nochmal per Report kommuniziert werden.
 
  • Like
Reactions: 4ge78f3ff