惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
J
Java Code Geeks
V
V2EX
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
博客园 - Franky
爱范儿
爱范儿
T
Tailwind CSS Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
博客园_首页
B
Blog RSS Feed
博客园 - 司徒正美
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Proxmox Support Forum

[SOLVED] - Github Auth for Mirrors-Kernel Repo? [Automation] Mass migration tool for MS Win11/Server Proxmox GUI hang - not response is it possible to reject or quarantine spam based on conditions I set ? The PVENode task list in PVE9 is partially obscured due to the terminal font being too large. About 100% error reporting due to pveproxy.service hooks Kubernetes overlay networking breaks when upgrading from PVE 9.1 to PVE 9.2.3 Zentraler Speicher No space left on device Combine datastore and direct file archival to tape Kernel panic VFS: Unable to mount root fs on unknown-block (0,0) sobald ein 7.x Kernel verwendet wird. How to migrate disk of a VM from one ZFS to another Windows Server 2025 fails to boot after PVE 9.2 / Linux 7.0 Kernel upgrade Cannot Install Proxmox on T610 Poweredge with H700 PERC card sdn Config. gateway not reachable How to safely change domain/FQDN? Welche Filterquote erreicht ihr? NFS Share status unknown on 2 of 5 nodes Can't connect to PVE9 consoles [solved] Can't connect to PVE9 consoles [solved] [SOLVED] - Use secondary network for PVE commands Created cluster, one node storage gone BUG: proxmox mail gateway FROM = null bypass spam filtering Moving existing PBS from VMWare workstation to PVE cluster Does eBGP SDN fabric support external peering? Bug: PDM 1.1 not recognizing valid license status Proxmox GUI hang - not response PVE crashes unexpectedly Proxmox Backup Server 4.2 released! Advice
[SOLVED] - SpamAssassin custom rules (/etc/mail/spamassas...
invalid@exam · 2021-04-16 · via Proxmox Support Forum

Hi there,

I have hundreds of SpamAssassin custom rules on the file /etc/mail/spamassassin/custom.cf (see the attached picture). It is being used to filter the header (subject) but it is not adding the scores or matching the strings anymore.

I'm using the latest PMG (proxmox-mailgateway: 6.4-1 (API: 6.4-3/225ecb80, running kernel: 5.4.106-1-pve).

Do you guys think that is due the upgrade from 6.3 to 6.4? Are the SpamAssassin paths the same of before or now we have new files doing that?

Thank you so much for your help.

  • Captura de Tela 2021-04-16 às 08.44.46.png

    Captura de Tela 2021-04-16 às 08.44.46.png

    82 KB · Views: 148

Nothing should have changed with that upgrade ...

please run `spamassassin --lint -D all 2>&1` to see if the file gets read by spamassassin (you should both see 'custom.cf' in the output and probably also some of your rule-names)

I hope this helps!

I solved my issue editing the local.cf.in template and add the include /etc/mail/spamassassin/custom.cf.

I solved my issue editing the local.cf.in template and add the include /etc/mail/spamassassin/custom.cf.

Where is the custom.cf.in directory located?

Last edited:

There's no need to use templates, the file extension just needs to be .cf and it needs to be located in the /etc/mail/spamassassin/ directory.

What matters is that the rule is correct; pay close attention when creating it to never leave an incorrect parameter, because once one is wrong, this line will be applied to all received emails. Below are examples of rules by topic and also content within the body.

Code:

header      SUBJECT001 Subject =~ /\byou win loto|viagra pills|free sex|sexual machine/i
score       SUBJECT001 8.0
describe    SUBJECT001 Subject spam 001

body        BODYSPAM001 /you win loto|viagra pills|free sex|sexual machine/i
score       BODYSPAM001 3.0
describe    BODYSPAM001 Body spam 001