Create file chandu.cf in SpamAssassin folder as root
vi /opt/zimbra/data/spamassassin/rules/chandu.cf
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/chandu.cf
Restarting zmamavisdctl service
su - zimbra -c "zmamavisdctl restart"
Have a good nice!
Thanks for reading Zimbra blacklist email based via subject My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.
3 Comments
Not work for me on version 8.7? Please help?
Relayits not working in zimbra 8.8 version
RelayHi Yugandhar,
RelayIn this tutorial, I have tested zimbra 8.6
Thanks
HuuPV