Mail Gateway
Cheat sheet · https://pcornel.dk/topic.php?topic=4789
Answer
A mail gateway (secure email gateway) filters inbound and outbound mail for spam, phishing, malware and data leaks, with sandboxing, URL rewriting and policy enforcement before mail reaches users.
Remember
- Sandboxing catches unknown attachments.
- URL rewriting protects at click time.
- Outbound filtering catches compromised accounts.
First checks
- Gateway health and queue — status
- Policies: attachments, URLs, sandbox — protection
swaks --to <user> --attach-type application/zip --server <gw>— test policy (lab)
Verify in this order
internet → gateway → mail platform
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4789