Dnia 10.02.2021 o godz. 15:10:09 Chris Green pisze:
>
> These systems are all systemd'ed so I can't just run postfix as above.
> However will 'postconf "myhostname = $(dnsdomainname)"' actually
> change/set the myhostname value in main.cf? If so then simply putting
> the postconf command in /etc/rc.local will do all I need, especially
> after one reboot.
On Wed, Feb 10, 2021 at 04:40:13PM +0100, Jaroslaw Rafa wrote:
Are these machines moved from domain to domain? Ie. is it possible that
"dnsdomainname" will change, or is it the same all the time? If the latter,
I don't see why do you need to set it at each reboot - it is enough to set
it once. So I would try to set it in a script that deploys/copies Postfix
configuration to the target machine.
On 10.02.21 15:55, Chris Green wrote:
I could just edit the value in each system, but then all the main.cf
files would be different.
setting "myhostname = $(dnsdomainname)" what Wietse recommended would not.
Setting FQDN hostname or maybe setting own IP with FQDN in /etc/hosts would
not (I'm not sure whether te latter one would be enough, you can try)
I was in your situation some years ago, when I maintained the same configs
for multiple apps on multiple servers. I maintained /etc/hosts and
hostnames per-machine and most of the rest was the same.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
2B|!2B, that's a question!