It would be really handy if I could get postfix to use the value returned by the dnsdomainname command for its mydomain value as I could then use the same main.cf file in several headless 'send only' systems where postfix is used solely for sending error messages from cron and similar.
There isn't an 'include' type directive in postfix configuration so I can't see any way of doing this by capturing the output of dnsdomainname at startup and then including this in main.cf. Has anyone else wanted to do anything like this and come up with a solution? -- Chris Green