DsnReportSettings
DsnReportSettings
Section titled “DsnReportSettings”Configures Delivery Status Notification (DSN) report generation.
This object can be configured from the WebUI under Settings › MTA › Reports › DSN
Fields
Section titled “Fields”fromAddress
Section titled “fromAddress”Type:
Expression· default:{"else":"'MAILER-DAEMON@' + system('domain')"}Email address that will be used in the From header of Delivery Status Notifications (DSN) reports
Available variables:
MtaQueueSenderVariable.
fromName
Section titled “fromName”Type:
Expression· default:{"else":"'Mail Delivery Subsystem'"}Name that will be used in the From header of Delivery Status Notifications (DSN) reports
Available variables:
MtaQueueSenderVariable.
dkimSignDomain
Section titled “dkimSignDomain”Type:
Expression· default:{"else":"system('domain')"}Which domain’s DKIM signatures to use when signing the Delivery Status Notifications
Available variables:
MtaQueueSenderVariable.
JMAP API
Section titled “JMAP API”The DsnReportSettings singleton is available via the urn:stalwart:jmap capability.
x:DsnReportSettings/get
Section titled “x:DsnReportSettings/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 sysDsnReportSettingsGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DsnReportSettings/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:DsnReportSettings/set
Section titled “x:DsnReportSettings/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 sysDsnReportSettingsUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DsnReportSettings/set", { "update": { "singleton": { "fromAddress": { "else": "'MAILER-DAEMON@' + system('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.
stalwart-cli get DsnReportSettingsUpdate
Section titled “Update”stalwart-cli update DsnReportSettings --field fromAddress='{"else":"'\''MAILER-DAEMON@'\'' + system('\''domain'\'')"}'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:
MtaQueueSenderVariable(Variables)