postfix set-permissons fails

Bug #274108 reported by janl
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: postfix

Hi,

postfix set-permissions fails (or appears to fail) when files are missing:

# postfix set-permissions
chown: cannot access `/usr/lib/postfix/dict_cdb.so': No such file or directory

I can comment out this file in postfix-files, and then it complains about dict_ldap and so on. I'm not sure if the set-permissions works or not if this message appears, and in any case the postfix-files file enumerates LOADS of files that are not present in a basic ubuntu install of postfix. In /etc/postfix alone around 20 files, and then it gets to the man files, none of which are there, since ubuntu installs them gzip'ed resulting in .gz appendages on the filenames.

So, can this be a "WARNING:" or something, that does not result in termination of the command please?

Regards,
  Nicolai

Revision history for this message
Scott Kitterman (kitterman) wrote :

I can produce similar behavior.

Changed in postfix:
status: New → Confirmed
Revision history for this message
LaMont Jones (lamont) wrote :

This is because postfix set-permissions assumes that all of the postfix packages are installed, and they aren't.

There should be no reason to run postfix set-permissions on an ubuntu machine.

Revision history for this message
janl (janl) wrote : Re: [Bug 274108] Re: postfix set-permissons fails

LaMont Jones wrote:
> This is because postfix set-permissions assumes that all of the postfix
> packages are installed, and they aren't.
>
> There should be no reason to run postfix set-permissions on an ubuntu
> machine.

Except that it will be seen in postfix documentation and then asked
about. If dropped it should be replaced with a helpfull end
enlightening message.

Nicolai

Mathias Gug (mathiaz)
Changed in postfix (Ubuntu):
importance: Undecided → Low
Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :

postfix set-permissions is a feature of postfix.

So, it this :

1) a bug in postfix -> should be reported and fixed upstream),
or 2) bug in Ubuntu package ? -> Ubuntu package should be fixed

How does a plain postfix installation behave ? Can this happen in a plain, unpackaged postfix install ?
If yes, it is a bug in postfix. -> 1
If no it is a bug in Ubuntu package. -> 2

Based on googling the error message, I suspect it is 1, can anyone confirm ?

Revision history for this message
Scott Kitterman (kitterman) wrote :

It's a difference between the way Ubuntu packages postfix and some of the assumptions in the upstream code. It's an Ubuntu issue to deal with, but low priority. I think the current status confirmed/low is appropriate.

Revision history for this message
bl8n8r (bl8n8r-gmail) wrote :

This irritated me so I created a fixed /usr/lib/postfix/postfix-files here. Commented out the manpages and html files as well as the files I do not have. This is from a basic Ubuntu Lucid postfix install.

http://pastebin.com/Cgcn23mZ

Revision history for this message
Scott Kitterman (kitterman) wrote :

Now that upstream postfix supports splitting the various map types into separate packages, fixing this bug is feasible. It'll be in the next upload to Debian.

Changed in postfix (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thank you a lot Scott for working on all of this.
I tried to add Debian task to store the Fix committed status "only for Debian" until the fix is synced - but that doesn't work well if there is no Debian bug assigned - so I need to ask you do you have a specific debian bug # that we could link up here?

no longer affects: postfix (Debian)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postfix - 3.1.4-2

---------------
postfix (3.1.4-2) unstable; urgency=medium

  * Update postfix Suggestions.
  * Update postfix-sqlite postinst/prerm to reflect that addmap is idempotent.
  * Restore so.1.0.1 symlinks for map libraries and change how new entries are
    added. Closes: #850400
  * Be more aggressive in retiring usage of lmtp binary. Closes: #850430
    LP: #1654453
  * Check symlinks separately in postfix-script, to allow library symlinks.
    This will go away once the symlinks are dropped again.

 -- LaMont Jones <email address hidden> Fri, 06 Jan 2017 08:41:36 -0700

Changed in postfix (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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