Hi, 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 improvements:
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 destinations) - rewrite only if sender and recipient are off-site and host is not a relay for recipient Alias domain can be chosen automatically from original on-site-recipient. Patch is available at http://www.codefrickler.de/srs I decided NOT to write a milter/filter plugin for the following reasons: Forward rewriting has to be done AFTER queuing, in order to distinguish between on-site and off-site recipients. One could have used a 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. Chris