DmarcReportSettings
DmarcReportSettings
Section titled “DmarcReportSettings”Configures DMARC aggregate and failure report generation.
This object can be configured from the WebUI under Settings › MTA › Reports › DMARC
Fields
Section titled “Fields”aggregateContactInfo
Section titled “aggregateContactInfo”Type:
Expression· default:{"else":"false"}Contact information to be included in the report
Available variables:
MtaRcptDomainVariable.
aggregateFromAddress
Section titled “aggregateFromAddress”Type:
Expression· default:{"else":"'noreply-dmarc@' + system('domain')"}Email address that will be used in the From header of the DMARC aggregate report email
Available variables:
MtaRcptDomainVariable.
aggregateFromName
Section titled “aggregateFromName”Type:
Expression· default:{"else":"'Report Subsystem'"}Name that will be used in the From header of the DMARC aggregate report email
Available variables:
MtaRcptDomainVariable.
aggregateMaxReportSize
Section titled “aggregateMaxReportSize”Type:
Expression· default:{"else":"5242880"}Maximum size of the DMARC aggregate report in bytes
Available variables:
MtaRcptDomainVariable.
aggregateOrgName
Section titled “aggregateOrgName”Type:
Expression· default:{"else":"system('domain')"}Name of the organization to be included in the report
Available variables:
MtaRcptDomainVariable.
aggregateSendFrequency
Section titled “aggregateSendFrequency”Type:
Expression· default:{"else":"daily"}Frequency at which the DMARC aggregate reports will be sent. The options are hourly, daily, weekly, or disable to disable reporting
Available variables:
MtaRcptToVariable.Available constants:
MtaAggregateConstant.
aggregateDkimSignDomain
Section titled “aggregateDkimSignDomain”Type:
Expression· default:{"else":"system('domain')"}Which domain’s DKIM signatures to use when signing the DMARC aggregate report
Available variables:
MtaRcptDomainVariable.
aggregateSubject
Section titled “aggregateSubject”Type:
Expression· default:{"else":"'DMARC Aggregate Report'"}Subject name that will be used in the DMARC aggregate report email
Available variables:
MtaRcptDomainVariable.
failureFromAddress
Section titled “failureFromAddress”Type:
Expression· default:{"else":"'noreply-dmarc@' + system('domain')"}Email address that will be used in the From header of the DMARC authentication failure report email
Available variables:
MtaRcptToVariable.
failureFromName
Section titled “failureFromName”Type:
Expression· default:{"else":"'Report Subsystem'"}Name that will be used in the From header of the DMARC report email
Available variables:
MtaRcptToVariable.
failureSendFrequency
Section titled “failureSendFrequency”Type:
Expression· default:{"else":"[1, 1d]"}Rate at which DMARC reports will be sent to a given email address. When this rate is exceeded, no further DMARC failure reports will be sent to that address
Available variables:
MtaRcptToVariable.
failureDkimSignDomain
Section titled “failureDkimSignDomain”Type:
Expression· default:{"else":"system('domain')"}Which domain’s DKIM signatures to use when signing the DMARC authentication failure report
Available variables:
MtaRcptToVariable.
failureSubject
Section titled “failureSubject”Type:
Expression· default:{"else":"'DMARC Authentication Failure Report'"}Subject name that will be used in the DMARC authentication failure report email
Available variables:
MtaRcptToVariable.
JMAP API
Section titled “JMAP API”The DmarcReportSettings singleton is available via the urn:stalwart:jmap capability.
x:DmarcReportSettings/get
Section titled “x:DmarcReportSettings/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 sysDmarcReportSettingsGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DmarcReportSettings/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:DmarcReportSettings/set
Section titled “x:DmarcReportSettings/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 sysDmarcReportSettingsUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DmarcReportSettings/set", { "update": { "singleton": { "aggregateContactInfo": { "else": "false" } } } }, "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.
stalwart-cli get DmarcReportSettingsUpdate
Section titled “Update”stalwart-cli update DmarcReportSettings --field aggregateContactInfo='{"else":"false"}'Nested types
Section titled “Nested types”Expression
Section titled “Expression”A conditional expression with match rules and a default value.
Type:
ExpressionMatch[]List of conditions and their corresponding results
Type:
String· requiredElse condition
ExpressionMatch
Section titled “ExpressionMatch”A single condition-result pair in an expression.
Type:
String· requiredIf condition
Type:
String· requiredThen clause
Expression references
Section titled “Expression references”The following expression contexts are used by fields on this page:
MtaRcptDomainVariable(Variables)MtaAggregateConstant(Constants)MtaRcptToVariable(Variables)