Bug 1466245 - Wrong sendmail requires
Summary: Wrong sendmail requires
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: BackupPC
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-29 10:38 UTC by Anton Guda
Modified: 2017-07-13 14:50 UTC (History)
2 users (show)

Fixed In Version: BackupPC-4.1.3-2.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-13 14:50:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Anton Guda 2017-06-29 10:38:08 UTC
Description of problem:
The main mail servers is postfix or exim now.
PackupPC requires namely sendmail.


Version-Release number of selected component (if applicable):
BackupPC-4.1.3-1.fc27

How reproducible:
Always


Steps to Reproduce:
1. Have a system with postfix.
2. Try to update or install new BackupPC.

Actual results:
error: Failed dependencies:
        sendmail is needed by BackupPC-4.1.3-1.fc27.x86_64

Expected results:
No direct sendmail requires, may be 
'MTA' or 'server(smtp)' be sufficient.

Comment 1 Richard Shaw 2017-07-02 13:04:58 UTC
I like the server(smtp) idea, unfortunately the procmail package doesn't provide that capability.

# rpm -q --provides procmail
procmail = 3.22-39.fc24
procmail(x86-64) = 3.22-39.fc24

Comment 2 Richard Shaw 2017-07-02 13:18:18 UTC
Ok, I haven't researched this before so learning a bit... postfix provides a sendmail compatible interface though the alternatives method. Since BackupPC seems to really only understand how to send mail using the sendmail command I think it best to require postfix instead as it is the default smtp agent.

Comment 3 Kevin Fenzi 2017-07-03 21:36:16 UTC
Requires: server(smtp) should be what you want here... that should allow any of the MTAs that provide a sendmail like interface to satisfy the requires. :) 

procmail doesn't provide that, but thats right, it needs something like postfix, exim, sendmail to pipe the email to it, it doesn't handle things before that.

Comment 4 Richard Shaw 2017-07-03 21:56:31 UTC
What about just requiring /usr/sbin/sendmail? It's possible that another MTA could be packaged that doesn't provide a sendmail compatible binary. BackupPC is specifically looking for sendmail (or equivalent).

Comment 5 Kevin Fenzi 2017-07-03 22:04:02 UTC
Sure, that should work too... I guess 'server(smtp)' is the smtp server interface, so yeah, /usr/sbin/sendmail should work for the calling the binary.

Comment 6 Richard Shaw 2017-07-04 15:23:20 UTC
Well crap... I tried using mock to install "/usr/sbin/sendmail" and it installed postfix but when I tried installing my package with that requirement esmtp was installed instead. I can add a Recommend or Suggest for Fedora, but that won't work for EPEL...

Comment 7 Anton Guda 2017-07-04 16:42:58 UTC
esmtp may be sufficient for some cases.
In real servers, mail daemon will be installed before backup programs.

Comment 8 Kevin Fenzi 2017-07-04 16:59:51 UTC
Yes, thats expected. in the vast majority of cases the admin would have already installed {sendmail|postfix|exim|esmtp...} and then when they install BackupPC the dep would already be satisifed and nothing new would be installed. 

it allows the admin to choose which one they want, and if they didn't install any at all, they get whatever yum happens to think is 'best'. If they don't like it they can remove that and install the one they want. :)

Comment 9 Fedora Update System 2017-07-05 12:45:12 UTC
BackupPC-4.1.3-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-3e89e74f15

Comment 10 Anton Guda 2017-07-05 14:53:03 UTC
BackupPC-4.1.3-2 seems to work for me.

Comment 11 Fedora Update System 2017-07-05 18:49:41 UTC
BackupPC-4.1.3-2.fc26 has been pushed to the Fedora 26 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-2017-3e89e74f15

Comment 12 Fedora Update System 2017-07-13 14:50:53 UTC
BackupPC-4.1.3-2.fc26 has been pushed to the Fedora 26 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.