]> git.proxmox.com Git - pmg-api.git/commit
fix #4410: Remove non-null host bits from CIDR when writing postfix config
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 29 Dec 2022 09:45:17 +0000 (10:45 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 29 Dec 2022 16:41:48 +0000 (17:41 +0100)
commit30c74bd27c3a4bd751561032e1a04ef52177db53
tree0829ccae3bf5f98e405f38106c1bde22f82586da
parented7b953519922e9dd2278c6a8c54b31e16ac78c1
fix #4410: Remove non-null host bits from CIDR when writing postfix config

This will drop non-null host bits from `mynetworks` CIDRs when writing
the `main.cf` postfix template.
Backwards-compatibility with old entries in `/etc/pmg/mynetworks` is
thus also preserved.

Add an additional comment to the mynetworks API, indicating that unused
fields can/should be dropped with the next PMG version.

No GUI changes. The entries are written to `/etc/pmg/mynetworks` as the
user enters them. Suggested by Stoiko, see discussion in v2 thread [0].

[0] https://lists.proxmox.com/pipermail/pmg-devel/2022-December/002247.html

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
src/PMG/Config.pm