Use a transport map so Postfix can invoke the mlmmj executables as the
`mlmmj` user. In `/etc/postfix/main.cf`:
- transport_maps = regexp:/var/spool/mlmmj/transport
+ virtual_alias_maps = hash:/etc/postfix/virtual
+ transport_maps = hash:/etc/postfix/transport
mlmmj_destination_recipient_limit = 1
-And in `/var/spool/mlmmj/transport`, add a line for each mailing list.
-The following line maps an email regexp (`/^(mlmmj-test).*$/`) to a
-transport (`mlmmj`) with a given nexthop address (`mlmmj-test`):
+In `/etc/postfix/virtual`, add a line for each mailing list.
- /^(mlmmj-test).*$/ mlmmj:mlmmj-test
+ mlmmj-test@example.com example.com--mlmmj-text@localhost.mlmmj
+
+In `/etc/postfix/transport`, add a line for each mailing list. The
+following line maps the virtual address
+(`example.com--mlmmj-test@localhost.mlmmj`) to a transport (`mlmmj`)
+with a given nexthop address (`mlmmj-test`):
+
+ example.com--mlmmj-test@localhost.mlmmj mlmmj:mlmmj-test
Add the referenced transport to `/etc/postfix/master.cf`:
Set custom headers:
- # cat /var/spool/mlmmj/mlmmj-test/control/customheaders
- X-Mailinglist: mlmmj-test
- Reply-To: mlmmj-test@example.com
+ # cat /var/spool/mlmmj/mlmmj-test/control/customheaders
+ X-Mailinglist: mlmmj-test
+ Reply-To: mlmmj-test@example.com
Set custom footers: