inet_protocols can't be preseeded

Bug #583216 reported by Japje
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
postfix (Debian)
Fix Released
Unknown
postfix (Ubuntu)
Medium
Seyeong Kim
Precise
Medium
Seyeong Kim
Trusty
Medium
Seyeong Kim
Utopic
Medium
Seyeong Kim
Vivid
Medium
Seyeong Kim

Bug Description

[SRU justification]

[Impact]

* Can't preseed postfix postfix/protocols select all

[Test Case]

Binary package hint: postfix

Ubuntu 10.4

postfix:
  Installed: 2.7.0-1
  Candidate: 2.7.0-1
  Version table:
 *** 2.7.0-1 0
        500 http://nl2.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

We run a dualstack network, and i want to set inet_protocols to all on a 10.4 server when installing postfix. The server is already installed (no preseed during installation due to installation method).

I have set:

postfix postfix/protocols select all

But the inet_protocols is never set. I have tried different places in the config, and different settings (ipv4/ipv6/all).

Output install:

setting myhostname: webserver.hostname.tld
setting alias maps
setting alias database
changing /etc/mailname to webserver.hostname.tld
setting myorigin
setting destinations: webserver.hostname.tld, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix is now set up with a default configuration.

Thanks for the help!
Jasper Wonnink

[Regression Potential]

[Other Info]

My preseed config:

postfix postfix/root_address string
postfix postfix/rfc1035_violation boolean false
postfix postfix/mydomain_warning boolean
postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
postfix postfix/mailname string webserver.hostname.tld
postfix postfix/tlsmgr_upgrade_warning boolean
postfix postfix/recipient_delim string +
postfix postfix/main_mailer_type select Internet Site
postfix postfix/destinations string webserver.hostname.tld, localhost
postfix postfix/retry_upgrade_warning boolean
# Install postfix despite an unsupported kernel?
postfix postfix/kernel_version_warning boolean
postfix postfix/mailbox_limit string 0
postfix postfix/relayhost string
postfix postfix/procmail boolean false
postfix postfix/protocols select all
postfix postfix/chattr boolean false

Revision history for this message
Thierry Carrez (ttx) wrote :

After a quick look into postfix.config and postfix.postinst, I'm not sure postfix/protocols is considered "changed" in case you preseed that value, in which case you'd skip the "setting inet_protocols" stage in postinst.

