Bug 1048614 - smartd expects sendmail to be installed for hdd failure reports but it isn't
Summary: smartd expects sendmail to be installed for hdd failure reports but it isn't
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: smartmontools
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-05 20:56 UTC by da-redhatbugzilla-20
Modified: 2014-05-13 19:20 UTC (History)
4 users (show)

Fixed In Version: smartmontools-6.2-4.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-20 01:29:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description da-redhatbugzilla-20 2014-01-05 20:56:44 UTC
I think this is a problem because a user might expect smartd to work out of the box because smartd is started by default on a fresh install. A user will assume that smartd is already properly configured.

smartd is configured by smartd.conf which by default contains a line that monitors harddrives and sends an email if one of them fails. smartd executes the script /usr/libexec/smartmontools/smartdnotify. smartdnotify uses mailx. mailx uses sendmail. Since sendmail is not installed by default anymore the notification won't work.

Desktop notification work correctly.

Steps to Reproduce:
1. Edit /etc/smartmontools/smartd.conf and add "-M test" at the end of the only uncommented line starting with "DEVICESCAN". This will initiate a simulated failure to test the notification when the daemon starts.
2. Restart smartd: systemctl restart smartd.service
3. Check the system logs where it says that sendmail was not found.

Comment 1 Frank Murphy 2014-01-11 09:19:44 UTC
By "Desktop notification work correctly."
do you mean an alert pops up on GUI? 
Asking as I'm not getting a gui alert Xfce

Comment 2 Kim Bisgaard 2014-04-12 07:05:40 UTC
Please do not try to fix this by adding a "Requires: sendmail" to the spec-file.

There are other server to send email with, eg. Postfix which also has a sendmail command install via "alternatives".

Postfix provides:
rpm -q --provides postfix
MTA
config(postfix) = 2:2.11.0-2.fc21
postfix = 2:2.11.0-2.fc21
postfix(x86-64) = 2:2.11.0-2.fc21
server(smtp)
smtpd
smtpdaemon

Comment 3 Michal Hlavinka 2014-04-15 09:26:41 UTC
Kim: Thanks for noting that. I've changed it from sendmail to MTA.

Comment 4 Fedora Update System 2014-04-15 13:26:07 UTC
smartmontools-6.2-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/smartmontools-6.2-3.fc19

Comment 5 Fedora Update System 2014-04-15 13:26:15 UTC
smartmontools-6.2-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/smartmontools-6.2-4.fc20

Comment 6 Fedora Update System 2014-04-16 09:23:09 UTC
Package smartmontools-6.2-3.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing smartmontools-6.2-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-5225/smartmontools-6.2-3.fc19
then log in and leave karma (feedback).

Comment 7 Nerijus Baliūnas 2014-04-16 21:50:43 UTC
I have ssmtp installed, which has /usr/sbin/sendmail, but does not provide MTA. So this smartmontools update tries to install postfix, which I do not want.

Comment 8 Michal Hlavinka 2014-04-17 10:03:23 UTC
There seems to be no way to satisfy all packages, as there is no common provide in all of them. I will use less optimal file requirement on %{_sbindir}/sendmail

Comment 9 Fedora Update System 2014-04-18 15:34:47 UTC
Package smartmontools-6.2-5.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing smartmontools-6.2-5.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-5239/smartmontools-6.2-5.fc20
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2014-04-20 01:29:24 UTC
smartmontools-6.2-5.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2014-05-13 19:20:41 UTC
smartmontools-6.2-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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