---
id: "email-security-gateway"
type: "kind"
category: "security"
url: "https://localhost:3000/catalogue/kinds/email-security-gateway"
---

# Email security gateway

Inspects inbound mail for phishing, malware and spoofing before it reaches the mailbox.

| | |
|---|---|
| Category | Security |
| Properties | 8 |
| Components | 3 |
| Rules | 0 |

## Properties

| property | type | values | required | default |
|---|---|---|---|---|
| `attachmentDetonation` | boolean | — | no | — |
| `deliveryMode` | enum | `inline-mx`, `journaling`, `api` | no | — |
| `dmarcEnforcement` | boolean | — | no | — |
| `linkRewriting` | boolean | — | no | — |
| `managed` | boolean | — | no | false |
| `phishingAction` | enum | `reject`, `quarantine`, `tag`, `deliver` | no | — |
| `quarantineRetentionDays` | integer | — | no | — |
| `spamAction` | enum | `reject`, `quarantine`, `tag`, `deliver` | no | — |

## Rules for this kind · 0

No rule selects this kind or its category.

## Components · 3

### vendor-neutral

- [Generic email security gateway](https://localhost:3000/catalogue/components/email-security-gateway.md) `email-security-gateway` — the kind itself

### aws

- [Mail Manager for Amazon SES](https://localhost:3000/catalogue/components/aws-ses-mail-manager.md) `aws-ses-mail-manager` — 2 defaults

### cloudflare

- [Cloudflare Email Security](https://localhost:3000/catalogue/components/cloudflare-email-security.md) `cloudflare-email-security` — 3 defaults

## Source (`kind` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../schema/kind.schema.json
# Sits in the MX or mailbox-API path and carries a delivery mode, per-disposition actions and a quarantine retention that firewall, waf and notification-service cannot express. deploymentMode and the disposition actions have no default so a rule can flag a gateway that inspects mail but never says what it does with a bad verdict.
schemaVersion: "1"
type: "kind"
id: "email-security-gateway"
category: "security"
properties:
  deliveryMode:
    type: "enum"
    values: ["inline-mx", "journaling", "api"]
  phishingAction:
    type: "enum"
    values: ["reject", "quarantine", "tag", "deliver"]
  spamAction:
    type: "enum"
    values: ["reject", "quarantine", "tag", "deliver"]
  linkRewriting:
    type: "boolean"
  attachmentDetonation:
    type: "boolean"
  dmarcEnforcement:
    type: "boolean"
  quarantineRetentionDays:
    type: "integer"
  managed:
    type: "boolean"
    default: false
```

Human page: https://localhost:3000/catalogue/kinds/email-security-gateway
