Debian Bug report logs - #991950
postfix.postinst fails if /e/resolv.conf contains `search .`

version graph

Package: src:postfix; Maintainer for src:postfix is LaMont Jones <lamont@debian.org>;

Reported by: Paride Legovini <paride@debian.org>

Date: Fri, 6 Aug 2021 14:51:02 UTC

Severity: normal

Tags: patch

Merged with 990752

Found in version postfix/3.5.6-1

Fixed in version postfix/3.6.3-2

Done: Scott Kitterman <scott@kitterman.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, paride@debian.org, LaMont Jones <lamont@debian.org>:
Bug#991950; Package src:postfix. (Fri, 06 Aug 2021 14:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Paride Legovini <paride@debian.org>:
New Bug report received and forwarded. Copy sent to paride@debian.org, LaMont Jones <lamont@debian.org>.

Your message had a Version: pseudo-header with an invalid package version:

postinst fails if /e/resolv.conf search domain starts with a "."

please either use found or fixed to the control server with a correct version, or reply to this report indicating the correct version so the maintainer (or someone else) can correct it for you.

(Fri, 06 Aug 2021 14:51:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Paride Legovini <paride@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: postfix.postinst fails if /e/resolv.conf contains `search .`
Date: Fri, 06 Aug 2021 16:46:50 +0200
Source: postfix
Version: postinst fails if /e/resolv.conf search domain starts with a "."
Severity: normal
X-Debbugs-Cc: paride@debian.org

Dear Postfix maintainers,

When the /etc/resolv.conf search domain considered by postfix.postinst
to configure postfix as an "Internet site" (the default debconf option),
e.g.:

  search .example.com

the installation fails with:


Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: debian-sid..example.com
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: debian-sid..example.com
dpkg: error processing package postfix (--configure):
 installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)


Note the double dot in "debian-sid..example.com". Having domain start
with a dot is not explicitly mentioned by resolv.conf(5), but the syntax
is accepted by the glibc resolver, see:

https://sourceware.org/git/?p=glibc.git;a=blob;f=resolv/res_query.c;h=ebbe5a6a4ed86abe3fccd4a134bfcf6f613c9bbb;hb=HEAD#l385

(thanks sergiodj@d.o for digging this up).

The postfix.postinst file should tolerate those domains and strip off
leading dots, as the glibc resolver does:

https://sourceware.org/git/?p=glibc.git;a=blob;f=resolv/res_query.c;h=ebbe5a6a4ed86abe3fccd4a134bfcf6f613c9bbb;hb=HEAD#l411

The above was verified on an up-to-date Sid system with postfix 3.5.6-1+b1.

Paride



Information forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#991950; Package src:postfix. (Fri, 06 Aug 2021 15:51:02 GMT) (full text, mbox, link).


Acknowledgement sent to Paride Legovini <paride@debian.org>:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>. (Fri, 06 Aug 2021 15:51:02 GMT) (full text, mbox, link).


Message #10 received at 991950@bugs.debian.org (full text, mbox, reply):

From: Paride Legovini <paride@debian.org>
To: 991950@bugs.debian.org
Subject: Re: postfix.postinst fails if /e/resolv.conf contains `search .`
Date: Fri, 6 Aug 2021 17:49:12 +0200
Control: tags -1 + patch

I submitted this MP with a fix:

https://salsa.debian.org/postfix-team/postfix-dev/-/merge_requests/12

Cheers!

Paride



