5 # Postfix bounce message template format
7 # \fBbounce_template_file = /etc/postfix/bounce.cf\fR
9 # \fBpostconf -b\fR [\fItemplate_file\fR]
11 # The Postfix \fBbounce\fR(8) server produces delivery status
12 # notification (DSN) messages for undeliverable mail, delayed
13 # mail, successful delivery or address verification requests.
15 # By default, these notifications are generated from built-in
16 # templates with message headers and message text. Sites can
17 # override the built-in information by specifying a bounce
18 # template file with the \fBbounce_template_file\fR configuration
21 # This document describes the general procedure to create a
22 # bounce template file, followed by the specific details of
23 # bounce template formats.
27 # To create a customized bounce template file, create a
29 # copy of the file \fB/etc/postfix/bounce.cf.default\fR and
30 # edit the temporary file.
32 # To preview the results of $\fIname\fR expansions in the
33 # template text, use the command
36 # \fBpostconf -b\fR \fItemporary_file\fR
39 # Errors in the template will be reported to the standard
40 # error stream and to the syslog daemon.
42 # While previewing the text, be sure to pay particular attention
43 # to the expansion of time value parameters that appear in
44 # the delayed mail notification text.
46 # Once the result is satisfactory, copy the template to the
47 # Postfix configuration directory and specify in main.cf
51 # /etc/postfix/main.cf:
52 # bounce_template_file = /etc/postfix/bounce.cf
54 # TEMPLATE FILE FORMAT
57 # The template file can specify templates for failed mail,
58 # delayed mail, successful delivery or for address verification.
59 # These templates are named \fBfailure_template\fR,
60 # \fBdelay_template\fR, \fBsuccess_template\fR and
61 # \fBverify_template\fR, respectively. You can but do not
62 # have to specify all four templates in a bounce template
65 # Each template starts with "\fItemplate_name\fB = <<EOF\fR"
66 # and ends with a line that contains the word "\fBEOF\fR"
67 # only. You can change the word EOF, but you can't enclose
68 # it in quotes as with the shell or with Perl (\fItemplate_name\fB
69 # = <<'EOF'\fR). Here is an example:
72 # # The failure template is used for undeliverable mail.
74 # failure_template = <<EOF
76 # From: MAILER-DAEMON (Mail Delivery System)
77 # Subject: Undelivered Mail Returned to Sender
78 # Postmaster-Subject: Postmaster Copy: Undelivered Mail
80 # This is the mail system at host $myhostname.
82 # I'm sorry to have to inform you that your message could not
83 # be delivered to one or more recipients. It's attached below.
85 # For further assistance, please send mail to postmaster.
87 # If you do so, please include this problem report. You can
88 # delete your own text from the attached returned message.
94 # The usage and specification of bounce templates is
95 # subject to the following restrictions:
97 # No special meaning is given to the backslash character or
98 # to leading whitespace; these are always taken literally.
100 # Inside the << context, the "$" character is special. To
101 # produce a "$" character as output, specify "$$".
103 # Outside the << context, lines beginning with "#" are ignored,
104 # as are empty lines, and lines consisting of whitespace only.
106 # Examples of all templates can be found in the file
107 # \fBbounce.cf.default\fR in the Postfix configuration
109 # TEMPLATE HEADER FORMAT
112 # The first portion of a bounce template consists of optional
113 # template headers. Some become message headers in the
114 # delivery status notification; some control the formatting
115 # of that notification. Headers not specified in a template
116 # will be left at their default value.
118 # The following headers are supported:
120 # The MIME character set of the template message text. See
121 # the "TEMPLATE MESSAGE TEXT FORMAT" description below.
123 # The sender address in the message header of the delivery
124 # status notification.
126 # The subject in the message header of the delivery status
127 # notification that is returned to the sender.
128 # .IP \fBPostmaster-Subject:\fR
129 # The subject that will be used in Postmaster copies of
130 # undeliverable or delayed mail notifications. These copies
131 # are sent under control of the notify_classes configuration
134 # The usage and specification of template message headers is
135 # subject to the following restrictions:
137 # Template message header names can be specified in upper
138 # case, lower case or mixed case. Postfix always produces
139 # bounce message header labels of the form "\fBFrom:\fR" and
142 # Template message headers must not span multiple lines.
144 # Template message headers do not support $parameter expansions.
146 # Template message headers must contain ASCII characters only,
147 # and must not contain ASCII null characters.
148 # TEMPLATE MESSAGE TEXT FORMAT
151 # The second portion of a bounce template consists of message
152 # text. As the above example shows, template message text may
153 # contain main.cf $parameters. Besides the parameters that are
154 # defined in main.cf, the following parameters are treated
155 # specially depending on the suffix that is appended to their
157 # .IP \fBdelay_warning_time_\fIsuffix\fR
158 # Expands into the value of the \fBdelay_warning_time\fR
159 # parameter, expressed in the time unit specified by
160 # \fIsuffix\fR, which is one of \fBseconds\fR, \fBminutes\fR,
161 # \fBhours\fB, \fBdays\fR, or \fBweeks\fR.
162 # .IP \fBmaximal_queue_lifetime_\fIsuffix\fR
163 # Expands into the value of the \fBmaximal_queue_lifetime\fR
164 # parameter, expressed in the time unit specified by
165 # \fIsuffix\fR. See above under \fBdelay_warning_time\fR for
166 # possible \fIsuffix\fR values.
168 # The usage and specification of template message text is
169 # subject to the following restrictions:
171 # The template message text is not sent in Postmaster copies
172 # of delivery status notifications.
174 # If the template message text contains non-ASCII characters,
175 # Postfix requires that the \fBCharset:\fR template header
176 # is updated. Specify an appropriate superset of US-ASCII.
177 # A superset is needed because Postfix appends ASCII text
178 # after the message template when it sends a delivery status
181 # bounce(8), Postfix delivery status notifications
182 # postconf(5), configuration parameters
186 # The Secure Mailer license must be distributed with this software.
190 # The Postfix bounce template format was originally developed by
194 # IBM T.J. Watson Research
196 # Yorktown Heights, NY 10598, USA