Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1225891

Summary: makemap support in alternatives
Product: Red Hat Enterprise Linux 7 Reporter: Jaroslav Škarvada <jskarvad>
Component: sendmailAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Roman Žilka <rzilka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: amahdal, denis, extras-qa, jskarvad, psklenar, rzilka
Target Milestone: rcKeywords: FastFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sendmail-8.14.7-5.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1219178 Environment:
Last Closed: 2017-08-01 12:42:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1219178    
Bug Blocks: 1400961    
Attachments:
Description Flags
Proposed fix none

Description Jaroslav Škarvada 2015-05-28 11:52:30 UTC
+++ This bug was initially created as a clone of Bug #1219178 +++

Description of problem:
Sendmail doesn't use alternatives mechanism for "makemap" and its man file. There are other maildaemons (e.g., opensmtpd) which already consider that other mailers could have their own implementations of such utilities. It's expected that sendmail would do the same.

Version-Release number of selected component (if applicable):
Current version in rawhide

How reproducible:
Always

Steps to Reproduce:
1. Install sendmail and opensmtpd
2. Switch current mta to opensmtpd and back to sendmail using alternatives:
     /usr/sbin/alternatives --set mta /usr/sbin/sendmail.opensmtpd
     /usr/sbin/alternatives --set mta /usr/sbin/sendmail.sendmail

Actual results:
Unlike other components, every time "makemap" points to the sendmail version.

Expected results:
Symbolic link to "makemap" and man-page should be adjusted accordingly.

Additional info:
Can be solved with adding some alternative-specific lines into spec.
E.g., the appropriate opensmtpd lines are:

 --slave %{_sbindir}/makemap mta-makemap %{_sbindir}/makemap.opensmtpd \
 --slave %{_mandir}/man1/makemap.1.gz mta-makemapman %{_mandir}/man8/makemap.opensmtpd.8.gz

--- Additional comment from Jaroslav Škarvada on 2015-05-27 22:54:29 CEST ---

I used alternatives as you proposed. I also had to use the following hack:

%pre
[ -h %{_sbindir}/makemap ] || rm -f %{_sbindir}/makemap || :
[ -h %{_mandir}/man8/makemap.8.gz ] || rm -f %{_mandir}/man8/makemap.8.gz || :

Otherwise it is not possible to convert to alternatives by simply upgrading.

--- Additional comment from Fedora Update System on 2015-05-28 12:37:03 CEST ---

sendmail-8.15.1-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/sendmail-8.15.1-5.fc22

--- Additional comment from Fedora Update System on 2015-05-28 12:37:24 CEST ---

sendmail-8.14.9-6.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/sendmail-8.14.9-6.fc21

Comment 1 Jaroslav Škarvada 2015-05-28 12:24:08 UTC
Created attachment 1031261 [details]
Proposed fix

Comment 4 Roman Žilka 2017-05-11 14:57:35 UTC
QA: Verified on all archs.

********** sendmail-8.14.7-4.el7 (faulty)
# alternatives --display mta | grep makemap
# 

********** sendmail-8.14.7-5.el7 (fixed)
# alternatives --display mta | grep makemap | grep sendmail
 slave mta-makemap: /usr/sbin/makemap.sendmail
 slave mta-makemapman: /usr/share/man/man8/makemap.sendmail.8.gz
#

Comment 5 errata-xmlrpc 2017-08-01 12:42:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2197