Created
July 11, 2022 02:11
-
-
Save grifferz/9f9d98b86a7363a8c7703358baef41cf to your computer and use it in GitHub Desktop.
Saving a copy of all bounce messages with Exim4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/exim4/conf.d/router/050_traffic_tap | |
# This should be the first defined router. | |
traffic_tap: | |
unseen | |
no_expn | |
no_verify | |
transport = local_copy_outgoing | |
driver = accept | |
# "mm_domains" is a list of domain names for mailman, e.g. | |
# "lists.example.com"; it's set as part of the usual Mailman install on | |
# Debian. | |
domains = +mm_domains | |
# Only do this for bounce addresses. | |
local_part_suffix = -bounces : -bounces+* | |
# /etc/exim4/conf.d/transport/60_local_copy_outgoing | |
local_copy_outgoing: | |
driver = appendfile | |
directory = /var/mail/mailman.bitfolk.com/mailarchive/.outgoing/ | |
delivery_date_add | |
envelope_to_add | |
return_path_add | |
group = Debian-exim | |
user = Debian-exim | |
mode = 0660 | |
maildir_format = true | |
create_directory = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment