King0770-Notes-Ultra-Restrictive-Sending-And-Receiving: Difference between revisions
(Replaced content with "{{Unsupported}}|{{ZCS 8.7}}|{{ZCS 9.0}} {{WIP}}") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Unsupported}}|{{ZCS 8.7}}|{{ZCS 9.0}} | {{Unsupported}}|{{ZCS 8.7}}|{{ZCS 9.0}} | ||
{{WIP}} | {{WIP}} | ||
==Scenario== | |||
You have one or two accounts you want to prevent from sending messages to other internal accounts, but still receive messages. | |||
===Use cbpolicyd=== | |||
Create a <strong>internal_restrict</strong> group. | |||
<code><pre> | |||
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "policies" VALUES(6,'Restrict_Internal',0,'Restrict_Internal',0);" | |||
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "policy_members" VALUES(6,6,'%internal_restrict','%internal_domains','',0);" | |||
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "policy_groups" VALUES(3,'internal_restrict',0,'internal_restrict');" | |||
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "access_control" VALUES(1,6,'DenySendAccess','REJECT','REJECT','',0);" | |||
</pre></code> |
Revision as of 20:38, 2 February 2018
- This article is a Community contribution and may include unsupported customizations.
- This article is a Work in Progress, and may be unfinished or missing sections.
Scenario
You have one or two accounts you want to prevent from sending messages to other internal accounts, but still receive messages.
Use cbpolicyd
Create a internal_restrict group.
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "policies" VALUES(6,'Restrict_Internal',0,'Restrict_Internal',0);"
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "policy_members" VALUES(6,6,'%internal_restrict','%internal_domains','',0);"
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "policy_groups" VALUES(3,'internal_restrict',0,'internal_restrict');"
sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb "INSERT INTO "access_control" VALUES(1,6,'DenySendAccess','REJECT','REJECT','',0);"