On Wed, Feb 10, 2021 at 12:17:47PM -0500, Viktor Dukhovni wrote: > On Wed, Feb 10, 2021 at 05:05:52PM +0000, Chris Green wrote: > > This may be a good time to clearly (re)state what problem you're trying > to solve, now that you're apparently able to assign the desired mydomain > to each machine. > OK, what I want to do is as follows:-
I have several headless machines which need to be able to send error and other messages to me ch...@isbd.co.uk. All these systems have 'send only' postfix configurations whose sole function is to send these messages to me. Originally all these systems were on a LAN behind zbmc.eu so setting 'mydomain = zbmc.eu' in main.cf worked for all of them and I could use the same main.cf. I now would like to use the same main.cf file in a few more systems which are not on the same LAN and thus not the same domain. Ideally I'd like to continue using the same main.cf for all these systems, this is simply to make my life easier maintaining them and such. Looking at what you say above I see the following (on one of the existing systems in the LAN behind zbmc.eu) :- chris$ postconf -d myorigin myorigin = $myhostname chris$ postconf -d myhostname myhostname = t470.localdomain chris$ dnsdomainname zbmc.eu chris$ hostname -f t470.zbmc.eu chris$ hostname t470 So one can see why (at present) I need to set 'mydomain = zbmc.eu' explicitly in main.cf, however I don't quite see how to change things so that they work how I want. Thanks for all the help so far everybody, I really do appreciate it. -- Chris Green