Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [:: [ 14:40:05 ] :: [  BEGIN   ] :: Running 'alternatives --set mta /usr/sbin/sendmail.sendmail'
/usr/sbin/sendmail.sendmail has not been configured as an alternative for mta
:: [ 14:40:05 ] :: [   FAIL   ] :: Command 'alternatives --set mta /usr/sbin/sendmail.sendmail' (Expected 0, got 2)]: [alternatives command failed]
=============
[:: [ 14:40:05 ] :: [   FAIL   ] :: Service must start without problem (Expected 0, got 1)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:10 ] :: [   FAIL   ] :: Command 'systemctl status --no-pager sendmail ' (Expected 0, got 3)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:10 ] :: [   FAIL   ] :: Already started service (Expected 0, got 1)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:15 ] :: [   FAIL   ] :: Command 'systemctl status --no-pager sendmail' (Expected 0, got 3)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:16 ] :: [   FAIL   ] :: Restarting of service (Expected 0, got 1)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:21 ] :: [   FAIL   ] :: Command 'systemctl status --no-pager sendmail ' (Expected 0, got 3)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:36 ] :: [   FAIL   ] :: File /var/run/sendmail.pid should exist 
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:47 ] :: [   FAIL   ] ::  Starting service for restarting under nonpriv user (Expected 0, got 1)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:52 ] :: [   FAIL   ] :: Service have to implement start function (Expected 0, got 1)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:40:57 ] :: [   FAIL   ] :: Service have to implement restart function (Expected 0, got 1)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:41:02 ] :: [   FAIL   ] :: Service have to implement status function (Expected 0, got 3)
]: [Failure caused by the alternative not being configured correctly.a]
=============
[:: [ 14:41:17 ] :: [   FAIL   ] :: Service have to implement reload function (Expected 0,3, got 1)
]: [Failure caused by the alternative not being configured correctly.a]

Issue: Path /usr/sbin/sendmail.sendmail has been changed to /usr/bin/sendmail.sendmail, which makes the test fail. 
Resolution: "alternatives --set mta $(rpm --eval '%{_sbindir}')/sendmail.sendmail" needs to be used instead of "alternatives --set mta /usr/sbin/sendmail.sendmail", that sets correct path according to system.
