On 3/5/2012 5:53 PM, Daniel L. Miller wrote: > Is it possible to: > > 1. Rewrite the sender based on the destination? Particular example > - using a fax-to-email service, only one email address is allowed to > be used. So I want any message addressed TO > "xxxxxxx...@faxpeople.com" to be sent FROM > "designatedu...@mydomain.com" (from a valid client, of course).
Use a transport_maps entry to direct mail for faxpeople.com to a custom master.cf transport (a clone of the smtp...smtp transport). On that transport use -o smtp_generic_maps to rewrite *@yourdomain to whatever. http://www.postfix.org/transport.5.html http://www.postfix.org/ADDRESS_REWRITING_README.html#generic http://www.postfix.org/master.5.html > > 2. Rewrite the destination based on the sender. The reverse case - > a received fax image is returned, but instead of going to the > original recipient, rewrite the recipient to "f...@mydomain.com" when > the sender is "nore...@faxpeople.com" so my auto-print service will > do its job. This can be done with a check_sender_access map and the REDIRECT action. http://www.postfix.org/access.5.html -- Noel Jones