1

How can I block spam email by subject? I tried following this blog post, but it doesn't work.

It uses custom_header_checks and define some parameters, I did try such parameters and restart the services but it still doesn't works.

Are there any other ways to prevent spam in Zimbra mail server?

I use FOSS 7.2.7.

Giacomo1968
  • 58,727
akauts
  • 11
  • 1
  • 3

2 Answers2

0

Do not use parentheses. For example (from the link in the question):

/^subject.*From U.S. Ambassador to Nigeria/ DISCARD #spam rule to msgs from Nigeria
Run5k
  • 16,463
  • 24
  • 53
  • 67
0

The content in OP's link looks like it was copied from here:

The header checks lost their formatting so:

`/^Subject.*)From U.S. Ambassador to Nigeria/ DISCARD #spam rule no msgs from Nigeria`

Should look like:

`/^Subject:(.*)From U.S. Ambassador to Nigeria/   DISCARD #spam rule no msgs from Nigeria`
galoget
  • 403
MC10
  • 10,620