roehling / postsrsd

Postfix Sender Rewriting Scheme daemon
327 stars 39 forks source link

Missing example for using milter to rewrite only when forwarding mails #174

Open tdewolff opened 9 months ago

tdewolff commented 9 months ago

I wasn't aware that most e-mail servers either deliver mail locally or forward mail remotely (and PostSRSd was built with the second type in mind) but not both. However, I have a mail server that either sends from local, delivers to local, or forwards from remote to remote (a fairly regular setup to accompany a web server I believe). Only when forwarding it should be using SRS rewriting.

How can I use the milter setup to make this work?