A new security patch has been released to further address CVE-2022-27924.
This issue has been ranked as High by the Zimbra Team and we recommend that you use the most recent release available to avoid any issues.
https://blog.zimbra.com/2022/05/new-zimbra-security-patches-9-0-0-patch-24-1-and-8-8-15-patch-31-1/ (May 10th 2022)

[SOLVED] Bypassing Antispam/Antivirus for one user

Ask questions about your setup or get help installing ZCS server (ZD section below).
tenchimuyou
Posts: 4
Joined: Fri Sep 12, 2014 11:25 pm

[SOLVED] Bypassing Antispam/Antivirus for one user

Postby tenchimuyou » Tue Apr 29, 2008 7:23 pm

Hello,
I need to turn off antispam for a specific user (If possible just the antispam, but as I need to solve this matter with urgency, I'm accepting a temporary solution with some way to turn off both, as long it works per-user). There is some easy way to archieve it?
Thanks in advance.


dwmtractor
Outstanding Member
Outstanding Member
Posts: 993
Joined: Fri Sep 12, 2014 10:41 pm

[SOLVED] Bypassing Antispam/Antivirus for one user

Postby dwmtractor » Wed Apr 30, 2008 10:03 am

You might check out this wiki section which allows per-user whitelisting. I believe that the instructions on "spamlover accounts" would accomplish your goal.
tenchimuyou
Posts: 4
Joined: Fri Sep 12, 2014 11:25 pm

[SOLVED] Bypassing Antispam/Antivirus for one user

Postby tenchimuyou » Wed Apr 30, 2008 10:36 am

Thanks for the answer, but I think this won't help me much.
Let me explain it better:
My client send a newsletter (spam), and of course there are lots of bounces. All these bounces goes through amavis and because of that the server is under strong stress (Yesterday my queue had 24k messages). I need to completely disable the antispam for it. This solutions lowers the score, but the message is still processed by spamassassin, what takes a good load of cpu. On normal postfix+amavis setup i would use @bypass_spam_checks, but apparently its not working. I've checked the amavisd version that comes with zimbra and maybe something like bypass_spam_checks_maps? How can I configure it?
Thanks!
tenchimuyou
Posts: 4
Joined: Fri Sep 12, 2014 11:25 pm

[SOLVED] Bypassing Antispam/Antivirus for one user

Postby tenchimuyou » Wed Apr 30, 2008 5:04 pm

Ok! Found a solution:
Actually i found this wiki page.
Although the solution is IP-based I changed it to a user-based with some little tweaks:
On postfix_recipient_restrictions:

check_recipient_access pcre:/opt/zimbra/postfix/conf/no_filter
On /opt/zimbra/postfix/conf/no_filter

/^user@domain.com$/ FILTER smtp:[127.0.0.1]:10026
On /opt/zimbra/conf/amavisd.conf.in

$inet_socket_port = [10024, 10026]; # change from original setting

$interface_policy{'10026'} = 'DOMAINWHITELIST';

$policy_bank{'DOMAINWHITELIST'} = {

bypass_spam_checks_maps => [1],

final_spam_destiny => D_PASS,

};
Then restarted amavis and postfix.
Now its works.
Thanks!
dwmtractor
Outstanding Member
Outstanding Member
Posts: 993
Joined: Fri Sep 12, 2014 10:41 pm

[SOLVED] Bypassing Antispam/Antivirus for one user

Postby dwmtractor » Wed Apr 30, 2008 5:15 pm

[quote user="tenchimuyou"]Ok! Found a solution

Now its works. [/quote]

Great! I'll mark this thread solved.
Meanwhile, remember that any changes you make to ANY of the config files will be wiped out every time you do an upgrade, so be prepared to back up and restore them whenever you do one. Since other (necessary) changes might also be made in later versions, it's probably wiser to plan to re-edit the new files on an upgraded version rather than to backup and restore the same old file.

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: Bing [Bot] and 16 guests