The below headers configuration is what ZCS looks for to send spam messages in junk folder:
zmprov gacf | grep Header
zimbraSpamHeader: X-Spam-Flag
zimbraSpamHeaderValue: YES
You can modify the header and value, to what you 3rd party spam engine tags your messages with. To modify:
zmprov mcf zimbraSpamHeader X-MySpamEngineTag
zmprov mcf zimbraSpamHeaderValue SPAM
To disable Spam Engine on ZCS
you're going to need to modify the /opt/zimbra/conf/zmmta.cf file, and remove anything that looks like
if SERVICE antivirus
POSTCONF content_filter smtp-amavis:[127.0.0.1]:10024
fi
if SERVICE !antispam
POSTCONF content_filter smtp-amavis:[127.0.0.1]:10024
fi
Then, do a
postconf -e content_filter=
and restart postfix; this will completely bypass the system.
If you don't want to bypass AV, then edit amavisd.conf.in:
Change the line
%%comment SERVICE:antispam%% @bypass_spam_checks_maps = (1);
to
@bypass_spam_checks_maps = (1);
Then restart all services on the box.
#content_filter = smtp-amavis:[127.0.0.1]:10024t |