Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • As far as I can tell, this only implements a table lookup. However, there might be several different From header addresses used with the same Envelope From address, so the table needs to act somewhat dynamically. Is there a variable for the From header address that can be used for the result? Commented Mar 23, 2012 at 9:38
  • You could specify a regular expression: postfix.org/DATABASE_README.html#types Commented Nov 29, 2013 at 12:24
  • 3
    I don't see a way to do the rewriting dynamically, specifically to rewrite the envelope address based on the 'From:' address - even using regex or pcre tables... Commented May 10, 2016 at 14:46
  • I agree there doesnt seem to be a way to do it with plain config. You could do it with pymilter.org and a fairly simple script but I'd still be careful, maybe make a whitelist of allowed senders Commented Jun 18, 2025 at 9:29