UPE environment. Sending emails needs to be blocked in the policy. Blocking "send email" operation with "deny" or allowing Email category while negating "send email" operation (where everything else is denied) does not block emails to be sent.
Cloud SWG with UPE (Universal Policy Enforcement) - so policies are managed via Management Center
This is applicable only to:
If all the above conditions are true, simple "Deny" will not be sufficient to block the specific activity. In this case it needs to be blocked by "Force Deny" action.
Below policy was setup to block sending emails using Gmail.
#if enforcement=universal
define condition gmail-readonly
request.application.name=Gmail
end condition gmail-readonly
<Proxy>
condition=gmail-readonly request.application.operation="Send Email" FORCE_DENY
#endif
where: