Вопрос

I would like to add a rule that blocks all incoming e-mails that contain a certain expression. Ex: 'Test Phrase'. I have added the line rawbody NO_SPAMW /Test" *"Phrase/i but it seems it doesn't work. Can you tell me what is the correct way to parse a space to spamassassin?

Thank you!

Это было полезно?

Решение

You can match a space with \s.

rawbody TEST_PHRASE /test\s*phrase/i
score TEST_PHRASE 0.1
describe TEST_PHRASE This is a test

More about writing custom rules here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top