Bug 1295199 - postfix package fails to provide /usr/bin/newaliases
Summary: postfix package fails to provide /usr/bin/newaliases
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: postfix
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-03 13:29 UTC by morgan read
Modified: 2016-01-25 15:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-25 14:30:47 UTC
Type: Bug


Attachments (Terms of Use)

Description morgan read 2016-01-03 13:29:24 UTC
Description of problem:
[root@morgansmachine ~]# rpm -ql postfix | grep newaliases
/usr/bin/newaliases
/usr/bin/newaliases.postfix
/usr/share/man/man1/newaliases.1.gz
/usr/share/man/man1/newaliases.postfix.1.gz
[root@morgansmachine ~]# newaliases
bash: newaliases: command not found...
Packages providing this file are:
'exim'
'ssmtp'
'opensmtpd'
'postfix'
'sendmail'
[root@morgansmachine ~]# /usr/bin/newaliases
-bash: /usr/bin/newaliases: No such file or directory
[root@morgansmachine ~]# dnf install postfix
Last metadata expiration check performed 0:06:00 ago on Sun Jan  3 13:08:43 2016.
Package postfix-2:3.0.3-1.fc22.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[root@morgansmachine ~]#

Version-Release number of selected component (if applicable):
postfix-2:3.0.3-1.fc22.x86_64

How reproducible:
Always

Steps to Reproduce:
1. install postfix
2. configure aliases
3.

Actual results:
Jan 03 13:02:35 morgansmachine.lan aliasesdb[20586]: touch: failed to get attributes of ‘/etc/aliases.db’: No such file or directory

Expected results:
/etc/aliases.db

Additional info:

Comment 1 morgan read 2016-01-03 15:21:05 UTC
As I was moving from one machine to another and making no changes to my users etc - as a work around, I copied /etc/aliases.db from one to the other.  This worked.  As this bug stopped the set up of a functioning postfix and there was no 'capacity to produce', severity should be increased to URGENT.

Comment 2 Jaroslav Škarvada 2016-01-04 10:21:08 UTC
I am unable to reproduce on cleanly provisioned machine:
# dnf install postfix
...
# rpm -q postfix
postfix-3.0.3-1.fc22.x86_64

# newaliases
# echo $?
0

Maybe there are more MTAs installed simultaneously on your machine? In such case you need to select the 'default MTA' through alternatives, e.g.:

# alternatives --config mta

or uninstall all other MTAs.

I guess this could be remnant of one older bug, where f22 installation ISO pulled-in esmtp package during installation. The esmtp MTA doesn't provide newaliases command, thus the default MTA needs to be changed by hand. Unfortunately this old bug is unfixable, because it is not possible to change already released installation media.

Comment 3 morgan read 2016-01-25 14:28:12 UTC
Hmm, yes - esmtp does seem to be installed. selinux is throwing errors against it: Bug 1295379

Removed it

# newaliases
# echo $?
0

done

Comment 4 morgan read 2016-01-25 14:30:47 UTC
Must be a dup of the bug you refer to, but I don't know it's ref

Comment 5 Jaroslav Škarvada 2016-01-25 15:04:09 UTC
(In reply to morgan read from comment #4)
> Must be a dup of the bug you refer to, but I don't know it's ref

IIRC originally bug 1265838, probably somehow overflew into f22.


Note You need to log in before you can comment on or make changes to this bug.