Question

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!

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top