I have several machines behind a NAT router which run postfix.  Some of
these machines are desktop machines with real users who create and send
mail while others are (usually headless) servers where the only mail is
generally that sent by cron jobs and other similar status information.

All of the status messages from all machines on the network are sent to
me on my desktop machine (using /etc/aliases to point all destinations
to my E-Mail).  Thus I'd like to preserve the (local) name of the
sending system in these messages so I can identify where an error
message has come from.

E.g. I want messages from postmaster/root/cron on my dps server to be
distinguishable from similar messages from the server called mws.

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.

So, is there a way to get what I want?  It's surely quite a common
situation.

-- 
Chris Green

Reply via email to