DNS hostname lookups fail in chroot after natty upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
Fix Released
|
High
|
Steve Langasek | ||
Natty |
Fix Released
|
High
|
Steve Langasek | ||
Oneiric |
Fix Released
|
High
|
Steve Langasek |
Bug Description
SRU justification: the postfix package in natty runs in a chroot by default, but does not know to copy nss modules from the multiarch library paths to set up the chroot. As a result, various sorts of NSS resolution, such as mapping port names to numbers or resolving the hostnames of incoming connections, will fail. This will break postfix in various common configurations.
TEST CASE:
1. install postfix and configure it to use a smart host, specifying only a hostname (no port) for the smart host.
2. verify that there is no /var/spool/
3. send mail and verify that the mail delivery fails because postfix can't resolve 'smtp' to a port number.
4. upgrade postfix to the SRU version
5. verify that after upgrade, there is a /var/spool/
6. send mail and verify that it now can be sent to the smarthost successfully.
Risk of regression: if I've done something wrong and the tar command fails under certain conditions, postfix will fail to start.
Binary package hint: postfix
I haven't yet determined the cause of this, but after upgrading to natty from maverick, postfix smtpd DNS lookups always fail when running in chroot (which is the default). This can be seen by lines like "postfix/
There were no changes in my configuration other than upgrading from maverick to natty. Hostname lookups worked fine in chroot with maverick.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: postfix 2.8.2-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Sun Apr 17 16:46:24 2011
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/sh
SourcePackage: postfix
UpgradeStatus: Upgraded to natty on 2011-04-16 (1 days ago)
Related branches
Changed in postfix (Ubuntu): | |
status: | New → Confirmed |
Changed in postfix (Ubuntu): | |
importance: | Undecided → High |
Changed in postfix (Ubuntu): | |
assignee: | nobody → Steve Langasek (vorlon) |
tags: | added: regression-release |
Changed in postfix (Ubuntu Natty): | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → natty-updates |
tags: | added: patch |
Changed in postfix (Ubuntu Natty): | |
assignee: | nobody → Steve Langasek (vorlon) |
description: | updated |
Changed in postfix (Ubuntu Natty): | |
status: | Confirmed → In Progress |
Changed in postfix (Ubuntu Oneiric): | |
status: | Confirmed → In Progress |
I'm using LDAP maps for aliases, but since i upgraded to natty the LDAP lookup does not anymore, since i get the following error messages from postfix: cleanup[ 30160]: dict_ldap_debug: ldap_connect_ to_host: TCP ldapmaster. domain. com:389 cleanup[ 30160]: dict_ldap_debug: ldap_connect_ to_host: getaddrinfo failed: Name or service not known cleanup[ 30160]: dict_ldap_debug: ldap_err2string cleanup[ 30160]: warning: dict_ldap_lookup: Search error -1: Can't contact LDAP server cleanup[ 30160]: warning: AF28B226A2: sender_ canonical_ maps map lookup problem for <email address hidden>
Apr 30 13:37:22 host postfix/
Apr 30 13:37:22 host postfix/
Apr 30 13:37:22 host postfix/
Apr 30 13:37:22 host postfix/
Apr 30 13:37:22 host postfix/