Skip to content
Dolf Schimmel edited this page Jun 22, 2016 · 2 revisions

Because Postfix does not allow you to easily determine if a message will be forwarded, the SRS module currently expects you to run two postfix instances. One will inject the 'X-Original-To' (configurable) headers, the other one will compare the envelope recipients with the injected x-original-to headers. If these are different entries, those can be sure to have been forwarded.

In order to accept SRS messages on your MX (inbound) machines, you need to do some additional config work.

Create /etc/postfix/recipient_access.pcre:

/^(SRS(.+))$/	$1

Add to your postfix main.cf:

recipient_canonical_classes = envelope_recipient
recipient_canonical_maps = pcre:/etc/postfix/recipient_access.pcre
Clone this wiki locally