Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | Powered by Blogger.

My blog about Open Source: Zimbra Mail Server,linux,bash script,centos,linux command...

Zimbra blacklist email based via subject

In this tutorial, I will configure blacklist email based via subject. The recently, I receive an email with the subject "new girls beautiful photo" which contains spam and fake link. how to Zimbra blacklist email with the subject this.

Create file in SpamAssassin  folder as root

vi /opt/zimbra/data/spamassassin/rules/

The content as below

header     SPAM_BANNED     Subject =~ /new girls beautiful photo/i
describe   SPAM_BANNED     Subject contains me new photo
score      SPAM_BANNED     40.0

Save and give owner user and group zimbra

chown zimbra:zimbra /opt/zimbra/data/spamassassin/rules/

Restarting zmamavisdctl  service

su - zimbra -c "zmamavisdctl restart"

Have a good nice!

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command |


Not work for me on version 8.7? Please help?


its not working in zimbra 8.8 version


Hi Yugandhar,

In this tutorial, I have tested zimbra 8.6



This Blog is protected by