]> git.proxmox.com Git - pmg-api.git/commit
fix #3712: strip trailing dot from searchdomain
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 22 Nov 2021 19:49:39 +0000 (20:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Nov 2021 11:50:31 +0000 (12:50 +0100)
commit4091d7d5397fc955f2c052648649f39691961f54
treef7e4cbce6855f68b72d4771539c6c4445b7931ad
parent6804695f025886abc709817a13b1d25b73a882ee
fix #3712: strip trailing dot from searchdomain

having a trailing '.' in the search domain is perfectly legal syntax
(for domain names in general). postfix refuses to use a fqdn with
trailing dot as hostname[0].

The restriction might be due to section 2.3.5 (Domain Names) of
RFC5321 (a top-level domain is a single string without any dots) [1]

[0] src/util/valid_hostname.c in the postfix source
[1] https://datatracker.ietf.org/doc/html/rfc5321#section-2.3.5

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Config.pm