[clamav-users] milter

Ralph Seichter abbot at monksofcool.net
Thu May 28 20:10:37 UTC 2020


* David Beecher via clamav-users:

> I am trying to set up a filter for watching for a specific keyword in
> a subject line so I can tag it as spam and reject it.

Milter-regex would work nicely, but you need neither a milter not ClamAV
for this simple task. Sendmail can perform header checks[1], even though
the syntax is horrible, as usual.

[1] https://www.sendmail.org/~ca/email/doc8.12/cf/m4/anti_spam.html#header_checks

Just check for a match of your trigger expression in "Subject:" and
reject the message if a match is found.

-Ralph



More information about the clamav-users mailing list