Hmmm, this is a tricky one and does come up quite often. The only way I can think of doing it; without completely disabling AS for that user would, would be to use Amavis Policy Banks. Something like this:
/opt/zimbra/conf/amavisd.cf.in
Code:
$inet_socket_port = [10024, 10026]; # Add new listener port
$interface_policy{'10026'} = 'NOJUNK'; # Add no headers
$policy_bank{'NOJUNK'} = {
$sa_tag2_level_deflt = 9999; # controls adding 'X-Spam-Flag: YES', and editing Subject,
}; Add into Postfix
------------------
header_checks = regexp:/opt/zimbra/postfix/etc/amavis_bypass
/opt/zimbra/postfix/etc/amavis_nojunk:
Code:
/^To: x@y.com/ FILTER smtp-amavis:[127.0.0.1]:10026
This would mean user
x@y.com would get the SPAM score headers but the subject and the flag which Zimbra uses to file messages to Junk would not be added. * Have not tried this! *