I use Postfix to block terms in headers and bodies. In few cases, it blocks legitimate mails because the term used is present in a long string (probably an id or reference or a coded string).
For example:
/AQHV/ REJECT SPAM RULE #5
Emails containing the following text in their headers are rejected. Because the characters "AQHV" are in the one of the headers:-
Thread-Index: AQHVSEXnJ2u6futfzU6u85aNv7EgTg
I have tried to add a space before + after the term AQHV, like so:-
/ AQHV/ REJECT SPAM RULE #5
/AQHV / REJECT SPAM RULE #6
This error occurs:
postmap: warning: /etc/postfix/header_checks.db: duplicate entry: "/"
How can I tell Postfix to treat the term "AQHV" as a separate word only, and not as part of a string?
Thanks in advance!
tripleee: apologies for the comments - still struggling with these forums.
I have decided to uninstall Postfix and reinstall it again. It might solve this problem. I will accept your answer. Many thanks.