On Wed, Feb 10, 2021 at 05:41:49PM +0000, Chris Green wrote: > 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.
Directly to that address, or indirectly by sending mail to various local accounts that alias to this address? If the latter, and $myorigin is listed in $mydestination, then alias these various accounts to the desired recipient address. > 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 Now you're reporting built-in default values ("-d" option of "postconf"). That's not useful. I was specifically telling what the *default* value is. If you have a non-default value you can report it via "postconf -n". > chris$ hostname -f > t470.zbmc.eu This is irrelevant. > chris$ hostname > t470 This shows a non-FQDN hostname. > 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. You still have not actually explained what specifically you want, but if it is just ensuring FQDN header and envelope sender and recipient addresses, then: 1. Make sure "myorigin" is the desired FQDN. * You can leave at its default value of "$myhostname" * You can set to to "$mydomain", which is inferred by from the system hostname (with the expected result if that's an FQDN). * You can set it explicitly to, e.g. "someorigin.example" 2. Make sure that mydestination is either empty or lists only $myorigin. * If mydestination is empty, your envelope recipient address rewriting will be via virtual_alias_maps. * If mydestination is $myorigin, your envelope recipient address rewriting will be via alias_maps. In either case, your header address rewriting can be via either or both of canonical_maps and smtp_generic_maps. If you're setting up lots of nullclient Postfix configurations, you may find some of the ideas in MULTI_INSTANCE_README helpful: http://www.postfix.org/MULTI_INSTANCE_README.html#split But get the basics working first. -- Viktor.