On Thu, Nov 18, 2010 at 06:03:26PM +0000, Chris G wrote: > E.g. I want messages from postmaster/root/cron on my dps server to be > distinguishable from similar messages from the server called mws.
http://www.postfix.org/MULTI_INSTANCE_README.html#quick > This means (I think) that I want to set the myorigin parameter to the > machine's name on the LAN (e.g. dps.zbmc.eu or mws.zbmc.eu). This is > how I have things set at the moment. > > However for mail going to the outside world (which does get sent from > mws.zbmc.eu in particular) I think myorigin should be zbmc.eu as that is > how the outside world sees my systems. In addition, having myorigin set > to dps.zbmc.eu, mws.zbmc.eu, chris.zbmc.eu means that the mail headers > have invalid/unknown host names in the headers as these host names only > exist on my LAN. You can use internal addresses internally and map them on the way out, or use external addresses everywhere (better I think) and deliver some of these locally via virtual_alias_maps. All the tools (canonical, virtual and generic rewriting) are described in ADDRESS_REWRITING_README.html. Avoid sender_canonical_maps, it is semantically wrong in most cases. Avoid masquerading (at least for inbound mail) as it is difficult to combine with recipient validation. -- Viktor.