Description of problem: If msmtp is included in kickstart installation then anaconda aborts installation due to non-fatal error in msmtp's package post install script Version-Release number of selected component (if applicable): msmtp-1.6.7-1.fc28.x86_64 How reproducible: 100% Steps to Reproduce: 1. Include msmtp package in kickstart installation 2. 3. Actual results: Installation fails Expected results: Installation succeeds Additional info: This started with version msmtp-1.6.7-1.fc28.x86_64 The actual error is: link /usr/lib/sendmail incorrect for slave mta-sendmail (/usr/lib64/sendmail mta-sendmail) warning: %post(msmtp-1.6.7-1.fc28.x86_64) scriptlet failed, exit status 2 Non-fatal POSTIN scriptlet failure in rpm package msmtp Non-fatal POSTIN scriptlet failure in rpm package msmtp
Does this issue occur with esmtp? It uses a similar scriptlet.
(In reply to Gerald Cox from comment #1) > Does this issue occur with esmtp? It uses a similar scriptlet. esmtp-1.2-10.fc28.x86_64 installed OK from kickstart The difference in the scriplets is that esmtp uses: --slave /usr/lib/sendmail mta-sendmail /usr/bin/esmtp-wrapper \ while msmtp uses: --slave /usr/lib64/sendmail mta-sendmail /usr/bin/msmtp \ On my system /usr/lib/sendmail points to /etc/alternatives/mta-sendmail while /usr/lib64/sendmail does not exist
Are you using a 386 system? On my system, /usr/lib64/sendmail is correct.
Just as an aside (IMHO) anaconda should not be abending on non-fatal errors.
(In reply to Gerald Cox from comment #3) > Are you using a 386 system? On my system, /usr/lib64/sendmail is correct. The installation is x86_64.
Thanks for the reply. I don't understand how or why you have /usr/lib/sendmail on your system. It should not be there. I'm not familiar with quickstart, but this is related to new installs, correct? I just tested with another system and am not having any issues or error messages related to the install. If you are having this problem on an existing installation then please: rpm -qif /usr/lib/sendmail so we can determine how this is getting installed.
Changing priority to ensure that msmtp gets chosen.
Changing default location for 386/x64 to /usr/lib/sendmail
msmtp-1.6.7-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c5c2975861
msmtp-1.6.7-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b39e326de3
This change will unfortunately result in the following errors upon upgrade from msmtp-1.6.7-1: link /usr/lib/sendmail incorrect for slave mta-sendmail (/usr/lib64/sendmail mta-sendmail) warning: %post(msmtp-1.6.7-3.fc28.x86_64) scriptlet failed, exit status 2 Non-fatal POSTIN scriptlet failure in rpm package msmtp Non-fatal POSTIN scriptlet failure in rpm package msmtp If this occurs, simply: dnf remove msmtp dnf install msmtp This is due to the changing of location of /usr/lib64/sendmail to /usr/lib/sendmail for compatibility with other applications which use alternatives and sendmail. You won't lose your configuration settings.
*** Bug 1601187 has been marked as a duplicate of this bug. ***
msmtp-1.6.7-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b39e326de3
msmtp-1.6.7-3.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c5c2975861
(In reply to Gerald Cox from comment #6) > Thanks for the reply. I don't understand how or why you have > /usr/lib/sendmail on your system. It should not be there. I'm not familiar > with quickstart, but this is related to new installs, correct? I just > tested with another system and am not having any issues or error messages > related to the install. If you are having this problem on an existing > installation then please: > > rpm -qif /usr/lib/sendmail so we can determine how this is getting installed. It's from esmtp-1.2-10.fc28.x86_64 which is needed by redhat-lsb-core-4.1-44.fc28.x86_64 rpm -qif /usr/lib/sendmail Name : esmtp Version : 1.2 Release : 10.fc28 Architecture: x86_64 Install Date: Thu 05 Jul 2018 10:41:04 CEST Group : Applications/Internet Size : 101315 License : GPL+ and GPLv2+ Signature : RSA/SHA256, Wed 07 Feb 2018 20:24:03 CET, Key ID e08e7e629db62fb1 Source RPM : esmtp-1.2-10.fc28.src.rpm Build Date : Wed 07 Feb 2018 10:00:27 CET Build Host : buildvm-19.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://esmtp.sourceforge.net/ Summary : User configurable send-only Mail Transfer Agent Description : ESMTP is a user configurable relay-only Mail Transfer Agent (MTA) with a sendmail-compatible syntax. It's based on libESMTP supporting the AUTH (including the CRAM-MD5 and NTLM SASL mechanisms) and the StartTLS SMTP extensions.
(In reply to Gerald Cox from comment #11) > This change will unfortunately result in the following errors upon upgrade > from msmtp-1.6.7-1: > > link /usr/lib/sendmail incorrect for slave mta-sendmail (/usr/lib64/sendmail > mta-sendmail) > warning: %post(msmtp-1.6.7-3.fc28.x86_64) scriptlet failed, exit status 2 > Non-fatal POSTIN scriptlet failure in rpm package msmtp > Non-fatal POSTIN scriptlet failure in rpm package msmtp > > > If this occurs, simply: > > dnf remove msmtp > dnf install msmtp > > This is due to the changing of location of /usr/lib64/sendmail to > /usr/lib/sendmail for compatibility with other applications which use > alternatives and sendmail. > > You won't lose your configuration settings. On my system the upgrade happened cleanly with no errors. Maybe because I already had /usr/lib/sendmail from esmtp package dnf upgrade msmtp --enablerepo=updates-testing Fedora 28 - x86_64 - Test Updates 1.3 MB/s | 17 MB 00:13 Last metadata expiration check: 0:00:08 ago on Mon 16 Jul 2018 13:58:29 CEST. Dependencies resolved. =================================================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================================================== Upgrading: msmtp x86_64 1.6.7-3.fc28 updates-testing 139 k Transaction Summary =================================================================================================================================================================================================================== Upgrade 1 Package Total download size: 139 k Is this ok [y/N]: y Downloading Packages: msmtp-1.6.7-3.fc28.x86_64.rpm 416 kB/s | 139 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 66 kB/s | 139 kB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : msmtp-1.6.7-3.fc28.x86_64 1/2 Running scriptlet: msmtp-1.6.7-3.fc28.x86_64 1/2 Running scriptlet: msmtp-1.6.7-1.fc28.x86_64 2/2 Cleanup : msmtp-1.6.7-1.fc28.x86_64 2/2 Running scriptlet: msmtp-1.6.7-1.fc28.x86_64 2/2 Verifying : msmtp-1.6.7-3.fc28.x86_64 1/2 Verifying : msmtp-1.6.7-1.fc28.x86_64 2/2 Upgraded: msmtp.x86_64 1.6.7-3.fc28 Complete!
(In reply to Slawomir Czarko from comment #15) > (In reply to Gerald Cox from comment #6) > > Thanks for the reply. I don't understand how or why you have > > /usr/lib/sendmail on your system. It should not be there. I'm not familiar > > with quickstart, but this is related to new installs, correct? I just > > tested with another system and am not having any issues or error messages > > related to the install. If you are having this problem on an existing > > installation then please: > > > > rpm -qif /usr/lib/sendmail so we can determine how this is getting installed. > > It's from esmtp-1.2-10.fc28.x86_64 which is needed by > redhat-lsb-core-4.1-44.fc28.x86_64 > Again, thanks for replying... and if I could take a bit more of your time, I'm trying to understand something... 1. I don't see esmtp referenced at all in the spec file for redhat-lsb - unless I missed it somehow. 2. I do see a requires for sendmail, but it was my understanding here: https://fedoraproject.org/wiki/Changes/NoDefaultSendmail that sendmail was no longer to be installed as a default - so the question is, what is it doing here. I did notice that if you try to delete esmtp with dnf, it tries to uninstall practically the whole world, so the only way to get rid of it is with rpm -e esmtp --nodeps which people shouldn't have to do. I did find in the spec file for redhat-lsb this: * Wed Aug 27 2014 Parag <pnemade AT redhat DOT com> - 4.1-29 - Resolves:rh#1133536 - redhat-lsb does not requires /usr/sbin/sendmail which seems to match up with the NoDefaultSendmail link above - but if you actually read rh#1133536 the resolution is to add a requires for sendmail?
msmtp-1.6.7-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
(In reply to Gerald Cox from comment #17) > (In reply to Slawomir Czarko from comment #15) > > (In reply to Gerald Cox from comment #6) > > > Thanks for the reply. I don't understand how or why you have > > > /usr/lib/sendmail on your system. It should not be there. I'm not familiar > > > with quickstart, but this is related to new installs, correct? I just > > > tested with another system and am not having any issues or error messages > > > related to the install. If you are having this problem on an existing > > > installation then please: > > > > > > rpm -qif /usr/lib/sendmail so we can determine how this is getting installed. > > > > It's from esmtp-1.2-10.fc28.x86_64 which is needed by > > redhat-lsb-core-4.1-44.fc28.x86_64 > > > > > Again, thanks for replying... and if I could take a bit more of your time, > I'm trying to understand something... > > 1. I don't see esmtp referenced at all in the spec file for redhat-lsb - > unless I missed it somehow. Right, it's not referenced directly > 2. I do see a requires for sendmail, but it was my understanding here: > https://fedoraproject.org/wiki/Changes/NoDefaultSendmail > that sendmail was no longer to be installed as a default - so the question > is, what is it doing here. > > I did notice that if you try to delete esmtp with dnf, it tries to uninstall > practically the whole world, so the only way to get rid of it is with > rpm -e esmtp --nodeps > > which people shouldn't have to do. > > I did find in the spec file for redhat-lsb this: > * Wed Aug 27 2014 Parag <pnemade AT redhat DOT com> - 4.1-29 > - Resolves:rh#1133536 - redhat-lsb does not requires /usr/sbin/sendmail > > which seems to match up with the NoDefaultSendmail link above - but if you > actually read rh#1133536 the resolution is to add a requires for sendmail? rpm -e --test esmtp error: Failed dependencies: /usr/sbin/sendmail is needed by (installed) BackupPC-4.2.1-1.fc28.x86_64 /usr/sbin/sendmail is needed by (installed) redhat-lsb-core-4.1-44.fc28.x86_64 rpm -q -f /usr/sbin/sendmail esmtp-1.2-10.fc28.x86_64 file /usr/sbin/sendmail /usr/sbin/sendmail: symbolic link to /etc/alternatives/mta readlink -f /usr/sbin/sendmail /usr/bin/msmtp rpm -q sendmail package sendmail is not installed It looks like the link is owned by esmtp even if it points to a file from a different package. I think what was done is that sendmail itself doesn't need to be installed but there has to be a link to a program which can replace sendmail. Which doesn't seem to fit with text in NoDefaultSendmail link. From reading rh#1133536 I understood that problem was the link was missing so it was added. Overall it looks confusing.
msmtp-1.6.7-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.