I have a well established 2.10 Postfix instance on 2.10 (CentOS7) which is to be migrated to a new machine running Postfix 3.3 (on RHEL8).

I've been reading http://www.postfix.org/COMPATIBILITY_README.html, and from what I can see the backward compatibility issues I may run into are (with existing config from 2.10)

- append_dot_mydomain (not explicitly set on 2.10, i.e. implicitly "yes")
- chroot (explicitly set to n on 2.10 in master.cf)
- smtpd_relay_restrictions (explicitly set to empty on 2.10)
- mynetworks_style (not explicitly set on 2.10, i.e. implicitly "subnet")
- relay_domains (not explicitly set on 2.10, i.e. implicitly "$mydestination")

To re-use the existing configuration I'm thinking I need to:

1. explicitly set append_dot_mydomain to yes
2. explicitly set mynetworks_style to subnet (2.10 config = "mynetworks = 127.0.0.0/8, 192.168.1.0/24")
3. explicitly set relay_domains=$mydestination

If I do those should I explicitly set compatibility_level, or would it not be needed because I have addressed the compatibility issues?

And are there any other 'gotchas' to be aware of with this upgrade?

On 21.03.21 21:57, Simon Wilson wrote:
Ok, I migrated the config from the 2.10 server, and added new specific configuration items for:

append_dot_mydomain = yes
mynetworks_style    = subnet
relay_domains       = $mydestination

I recommend avoiding setting any, unless you really need them.

it's better to explicitly configyre "mynetworks" to your local subnets.

and using only relay_domains makes sense if you are relay for anyone.

With those set, all services in master.cf explicitly chroot=n, and compatibility_level set to 99

don't do this. You never know what changes in the future and will require
your intervention.
--
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.
Eagles may soar, but weasels don't get sucked into jet engines.

Reply via email to