PolicyD Amavis Module Activation

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
rasikau
Posts: 3
Joined: Thu Oct 25, 2018 3:02 am

PolicyD Amavis Module Activation

Post by rasikau »

Dear All,
I'm trying activate Amavis module in PolicyD. Even-though the cbpolicyd.conf shows it as active the log file says Amavis module disabled

[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => AccessControl: enabled
[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => Accounting: disabled
[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => Amavis: disabled
[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => CheckHelo: enabled
[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => CheckSPF: enabled
[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => Greylisting: disabled
[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => Quotas: enabled
[2018/10/25-08:28:43 - 50037] [CORE] NOTICE: => Protocol(Postfix): enabled

Please assist me on how to activate Amavis module on CBPolicyD.

Thanks in Advance.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: PolicyD Amavis Module Activation

Post by phoenix »

Have you looked at either of the two wiki articles on enabling and configuring PolicyD?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: PolicyD Amavis Module Activation

Post by DualBoot »

Hello,

did you set zimbraCBPolicydAmavisEnabled to true at global configuration or/and at server level ?

Regards,
rasikau
Posts: 3
Joined: Thu Oct 25, 2018 3:02 am

Re: PolicyD Amavis Module Activation

Post by rasikau »

Dear Both Thanks for the replies.

Yes I checked wiki articles on enabling and configuring PolicyD and followed the same process.

I set zimbraCBPolicydAmavisEnabled in global level using "zmprov ms `zmhostname` zimbraCBPolicydAmavisEnabled TRUE" command and I can see the module is enabled in cbpolicyd.conf file (refer the attchment)

Kindly assist.
Attachments
Capture.PNG
Capture.PNG (16.33 KiB) Viewed 6109 times
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: PolicyD Amavis Module Activation

Post by DualBoot »

Hello,
I set zimbraCBPolicydAmavisEnabled in global level using "zmprov ms `zmhostname` zimbraCBPolicydAmavisEnabled TRUE"
Does not set the setting at global level, for that you need to run

Code: Select all

zmprov mcf zimbraCBPolicydAmavisEnabled TRUE
Regards,
rasikau
Posts: 3
Joined: Thu Oct 25, 2018 3:02 am

Re: PolicyD Amavis Module Activation

Post by rasikau »

Dear DualBoot,
Tried enabling global level with the code given, but no chance.

[2018/11/19-21:13:39 - 5232] [CBPOLICYD] NOTICE: Module load started...
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => AccessControl: enabled
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => Accounting: disabled
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => Amavis: disabled
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => CheckHelo: enabled
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => CheckSPF: enabled
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => Greylisting: disabled
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => Quotas: enabled
[2018/11/19-21:13:39 - 5232] [CORE] NOTICE: => Protocol(Postfix): enabled
[2018/11/19-21:13:39 - 5232] [CBPOLICYD] NOTICE: Module load done.

Any idea how to activate this module? or any other ways to configure attachment limit user wise?
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: PolicyD Amavis Module Activation

Post by phoenix »

How about confirming it's enabled status by running the following command:

Code: Select all

zmprov gcf zimbraCBPolicydAmavisEnabled
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
sham
Posts: 2
Joined: Mon Oct 28, 2019 8:07 pm

Re: PolicyD Amavis Module Activation

Post by sham »

I have the same problem. Is there a solution?

Code: Select all

[zimbra@mail cbpolicyd]$ zmprov gs `zmhostname` zimbraCBPolicydAmavisEnabled
# name myserver
zimbraCBPolicydAmavisEnabled: TRUE
[zimbra@mail cbpolicyd]$ zmprov gcf zimbraCBPolicydAmavisEnabled
zimbraCBPolicydAmavisEnabled: TRUE
In /opt/zimbra/conf/cbpolicyd.conf

Code: Select all

# Modules to load
modules=<<EOT
Core
AccessControl
Accounting
Amavis
CheckHelo
CheckSPF
Greylisting
Quotas
EOT
and

Code: Select all

# Amavis module
[Amavis]
enable=1 # Disabled by default
But when I start cbpolicyd in log I see

Code: Select all

[2019/10/28-23:03:10 - 4304] [CORE] NOTICE:   => Amavis: disabled
Сan anyone help me?
Bittone
Posts: 21
Joined: Mon Sep 05, 2016 4:30 pm

Re: PolicyD Amavis Module Activation

Post by Bittone »

Hello,
a simple hint should help you:

Code: Select all

zmprov gs <your server  > | grep Accounting
After that is simple.

Bye
sham
Posts: 2
Joined: Mon Oct 28, 2019 8:07 pm

Re: PolicyD Amavis Module Activation

Post by sham »

After that, in cbpolicyd log I see:
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => AccessControl: enabled
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => Accounting: enabled
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => Amavis: disabled
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => CheckHelo: disabled
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => CheckSPF: disabled
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => Greylisting: enabled
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => Quotas: enabled
[2020/01/15-18:55:57 - 2609] [CORE] NOTICE: => Protocol(Postfix): enabled
Amavis module is still disabled.
Post Reply