Added tag(s) patch. Request was from Paride Legovini <paride@debian.org> to 991950-submit@bugs.debian.org. (Fri, 06 Aug 2021 15:51:02 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Scott Kitterman <scott@kitterman.com> to control@bugs.debian.org. (Tue, 21 Dec 2021 17:51:03 GMT) (full text, mbox, link).


Marked as found in versions postfix/3.5.6-1. Request was from Scott Kitterman <scott@kitterman.com> to control@bugs.debian.org. (Tue, 21 Dec 2021 18:09:04 GMT) (full text, mbox, link).


Merged 990752 991950 Request was from Scott Kitterman <scott@kitterman.com> to control@bugs.debian.org. (Tue, 21 Dec 2021 18:09:05 GMT) (full text, mbox, link).


Reply sent to Scott Kitterman <scott@kitterman.com>:
You have taken responsibility. (Thu, 23 Dec 2021 06:06:11 GMT) (full text, mbox, link).


Notification sent to Paride Legovini <paride@debian.org>:
Bug acknowledged by developer. (Thu, 23 Dec 2021 06:06:11 GMT) (full text, mbox, link).


Message #23 received at 991950-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 991950-close@bugs.debian.org
Subject: Bug#991950: fixed in postfix 3.6.3-2
Date: Thu, 23 Dec 2021 06:03:28 +0000
Source: postfix
Source-Version: 3.6.3-2
Done: Scott Kitterman <scott@kitterman.com>

We believe that the bug you reported is fixed in the latest version of
postfix, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 991950@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Kitterman <scott@kitterman.com> (supplier of updated postfix package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 23 Dec 2021 00:18:30 -0500
Source: postfix
Architecture: source
Version: 3.6.3-2
Distribution: unstable
Urgency: medium
Maintainer: LaMont Jones <lamont@debian.org>
Changed-By: Scott Kitterman <scott@kitterman.com>
Closes: 905653 968516 991513 991950 995031 995129 999867
Changes:
 postfix (3.6.3-2) unstable; urgency=medium
 .
   [Scott Kitterman]
 .
   * Add postfix-mta-sts-resolver to suggests.  Closes: #968516
   * Include compatibility_level in addition to postifx version when
     determining default value for chroot in master.cf.  Closes: #995129
   * Fixup errors in postifx-add-* man pages.  Closes: #995031
   * Set compatibility level to 3.6 for fresh installs
   * Update main/master.cf.proto on upgrade if not modified.  Closes: #991513
   * Decruft debconf template:
     - Remove ancient (postfix 2.3) mydomain_warning
     - Delete old (Postfix 2.10) relay_restrictions_warning
     - Delete unused lmtp_retired_warning template
     - Delete unused kernel_version_warning template
     - Delete unused retry_upgrade_warning template
     - Delete unused tlsmgr_upgrade_warning template
   * Debconf template cleanup, thanks to Markus Hiereth for the suggestions.
     Closes: #905653
 .
   [Miriam España Acebal]
 .
   * Removed LDFLAG -Bsymbolic-functions to fix issue where TLS is disabled
     when private/tlmsgr socket is not found.  lp: #1885403
 .
   [Christian Göttsche]
 .
   * Update debian/patches/07_sasl_config.diff:
     - Fix conversion warnings by adding explicit cast
     - Drop unused function xsasl_getpath
   * Fix lintian detected typos in Debian packaging.
   * Do not require postfix to be build by root.
   * Set -e shell option explicitly.
   * Bump watch file standard to version 4.
   * Add misc:Pre-Depends to postfix.
   * Remove trailing spaces in changelog.
   * Add Documentation key to postfix service.
   * Drop alternative dependency on obsolete libmysqlclient-dev.
   * Add standard salsa ci configuration.
   * Drop unused debconf template sqlite_warning.
 .
   [Paride Legovini]
 .
   * d/postfix.postinst: tolerate search domain with a leading dot.
     Closes: #991950
 .
   [Sergio Durigan Junior]
 .
   * Support networkd-dispatcher.  Closes: #999867  lp: #1718227
Checksums-Sha1:
 cb0c1825156bf4ad6a9393bba41439fc78b3ca97 2976 postfix_3.6.3-2.dsc
 b15e6c88ecb7dce46b99fde4a3491d4902185c19 204868 postfix_3.6.3-2.debian.tar.xz
 ba0a3a28e47f2038e7335e870804ddbfe78b365d 7705 postfix_3.6.3-2_source.buildinfo
Checksums-Sha256:
 ecf0388b0b1914d760bbb05a28b5c3138c664822c964f1a24db2d29cf306ab80 2976 postfix_3.6.3-2.dsc
 153c662756738a5d6ba0909de072cc142ec7690e5ee00226888e313af1ba5429 204868 postfix_3.6.3-2.debian.tar.xz
 595d89880c07e7d12cd0bb05100578f848c1c70331880f3e97cfb435076eac93 7705 postfix_3.6.3-2_source.buildinfo
Files:
 884ca34014a452fa32ba0269f3a8f4ef 2976 mail optional postfix_3.6.3-2.dsc
 048957a30bdac24f625688a54bdfb271 204868 mail optional postfix_3.6.3-2.debian.tar.xz
 efb1d62b23ed40951982fa2d8010682d 7705 mail optional postfix_3.6.3-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAmHECWEACgkQeNfe+5rV
mvFw5hAAoaeTLDkQagAYvppjqBM5bKArP2+cEhJTBCOXqUr6JHUO5rK4MMZOfSKL
Fh9pZV+ylHFnbrZ3elzG047/uhadzi4/V+I4QyhVx6TnifZXMv9WNDQY/r69uBUy
na5+JLJjgYg0eK/zTJ//JiplIiU9zBaGoDB7M4TzV1PxeRc4dul2GFiNJ7L3tQQj
601ao0J9RaPIW2IK0S0+H3olUPlDAlvBsREXXXx+OKds3w8+clUdnYO4R/3mbtKF
DJOmfPrkfBvxgYuvfRWzbQPZ5kL6+q8QB6xtSg88NMKSKFgXmM//vvIStTdsiH3G
TJXkthEvHzA95t8UbORzWOacxqMvYbhQDbak6WPrN/c8D1Xj9bpckXcsFi9gLCKD
s6kUcI1BewZv8+a96sE9ZW2SbYU0kP9mpAlBwiYe8MwEVN5HSUrdk6oYus58MaPm
xUEBJJ5RMiCwXfIgRa2+wWqP8pj3UgY6XaC21i2N9eZA+f9d8g5u2oEml79b8gCX
bl0ZLCBwsd9OXYLMi8CwiS0lnRtrNJhjBb5nrwGMWSNP5GBh+jJRhj3DYaSHyaFG
EGEeeRYwVlh8yT91FbawYj+d1TLUtG1V+I0QgV87M+8XwVA3zy20f4m4/94qm5hi
voa3/Co2pG2+5ue6e/PCkjGdOwQpeU1v7lc2/5xhZ2VbYAwzgY4=
=Dsyj
-----END PGP SIGNATURE-----




Reply sent to Scott Kitterman <scott@kitterman.com>:
You have taken responsibility. (Thu, 23 Dec 2021 06:06:12 GMT) (full text, mbox, link).


Notification sent to Utkarsh Gupta <utkarsh@debian.org>:
Bug acknowledged by developer. (Thu, 23 Dec 2021 06:06:12 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 20 Jan 2022 07:26:12 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Aug 8 02:10:38 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.