<a id="suspend-configuration"></a>

# Suspend configuration

This file holds all static suspends that should be enforced when the system starts.
By default, *smtpd* loads it from  */etc/halon/smtpd-suspend.yaml*.
It is described by, and can be validated with, the
[smtpd-suspend.schema.json](http://lbovet.github.io/docson/index.html#https://docs.halon.io/json-schemas/6.12-stable/smtpd-suspend.schema.json).
A suspend is a rule that prevents a message from being picked up from the [active queue](queue_active.html.md#queue-active).
This file can be reloaded using the `halonctl queue suspend reload` command.
The overall concepts of suspends are documented in [active queue suspension](queue_suspend.html.md#queue-suspend).

<a id="suspend-directives"></a>

## Suspend directives

The suspend directive is an array of rules. Each item in the array represents one suspend.
If any of the suspends match, by any field combination it will be in effect for a specific queued message.
From a performance perspective it’s beneficial to use *string* and  *\*.domain* over *regex* patterns.

> **Note**
> 
> All fields are optional, meaning if an empty array item is found, everything is suspended.
> 
> ```default
> suspends:
>   - {}
> ```

<a id="confval-suspends-.tenantid"></a>

### suspends[].tenantid

Supported types are *string*,  */regex/* or a  *@list* of those.

<a id="confval-suspends-.jobid"></a>

### suspends[].jobid

Supported types are *string*,  */regex/* or a  *@list* of those.

<a id="confval-suspends-.transportid"></a>

### suspends[].transportid

Supported types are *string*,  */regex/* or a  *@list* of those.

<a id="confval-suspends-.localip"></a>

### suspends[].localip

Supported types are *ipv4*, *ipv4network*, *ipv6*, *ipv6network* or  *@list* of those.

<a id="confval-suspends-.grouping"></a>

### suspends[].grouping

Supported types are *string*,  */regex/* or a  *@list* of those.

<a id="confval-suspends-.remoteip"></a>

### suspends[].remoteip

Supported types are *ipv4*, *ipv4network*, *ipv6*, *ipv6network* or  *@list* of those.

<a id="confval-suspends-.remotemx"></a>

### suspends[].remotemx

Supported types are *domain*,  *\*.domain*,  */regex/* or a  *@list* of those.

<a id="confval-suspends-.recipientdomain"></a>

### suspends[].recipientdomain

Supported types are *domain*,  *\*.example.com*,  */regex/* or a  *@list* of those.

<a id="confval-suspends-.tag"></a>

### suspends[].tag

A tag (max 32 characters) defining the rule.

<a id="confval-suspends-.properties"></a>

### suspends[].properties{}

Supported values are *string*, *number* or a *boolean*.
