Merge ~paride/ubuntu/+source/postfix:lp1906970-impish into ubuntu/+source/postfix:ubuntu/devel
Proposed by
Paride Legovini
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Sergio Durigan Junior | ||||
| Approved revision: | fabf04ebd52a1b74ec08483de67d16a036bbb627 | ||||
| Merged at revision: | fabf04ebd52a1b74ec08483de67d16a036bbb627 | ||||
| Proposed branch: | ~paride/ubuntu/+source/postfix:lp1906970-impish | ||||
| Merge into: | ubuntu/+source/postfix:ubuntu/devel | ||||
| Diff against target: |
42 lines (+10/-2) 3 files modified
debian/changelog (+7/-0) debian/control (+2/-1) debian/postfix.postinst (+1/-1) |
||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sergio Durigan Junior (community) | Approve | ||
| git-ubuntu developers | Pending | ||
|
Review via email:
|
|||
Commit message
d/postfix.postinst: tolerate search domain with a leading dot
Search domain with a leading dot cause postfix.postinst to fail because it constructs a 'myhostname' with a duplicate dot (see #991950).
The glibc resolver tolerates such domains and strips the leading dot from the search domain [1]. This change makes postfix.postinst do the same.
This same fix has been proposed for inclusion in Debian [2].
[1] https:/
[2] https:/
Closes: #991950, LP: #1906970
To post a comment you must log in.

Test PPA: https:/ /launchpad. net/~paride/ +archive/ ubuntu/ postfix- lp1906970
Test case:
1. Start an Impish LXD container
2. Edit /etc/resolv.conf and add search line like one of these:
search .
search .foo.bar
domain .foo.bar
3. Install postfix from the archive, accept all the debconf defaults, main.cf is sane.
and verify that postinst fails with a broken domain name.
4. Purge postfix and reinstall from the test PPA.
5. Verify that the installation succeeds.
6. Verify that `myhostname` in /etc/postfix/