SpfReportSettings
Configures SPF authentication failure report generation.
This object can be configured from the WebUI under Settings › MTA › Reports › SPF
Fields
fromAddress
Type:
Expression· default:{"else":"'noreply-spf@' + system('domain')"}Email address that will be used in the From header of the SPF authentication failure report email
Available variables:
MtaMailFromVariable.
fromName
Type:
Expression· default:{"else":"'Report Subsystem'"}Name that will be used in the From header of the SPF authentication failure report email
Available variables:
MtaMailFromVariable.
sendFrequency
Type:
Expression· default:{"else":"[1, 1d]"}Rate at which SPF reports will be sent to a given email address. When this rate is exceeded, no further SPF failure reports will be sent to that address
Available variables:
MtaMailFromVariable.
dkimSignDomain
Type:
Expression· default:{"else":"system('domain')"}Which domain's DKIM signatures to use when signing the SPF authentication failure report
Available variables:
MtaMailFromVariable.
subject
Type:
Expression· default:{"else":"'SPF Authentication Failure Report'"}Subject name that will be used in the SPF authentication failure report email
Available variables:
MtaMailFromVariable.
JMAP API
The SpfReportSettings singleton is available via the urn:stalwart:jmap capability.
x:SpfReportSettings/get
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 sysSpfReportSettingsGet permission.
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SpfReportSettings/get",
{
"ids": [
"singleton"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'
x:SpfReportSettings/set
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 sysSpfReportSettingsUpdate permission.
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SpfReportSettings/set",
{
"update": {
"singleton": {
"fromAddress": {
"else": "'noreply-spf@' + system('domain')"
}
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'
CLI
stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
Fetch
stalwart-cli get spf-report-settings
Update
stalwart-cli update spf-report-settings --field description='Updated'
Nested types
Expression
A conditional expression with match rules and a default value.
match
Type:
ExpressionMatch[]List of conditions and their corresponding results
else
Type:
String· requiredElse condition
ExpressionMatch
A single condition-result pair in an expression.
if
Type:
String· requiredIf condition
then
Type:
String· requiredThen clause
Expression references
The following expression contexts are used by fields on this page:
MtaMailFromVariable(Variables)