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 - makemap support in alternatives
Summary: makemap support in alternatives
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sendmail
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Roman Žilka
URL:
Whiteboard:
Depends On: 1219178
Blocks: 1400961
TreeView+ depends on / blocked
 
Reported: 2015-05-28 11:52 UTC by Jaroslav Škarvada
Modified: 2017-08-01 12:42 UTC (History)
6 users (show)

Fixed In Version: sendmail-8.14.7-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1219178
Environment:
Last Closed: 2017-08-01 12:42:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed fix (3.85 KB, patch)
2015-05-28 12:24 UTC, Jaroslav Škarvada
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2197 0 normal SHIPPED_LIVE sendmail bug fix and enhancement update 2017-08-01 16:09:20 UTC

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


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