info > BOUNCE

```html

๐Ÿท๏ธ BOUNCE(8postfix) - Postfix delivery status reports

๐Ÿท๏ธ NAME

bounce - Postfix delivery status reports

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ“‚ View bounce (non-delivery) recordsls /var/spool/postfix/bounce/List per-message log files for undeliverable mail
๐Ÿ“‚ View defer (delayed) recordsls /var/spool/postfix/defer/List per-message log files for deferred delivery
๐Ÿ“‚ View trace (delivery status) recordsls /var/spool/postfix/trace/List per-message log files for delivery status
โš™๏ธ Configure bounce template filepostconf -e bounce_template_file=/etc/postfix/bounce.cfSet custom bounce message template
๐Ÿ‘๏ธ Preview bounce template expansionspostconf -b template_filePreview template with $name expansions
๐Ÿ”„ Reload Postfix configurationpostfix reloadApply main.cf changes to bounce daemon
๐Ÿ“ง Set 2bounce notice recipientpostconf -e 2bounce_notice_recipient=postmasterRecipient of undeliverable mail that cannot be returned
๐Ÿ“ Set bounce size limitpostconf -e bounce_size_limit=50000Max original message text in non-delivery notification (bytes)

๐Ÿ“‹ SYNOPSIS

bounce [generic Postfix daemon options]

๐Ÿ“ DESCRIPTION

The bounce(8) daemon maintains per-message log files with delivery status information. Each log file is named after the queue file that it corresponds to, and is kept in a queue subdirectory named after the service name in the master.cf file (either bounce, defer or trace). This program expects to be run from the master(8) process manager.

The bounce(8) daemon processes two types of service requests:

The software does a best notification effort. A non-delivery notification is sent even when the log file or the original message cannot be read.

Optionally, a bounce (defer, trace) client can request that the per-message log file be deleted when the requested operation fails. This is used by clients that cannot retry transactions by themselves, and that depend on retry logic in their own client.

๐Ÿ“œ STANDARDS

๐Ÿ” DIAGNOSTICS

Problems and transactions are logged to syslogd(8) or postlogd(8).

โš™๏ธ CONFIGURATION PARAMETERS

Changes to main.cf are picked up automatically, as bounce(8) processes run for only a limited amount of time. Use the command postfix reload to speed up a change.

The text below provides only a parameter summary. See postconf(5) for more details including examples.

ParameterDefaultDescription
2bounce_notice_recipientpostmaster๐Ÿ“ง The recipient of undeliverable mail that cannot be returned to the sender.
backwards_bounce_logfile_compatibilityyes๐Ÿ”„ Produce additional bounce(8) logfile records readable by Postfix versions before 2.0.
bounce_notice_recipientpostmaster๐Ÿ“ง The recipient of postmaster notifications with message headers of undelivered mail and SMTP conversation transcripts of unreceived mail.
bounce_size_limit50000๐Ÿ“ The maximal amount of original message text sent in a non-delivery notification.
bounce_template_fileempty๐Ÿ“„ Pathname of a configuration file with bounce message templates.
config_directorysee 'postconf -d'๐Ÿ“ Default location of Postfix main.cf and master.cf configuration files.
daemon_timeout18000sโฑ๏ธ How long a Postfix daemon process may handle a request before watchdog termination.
delay_notice_recipientpostmaster๐Ÿ“ง Recipient of postmaster notifications with headers of mail delayed beyond $delay_warning_time.
deliver_lock_attempts20๐Ÿ”’ Max attempts to acquire an exclusive lock on a mailbox or bounce(8) logfile.
deliver_lock_delay1sโฑ๏ธ Time between attempts to acquire an exclusive lock on a mailbox or bounce(8) logfile.
ipc_timeout3600sโฑ๏ธ Time limit for sending/receiving information over an internal communication channel.
internal_mail_filter_classesempty๐Ÿ“‹ Categories of Postfix-generated mail subject to before-queue content inspection by non_smtpd_milters, header_checks and body_checks.
mail_namePostfix๐Ÿท๏ธ Mail system name displayed in Received: headers, SMTP greeting banner, and bounced mail.
max_idle100sโฑ๏ธ Max time an idle Postfix daemon waits for an incoming connection before voluntary termination.
max_use100๐Ÿ”ข Max number of incoming connections a Postfix daemon services before voluntary termination.
notify_classesresource, software๐Ÿ“ง List of error classes reported to the postmaster.
process_idread-only๐Ÿ†” Process ID of a Postfix command or daemon process.
process_nameread-only๐Ÿท๏ธ Process name of a Postfix command or daemon process.
queue_directorysee 'postconf -d'๐Ÿ“ Location of the Postfix top-level queue directory.
syslog_facilitymail๐Ÿ“‹ Syslog facility of Postfix logging.
syslog_namesee 'postconf -d'๐Ÿท๏ธ Prefix prepended to process name in syslog records (e.g., "smtpd" becomes "prefix/smtpd").

Available in Postfix 3.0 and later:

ParameterDefaultDescription
smtputf8_autodetect_classessendmail, verify๐Ÿ” Detect that a message requires SMTPUTF8 support for specified mail origin classes.

Available in Postfix 3.3 and later:

ParameterDefaultDescription
service_nameread-only๐Ÿท๏ธ The master.cf service name of a Postfix daemon process.

Available in Postfix 3.6 and later:

ParameterDefaultDescription
enable_threaded_bouncesno๐Ÿงต Enable non-delivery, success, and delay notifications that link to the original message via References: and In-Reply-To: headers.

๐Ÿ“ FILES

๐Ÿ“š SEE ALSO

๐Ÿ“„ LICENSE

The Secure Mailer license must be distributed with this software.

๐Ÿ‘ค AUTHOR(S)

Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA

Wietse Venema
Google, Inc.
111 8th Avenue
New York, NY 10011, USA


๐Ÿท๏ธ BOUNCE(5) - Postfix bounce message template format

๐Ÿท๏ธ NAME

bounce - Postfix bounce message template format

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ“„ Create bounce template from defaultcp /etc/postfix/bounce.cf.default /etc/postfix/bounce.cfCopy the default template file as a starting point
๐Ÿ‘๏ธ Preview template expansionspostconf -b /etc/postfix/bounce.cfPreview $name expansions in your template
โš™๏ธ Set custom template in main.cfpostconf -e bounce_template_file=/etc/postfix/bounce.cfActivate your custom bounce template
๐Ÿ”„ Reload Postfixpostfix reloadApply configuration changes

๐Ÿ“‹ SYNOPSIS

bounce_template_file = /etc/postfix/bounce.cf

postconf -b [template_file]

๐Ÿ“ DESCRIPTION

The Postfix bounce(8) server produces delivery status notification (DSN) messages for undeliverable mail, delayed mail, successful delivery or address verification requests.

By default, these notifications are generated from built-in templates with message headers and message text. Sites can override the built-in information by specifying a bounce template file with the bounce_template_file configuration parameter.

This document describes the general procedure to create a bounce template file, followed by the specific details of bounce template formats.

๐Ÿ› ๏ธ GENERAL PROCEDURE

To create a customized bounce template file, create a temporary copy of the file /etc/postfix/bounce.cf.default and edit the temporary file.

To preview the results of $name expansions in the template text, use the command:

postconf -b temporary_file

Errors in the template will be reported to the standard error stream and to the syslog daemon.

While previewing the text, be sure to pay particular attention to the expansion of time value parameters that appear in the delayed mail notification text.

Once the result is satisfactory, copy the template to the Postfix configuration directory and specify in main.cf something like:

/etc/postfix/main.cf:
    bounce_template_file = /etc/postfix/bounce.cf

๐Ÿ“„ TEMPLATE FILE FORMAT

The template file can specify templates for failed mail, delayed mail, successful delivery or for address verification. These templates are named failure_template, delay_template, success_template and verify_template, respectively. You can but do not have to specify all four templates in a bounce template file.

Each template starts with template_name = <<EOF and ends with a line that contains the word "EOF" only. You can change the word EOF, but you can't enclose it in quotes as with the shell or with Perl (template_name = <<'EOF'). Here is an example:

# The failure template is used for undeliverable mail.

failure_template = <<EOF
Charset: us-ascii
From: MAILER-DAEMON (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
Postmaster-Subject: Postmaster Copy: Undelivered Mail

This is the mail system at host $myhostname.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                           The mail system
EOF

The usage and specification of bounce templates is subject to the following restrictions:

Examples of all templates can be found in the file bounce.cf.default in the Postfix configuration directory.

๐Ÿ“„ TEMPLATE HEADER FORMAT

The first portion of a bounce template consists of optional template headers. Some become message headers in the delivery status notification; some control the formatting of that notification. Headers not specified in a template will be left at their default value.

The following headers are supported:

The usage and specification of template message headers is subject to the following restrictions:

๐Ÿ“„ TEMPLATE MESSAGE TEXT FORMAT

The second portion of a bounce template consists of message text. As the above example shows, template message text may contain main.cf $parameters. Besides the parameters that are defined in main.cf, the following parameters are treated specially depending on the suffix that is appended to their name.

The usage and specification of template message text is subject to the following restrictions:

๐Ÿ“š SEE ALSO

๐Ÿ“„ LICENSE

The Secure Mailer license must be distributed with this software.

๐Ÿ“œ HISTORY

The Postfix bounce template format was originally developed by Nicolas Riendeau.

๐Ÿ‘ค AUTHOR(S)

Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA

Wietse Venema
Google, Inc.
111 8th Avenue
New York, NY 10011, USA

```
BOUNCE
๐Ÿท๏ธ BOUNCE(8postfix) - Postfix delivery status reports ๐Ÿท๏ธ NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“ DESCRIPTION ๐Ÿ“œ STANDARDS ๐Ÿ” DIAGNOSTICS โš™๏ธ CONFIGURATION PARAMETERS ๐Ÿ“ FILES ๐Ÿ“š SEE ALSO ๐Ÿ“„ LICENSE ๐Ÿ‘ค AUTHOR(S) ๐Ÿท๏ธ BOUNCE(5) - Postfix bounce message template format ๐Ÿท๏ธ NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“ DESCRIPTION ๐Ÿ› ๏ธ GENERAL PROCEDURE ๐Ÿ“„ TEMPLATE FILE FORMAT ๐Ÿ“„ TEMPLATE HEADER FORMAT ๐Ÿ“„ TEMPLATE MESSAGE TEXT FORMAT ๐Ÿ“š SEE ALSO ๐Ÿ“„ LICENSE ๐Ÿ“œ HISTORY ๐Ÿ‘ค AUTHOR(S)

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 09:23 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!