On Wed, Jul 4, 2018 at 11:04 AM, Fabrice Bacchella
<fabrice.bacchella(a)orange.fr> wrote:
ovirt in version 4.2 choose to incorporate postfix as a mandatory
MTA:
This was added in 4.0, AFAIU:
https://bugzilla.redhat.com/show_bug.cgi?id=1301966
IMHO the bug is somewhat incorrect. HA sends its email using smtplib,
which IIUC does not require a local /usr/sbin/sendmail . Indeed, the
default is to send through 'localhost:25', and for this to work you
need some MTA listening there. But admins might find it perfectly
reasonable to not have any sendmail locally, although this is the unix
tradition, and configure everything to send through a remote MTA.
hosted-engine --deploy already asks about this, so should be easy to
do there. Other common stuff, such as crond, also allow doing this. So
ideally, if the admin accepts the default 'localhost:25', the script
should try to connect there (perhaps also if user provides custom
values?), and if it fails, or if the other side does not look like an
MTA (e.g. does not accept a HELO or EHLO, not sure what's the best
way), prompt, and if 'localhost', suggest to install some MTA. But
email is a hard problem, not sure how complex we need to make the
setup script...
yum erase postfix
...
Removing:
postfix x86_64
2:2.10.1-6.el7 @base 12 M
Removing for dependencies:
cockpit-ovirt-dashboard noarch
0.11.28-1.el7 @ovirt-4.2 15 M
ovirt-host x86_64
4.2.3-1.el7 @ovirt-4.2 11 k
ovirt-hosted-engine-setup noarch
2.2.22.1-1.el7 @ovirt-4.2 2.2 M
Is there a way to change that ? It's not about postfix being inferior or
superior to other solutions. It's that it didn't ask any thing, didn't check
if one was already installed. It's just installed.
For example:
rpm -q --provides postfix
MTA
config(postfix) = 2:2.10.1-6.el7
postfix = 2:2.10.1-6.el7
postfix(x86-64) = 2:2.10.1-6.el7
server(smtp)
smtpd
smtpdaemon
rpm -q --provides sendmail
MTA
config(sendmail) = 8.14.7-5.el7
sendmail = 8.14.7-5.el7
sendmail(x86-64) = 8.14.7-5.el7
server(smtp)
smtpdaemon
There is a lot of other dependencies to declare other than postfix, MTA
would have been better.
I agree, and suggest to open an RFE on ovirt-host (and elsewhere?
didn't check) to change the Requires:.
Seems like the thing we want to require is 'server(smtp)':
https://fedoraproject.org/wiki/Features/ServerProvides
Best regards,
--
Didi