[SOLVED] Is Mail Filter priority working properly?

Jul 4, 2022
77
10
13
Poland
I have Blacklist priority set to 98, than Quarantine/Mark Spam set to 80 but from what I see in my logs

Code:
2025-07-11T09:45:26.682048+02:00 pmg postfix/smtpd[10870]: connect from mail.taskflame.pl[51.91.254.67]
2025-07-11T09:45:26.821662+02:00 pmg postfix/smtpd[10870]: Anonymous TLS connection established from mail.taskflame.pl[51.91.254.67]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)
2025-07-11T09:45:26.945307+02:00 pmg postfix/smtpd[10870]: E68CA242160: client=mail.taskflame.pl[51.91.254.67]
2025-07-11T09:45:26.979582+02:00 pmg postfix/cleanup[10700]: E68CA242160: message-id=<20250711084500-0.1.j9.3e7nh.0.74l10gjmq5@taskflame.pl>
2025-07-11T09:45:26.985852+02:00 pmg postfix/smtpd[10870]: disconnect from mail.taskflame.pl[51.91.254.67] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
2025-07-11T09:45:26.985990+02:00 pmg postfix/qmgr[2183]: E68CA242160: from=<pawel.sokalski@taskflame.pl>, size=2326, nrcpt=1 (queue active)
2025-07-11T09:45:27.035243+02:00 pmg pmg-smtp-filter[10709]: 2421666870C117077A2: new mail message-id=<20250711084500-0.1.j9.3e7nh.0.74l10gjmq5@taskflame.pl>#012
2025-07-11T09:45:28.801121+02:00 pmg pmg-smtp-filter[10709]: 2421666870C117077A2: SA score=0/5 time=1.740 bayes=undefined autolearn=ham autolearn_force=no hits=AWL(0.078),DKIM_SIGNED(0.1),DKIM_VALID(-0.1),DKIM_VALID_AU(-0.1),DKIM_VALID_EF(-0.1),DMARC_PASS(-0.1),SPF_HELO_NONE(0.001),SPF_PASS(-0.001)
2025-07-11T09:45:28.803208+02:00 pmg pmg-smtp-filter[10709]: 2421666870C117077A2: block mail to <p.baczek@retech.pl> (rule: Blacklist)
2025-07-11T09:45:28.807290+02:00 pmg pmg-smtp-filter[10709]: 2421666870C117077A2: processing time: 1.771 seconds (1.74, 0.021, 0)
2025-07-11T09:45:28.807800+02:00 pmg postfix/lmtp[10858]: E68CA242160: to=<user@mymail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=0.05/0/0.04/1.8, dsn=2.7.0, status=sent (250 2.7.0 BLOCKED (2421666870C117077A2))
2025-07-11T09:45:28.808458+02:00 pmg postfix/qmgr[2183]: E68CA242160: removed

Before Blacklist rejected sender unwanted spam email has been processed by Spamassasin, wrongly classified as HAM, . How do I fix it?
I don't want my SpamAssasin to process anything that has been Blaclisted by me.
 
Before Blacklist rejected sender unwanted spam email has been processed by Spamassasin, wrongly classified as HAM, . How do I fix it?
I don't want my SpamAssasin to process anything that has been Blaclisted by me.
This is not possible within the mail-filter as the mails are evaluated for To/From/When/What objects first (Spam checking (=spamassassin) is a what object) - and afterwards the actions are evaluated - see https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_application_of_rules

In general this is a small cost in CPU/Memory, but I'd not recommend to change that.
One option if you need to do this anyways is adapting the postfix configuration to block those mails (but this is outside of the GUI and PMG) - see:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

I hope this helps!
 
  • Like
Reactions: itret