Difference between revisions of "King0770-Notes-Prevent-Accounts-From-Sending-To-External-Domains-With-CBPOLICYD"
(→Enabled the zimbraCBPolicydAccessControlEnabled Setting) |
|||
Line 17: | Line 17: | ||
==Enabled the zimbraCBPolicydAccessControlEnabled Setting== | ==Enabled the zimbraCBPolicydAccessControlEnabled Setting== | ||
+ | <code><pre> | ||
+ | Enable cbpolicyd (run from the zimbra-MTA) | ||
+ | ------------------------------------------- | ||
+ | |||
+ | zmprov ms `zmhostname` +zimbraServiceEnabled cbpolicyd <<==note the use of the plus sign character | ||
+ | |||
+ | zmprov ms `zmhostname` zimbraCBPolicydAccessControlEnabled TRUE | ||
+ | |||
+ | zmprov mcf zimbraCBPolicydAccessControlEnabled TRUE | ||
+ | |||
+ | zmconfigdctl restart | ||
+ | |||
+ | zmmtactl restart | ||
+ | |||
+ | zmcbpolicydctl restart | ||
+ | |||
+ | |||
+ | Disable cbpolicyd | ||
+ | ------------------ | ||
+ | zmprov ms `zmhostname` -zimbraServiceEnabled cbpolicyd <<==note the use of the minus character | ||
+ | |||
+ | zmconfigdctl restart | ||
+ | |||
+ | zmmtactl restart | ||
+ | |||
+ | zmcbpolicydctl stop | ||
+ | |||
+ | |||
+ | </pre></code> | ||
Revision as of 22:24, 10 March 2020
This is an simple example of how-to restrict your users from sending messages to external domains.
Contents
Create Policy Called RestrictAccount
Add Account as a Member to the RestrictAccount
Add Internal Domain Policy Group
Add Domain as a Member to the Internal Domain
Create Access Control List linking to the RestrictAccount Policy
Enabled the zimbraCBPolicydAccessControlEnabled Setting
Enable cbpolicyd (run from the zimbra-MTA)
-------------------------------------------
zmprov ms `zmhostname` +zimbraServiceEnabled cbpolicyd <<==note the use of the plus sign character
zmprov ms `zmhostname` zimbraCBPolicydAccessControlEnabled TRUE
zmprov mcf zimbraCBPolicydAccessControlEnabled TRUE
zmconfigdctl restart
zmmtactl restart
zmcbpolicydctl restart
Disable cbpolicyd
------------------
zmprov ms `zmhostname` -zimbraServiceEnabled cbpolicyd <<==note the use of the minus character
zmconfigdctl restart
zmmtactl restart
zmcbpolicydctl stop
More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes