2012-02-22 17:41:21 UTC
i've made a new SRS patch for debian postfix-2.7.0.
It is based on Sheveks patch for postfix-2.1.4 but has many
Works with all address classes (not limited to local domain).
Doesn't depend on .forward-files or alias_maps.
SMTPD accepts valid srs addresses without further configuration.
Sender gets rewritten only when necessary:
- rewrite after queuing (after separation to on- and off-site
- rewrite only if sender and recipient are off-site and host is not a
Alias domain can be chosen automatically from original
Patch is available at http://www.codefrickler.de/srs
I decided NOT to write a milter/filter plugin for the following
Forward rewriting has to be done AFTER queuing, in order to
distinguish between on-site and off-site recipients. One could have
filter for that, but an external filter doesn't have direct access to
postfixs lookup tables nor the original recipient nor the queue id for
logging purposes. So it's more complicated to get it up and running,
especially if you have many domains.