Changed in postfix (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Matthew L. Dailey (matthew-l-dailey) wrote :

This is a pretty old bug, but it looks like it's still present in precise (postfix 2.9.1-4).

Looking at the postinst script, I think the fix is pretty trivial - setting the changed flag for postfix/protocols in fset_all_changed(). I'm attaching a patch that should take care of this.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "postfix_protocols_preseed.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Matthew L. Dailey (matthew-l-dailey) wrote :

I also went ahead and opened an upstream bug - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671235

Changed in postfix (Debian):
status: Unknown → New
Revision history for this message
Matthew L. Dailey (matthew-l-dailey) wrote :

It looks like this bug is still present in trusty - postfix 2.11.0-1.

I'm going to bump the upstream bug as well, but is there any chance we can get this patch into the Ubuntu package since upstream seems unwilling to fix this? I can create a debdiff if that would be helpful.

Revision history for this message
Dave Chiluk (chiluk) wrote :

@matthew-l-dailey,

Could you put together a debdiff for this patch against the latest utopic sources?
This looks to be a fairly good guide.
http://packaging.ubuntu.com/html/traditional-packaging.html

Also if you are feeling frisky you could also create a debdiff for the trusty and precise trees and submit it via the SRU Process described here.
https://wiki.ubuntu.com/StableReleaseUpdates

If you have any questions feel free to ping me via e-mail or IRC.

Revision history for this message
Seyeong Kim (seyeongkim) wrote :
description: updated
Revision history for this message
Seyeong Kim (seyeongkim) wrote :
Changed in postfix (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Seyeong Kim (xtrusia)
Revision history for this message
LaMont Jones (lamont) wrote :

Looks good to me. I'll get it added into the debian source next time I upload.

Changed in postfix (Debian):
status: New → Fix Committed
Revision history for this message
Dave Chiluk (chiluk) wrote :

This patch should also go into trusty so that it can be picked up for 14.04.2.

tags: added: cts
Dave Chiluk (chiluk)
Changed in postfix (Ubuntu):
milestone: none → ubuntu-14.04.2
Revision history for this message
Seyeong Kim (seyeongkim) wrote :
Chris J Arges (arges)
Changed in postfix (Ubuntu Trusty):
assignee: nobody → Seyeong Kim (xtrusia)
Changed in postfix (Ubuntu Utopic):
assignee: nobody → Seyeong Kim (xtrusia)
Changed in postfix (Ubuntu Trusty):
importance: Undecided → Medium
Changed in postfix (Ubuntu Utopic):
importance: Undecided → Medium
Revision history for this message
Chris J Arges (arges) wrote :

Uploaded for Vivid, Utopic, and Trusty.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postfix - 2.11.3-1ubuntu1

---------------
postfix (2.11.3-1ubuntu1) vivid; urgency=medium

  * support postfix/protocols (LP: #583216)
 -- Seyeong Kim <email address hidden> Mon, 02 Feb 2015 15:50:04 -0600

Changed in postfix (Ubuntu Vivid):
status: In Progress → Fix Released
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Packages are in the upload queues awaiting the SRU team, unsubscribing ubuntu-sponsors.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Japje, or anyone else affected,

Accepted postfix into utopic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/postfix/2.11.1-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in postfix (Ubuntu Utopic):
status: New → Fix Committed
tags: added: verification-needed
Changed in postfix (Ubuntu Trusty):
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Japje, or anyone else affected,

Accepted postfix into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/postfix/2.11.0-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Simon Déziel (sdeziel)
tags: added: verification-done-precise
tags: added: verification-done-trusty
removed: verification-done-precise
Revision history for this message
Simon Déziel (sdeziel) wrote :

Tested OK on Utopic and Trusty, thanks!

tags: added: verification-done
removed: verification-done-trusty verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postfix - 2.11.0-1ubuntu1

---------------
postfix (2.11.0-1ubuntu1) trusty; urgency=low

  * support postfix/protocols (LP: #583216)
 -- Seyeong Kim <email address hidden> Mon, 02 Feb 2015 16:20:29 -0600

Changed in postfix (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of the Stable Release Update for postfix has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postfix - 2.11.1-1ubuntu1

---------------
postfix (2.11.1-1ubuntu1) utopic; urgency=medium

  * support postfix/protocols (LP: #583216)
 -- Seyeong Kim <email address hidden> Mon, 02 Feb 2015 16:15:31 -0600

Changed in postfix (Ubuntu Utopic):
status: Fix Committed → Fix Released
Revision history for this message
Seyeong Kim (seyeongkim) wrote :

patch for precise

Chris J Arges (arges)
Changed in postfix (Ubuntu Precise):
assignee: nobody → Seyeong Kim (xtrusia)
Revision history for this message
Chris J Arges (arges) wrote :

Sponsored for precise.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Japje, or anyone else affected,

Accepted postfix into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/postfix/2.9.6-1~12.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in postfix (Ubuntu Precise):
status: New → Fix Committed
tags: removed: verification-done
tags: added: verification-needed
Revision history for this message
Seyeong Kim (seyeongkim) wrote :

precise-proposed/main postfix amd64 2.9.6-1~12.04.3

installation output

setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: precise-postfix, localhost.localdomain, , localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postfix - 2.9.6-1~12.04.3

---------------
postfix (2.9.6-1~12.04.3) precise; urgency=medium

  * support postfix/protocols (LP: #583216)
 -- Seyeong Kim <email address hidden> Tue, 17 Feb 2015 08:01:59 -0600

Changed in postfix (Ubuntu Precise):
status: Fix Committed → Fix Released
Mathew Hodson (mhodson)
Changed in postfix (Ubuntu):
milestone: ubuntu-14.04.2 → none
Changed in postfix (Ubuntu Trusty):
milestone: none → trusty-updates
Changed in postfix (Ubuntu Vivid):
milestone: ubuntu-14.04.2 → none
Changed in postfix (Ubuntu Precise):
milestone: none → precise-updates
importance: Undecided → Medium
tags: removed: postfix preseed
Changed in postfix (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.