8.2 Bounce management
The bounce management provides you with the capability to keep your mailinglists clean and up-to-date automatically. A
bounce message is an error message, which will be send from a mailserver on the recipient's sider to the sender, if an email
is not deliverable. The bounce management administrates e-mails which are temporarily or enduringly undeliverable.
It also filters the error messages and autoresponder mails.
If you want OpenEMM to process bounces received during the send process (instant bounces) no further configuration is
required, because bounce management for instant bounces works out of the box. However, if you want OpenEMM also to
process bounces (and autoresponder mails) which are received hours or even days later (delayed bounces) you have to
do some setup. This is recommended if you send mailings to large lists because the number of delayed bounces and
autoresponder mails will be significant and the automated bounce management by OpenEMM will save you a lot of work.
If you want to use the bounce management for delayed bounces you need to define a dedicated sender hostname for
OpenEMM which is different from the existing host name of your server (see file hosts in directory /etc) and you have to
set up an A record and a MX (Mail Exchanger) record in your Domain Name Server (DNS) for the sender hostname. The
MX record is used to route mail for a domain to one or more IP addresses. OpenEMM needs the new (virtual) host as a
destination, to forward all incoming response to, for further processing by OpenEMM.
In our example the regular hostname is host and the sender hostname for OpenEMM will be news. The (abbreviated)
DNS entry looks like this:
86400 IN A 0 22.214.171.124
host 86400 IN A 10 126.96.36.199
news 86400 IN A 10 188.8.131.52
news.openemm.org. 86400 IN MX 10 host.openemm.org.
The first line assigns the IP address for openemm.org and the second line defines the regular hostname. The third and
fourth line define the A record and MX record for sender hostname news, meaning that host host accepts e-mails sent to
Validate your correct setup by using a tool like host or dig, for example
host â€“a openemm.org
host â€“a host.openemm.org
host â€“a news.openemm.org
When you send e-mails and want to take advantage of the bounce management for delayed bounces there are two
possibilities for the format of the sender address:
A.) Use whatever address you like. Set up a bounce filter in OpenEMM (see user manual) to foward the filtered response
to a feedback e-mail address of your choice (different from the sender address, of course). Implement a forward
mechanism to forward incoming mail sent back to the sender address to the forward address generated by the bounce
filter (in our example firstname.lastname@example.org
). The flow for responses of your e-mails works like this:
sender address -> filter-generated forward address (to filter out bounces) -> feedback address
B.) Use an e-mail address with the sender hostname (in our example email@example.com
) Since no real e-mail
addresses exist for the sender hostname, normally it would not be possible to reply to an e-mail with this sender address.
To forward responses to a valid e-mail address you have to define a bounce filter with an e-mail feedback address of your
choice. The forward address generated by the bounce filter (in our example firstname.lastname@example.org
) has to be
defined as an alias in directory /home/openemm/conf/bav in a new file named bav.conf-local. Our example:
---File: /home/openemm/conf/bav/bav.conf-local ----
The flow for responses of your e-mails works like this:
sender address -> bav.conf-local -> filter-generated forward address -> feedback address
If you create the file bav.conf-local please do not forget to re-create it after an update of OpenEMM â€“ otherwise it would