2018-07-04 12:12 GMT+02:00 Fabrice Bacchella <fabrice.bacchella@orange.fr>:


> Le 4 juil. 2018 à 11:03, Yedidyah Bar David <didi@redhat.com> a écrit :
>
> On Wed, Jul 4, 2018 at 11:04 AM, Fabrice Bacchella
> <fabrice.bacchella@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,

Done:

https://bugzilla.redhat.com/show_bug.cgi?id=1598085


I pushed a change for 4.3 requiring server(smtp) instead of postfix. On EL7 server(smtp) resolves by default to postfix so nothing really change except you can now install another MTA and remove postfix.
On Fedora, server(smtp) resolves to exim but I added a Suggest clause pulling in postfix if nothing provides server(smtp).


 

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/7ZFPH67MIQNWALAE4T2WXX3UVM6UAWSE/



--

SANDRO BONAZZOLA

MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV

Red Hat EMEA

sbonazzo@redhat.com