diff --git a/tests/p_postfix/0-install_postfix.sh b/tests/p_postfix/0-install_postfix.sh index 13f8ff2..38a14e3 100755 --- a/tests/p_postfix/0-install_postfix.sh +++ b/tests/p_postfix/0-install_postfix.sh @@ -3,5 +3,16 @@ # Postfix t_InstallPackage postfix + +# Removing other MTA +t_ServiceControl sendmail stop +sleep 3 t_RemovePackage sendmail +if (t_GetPkgRel basesystem | grep -q el5) +then + t_ServiceControl exim stop + sleep 3 + t_RemovePackage exim +fi + t_ServiceControl postfix start diff --git a/tests/p_sendmail/0-install_sendmail.sh b/tests/p_sendmail/0-install_sendmail.sh index 2d3d71c..8d072a0 100755 --- a/tests/p_sendmail/0-install_sendmail.sh +++ b/tests/p_sendmail/0-install_sendmail.sh @@ -7,5 +7,12 @@ t_InstallPackage sendmail t_ServiceControl postfix stop sleep 3 t_RemovePackage postfix +if (t_GetPkgRel basesystem | grep -q el5) +then + #also stoping/removing exim + t_ServiceControl exim stop + sleep 3 + t_RemovePackage exim +fi t_ServiceControl sendmail start