Opened 2 weeks ago

#14277 new Bug/Something is broken

Enable automatic clean up for ListServ

Reported by: https://id.mayfirst.org/wolcen Owned by:
Priority: Medium Component: Tech
Keywords: Cc:
Sensitive: no

Description

(Moved from #14184) This task is to enable reverse (inbound) routing back to ListServ, and commensurate configuration there to enable automatic list cleanup for un-deliverable email addresses.

Prior to completing this task, we'd like to ensure that backups are happening for ListServ subscription lists on this machine. See #14276

Instructions direct from ListServ folks:

Postfix is not configured to route PROBE-style bounced mail for LISTSERV, which probably means that you have some invalid addresses on your LISTSERV lists that aren’t getting auto-deleted. Instructions for that would be as follows: Modify /etc/postfix/master.cf to add a transport for LISTSERV:

lsvamin   unix -        n       n       -       -       pipe

  flags=F user=listserv argv=/usr/local/bin/lsv_amin /home/listserv/spool ${user}

Now create a new file called /etc/postfix/transport_regexp. In that file, add two lines as follows:

/^owner(.*)\@/ lsvamin:
/(.*)-request@/ lsvamin:

This regex tells Postfix to send any mail addressed to <owner*> or <-request> to the lsvamin transport that you defined in the previous step. It will match any Return-Path that begins with owner or *-request – i.e., LISTSERV bounced mail. (I don’t know if that will interfere with any Mailman mail; you’ll want to make sure of that first.) Save the transport_regexp file, and create a transport map database from it:

# postmap /etc/postfix/transport_regexp
# ls -lrt /etc/postfix/transport_regexp*
-rw-r--r--  1 root root    44 Jun 15 12:57 /etc/postfix/transport_regexp
-rw-r--r--  1 root root 12288 Jul  6 12:46 /etc/postfix/transport_regexp.db

Next, we need to tell Postfix to use the new regexp. Open /etc/postfix/main.cf, and find the line for local_recipient_maps. Edit that line to include $transport_maps. For example:

local_recipient_maps = unix:passwd.byname $alias_maps $transport_maps

Then either add or edit your transport_maps line to include the new transport_regexp that you've created:

transport_maps = regexp:/etc/postfix/transport_regexp
lsvamin_destination_recipient_limit = 1

Save your edited main.cf, and you're finished. Restart postfix to activate the changes. https://gitlab.com/agaric/sites/portside/issues/75 (postfix/bounce handling)

Change History (0)

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.