CSSMTP provides configuration options to indicate how it handles undeliverable mail messages. You can configure CSSMTP to send individual undeliverable mail notifications or not to send them. You can also configure CSSMTP to create a report describing errors that were found while processing mail messages; this report can be created on the spool or sent to the configured mail administrators.
The following examples describe the configuration options for handling undeliverable mail. For more information about the BadSpoolDisp statement, the Undeliverable statement, the MailAdministrator statement, and the Report statement, see z/OS Communications Server: IP Configuration Reference.
BadSpoolDisp Hold
Report Admin
MailAdministrator myuserId@ibm.us.com
Undeliverable
{
ReturnToMailFrom No
}
To configure the application to not send an undeliverable mail notification to the originator, you need to set the ReturnToMailFrom value to No. This example might be useful if the mail messages do not specify an originator, or if the spool file is for sending bulk mail that does not typically require a reply to the originator. This example has optionally configured that a report be sent to the specified mail administrator.
BadSpoolDisp Hold
Report None
Undeliverable
{
ReturnToMailFrom Yes
DeadLetterAction Store
DeadLetterDirectory /var/cssmtp/myDir/
}
This example is useful if the originator of the mail messages needs to be informed that the messages cannot be delivered. If you determine that it is not necessary to inform the originator of failed deliveries, set the ReturnToMailFrom value to No. No report is created in this example.
/var/cssmtp/myDir/TESTMAIL.SYS00006.Sep302008.160454.541437.1U
/var/cssmtp/myDir/TESTMAIL.SYS00006.Sep302008.160454.541999.1U