Skip to content

SenderAuth

Configures sender authentication verification including DKIM, SPF, DMARC, and ARC.

This object can be configured from the WebUI under Settings › MTA › Inbound › Sender Authentication

Type: Expression · default: {"else":"false","match":[{"if":"is_local_domain(sender_domain) && !is_empty(authenticated_as)","then":"sender_domain"}]}

Domain to use for DKIM signing

Available variables: MtaRcptToVariable.

Type: Boolean · default: true

Whether to ignore insecure DKIM signatures such as those containing a length parameter

Type: Expression · default: {"else":"relaxed","match":[]}

Whether DKIM verification is strict, relaxed or disabled

Available variables: MtaRcptToVariable.

Available constants: MtaVerifyConstant.

Type: Expression · default: {"else":"disable","match":[{"if":"local_port == 25","then":"relaxed"}]}

Whether SPF EHLO verification is strict, relaxed or disabled

Available variables: MtaConnectionVariable.

Available constants: MtaVerifyConstant.

Type: Expression · default: {"else":"disable","match":[{"if":"local_port == 25","then":"relaxed"}]}

Whether SPF MAIL FROM verification is strict, relaxed or disabled

Available variables: MtaConnectionVariable.

Available constants: MtaVerifyConstant.

Type: Expression · default: {"else":"disable","match":[]}

Whether ARC verification is strict, relaxed or disabled.

Available variables: MtaRcptToVariable.

Available constants: MtaVerifyConstant.

Type: Expression · default: {"else":"disable","match":[{"if":"local_port == 25","then":"relaxed"}]}

Whether DMARC verification is strict, relaxed or disabled

Available variables: MtaRcptToVariable.

Available constants: MtaVerifyConstant.

Type: Expression · default: {"else":"disable","match":[{"if":"local_port == 25","then":"relaxed"}]}

How strict to be when verifying the reverse DNS of the client IP

Available variables: MtaConnectionVariable.

Available constants: MtaVerifyConstant.

The SenderAuth singleton is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

For singletons, the ids argument should be the literal singleton (or null to return the single instance).

This method requires the sysSenderAuthGet permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SenderAuth/get",
{
"ids": [
"singleton"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/set method as defined in RFC 8620, Section 5.3.

For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.

This method requires the sysSenderAuthUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SenderAuth/set",
{
"update": {
"singleton": {
"dkimSignDomain": {
"else": "false",
"match": [
{
"if": "is_local_domain(sender_domain) && !is_empty(authenticated_as)",
"then": "sender_domain"
}
]
}
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.

Terminal window
stalwart-cli get SenderAuth
Terminal window
stalwart-cli update SenderAuth --field dkimSignDomain='{"else":"false","match":[{"if":"is_local_domain(sender_domain) && !is_empty(authenticated_as)","then":"sender_domain"}]}'

A conditional expression with match rules and a default value.

Type: ExpressionMatch[]

List of conditions and their corresponding results

Type: String · required

Else condition

A single condition-result pair in an expression.

Type: String · required

If condition

Type: String · required

Then clause

The following expression contexts are used by fields on this page: