After a recent update to cPanel/WHM 9.9.9, outgoing emails stopped working on the RHE server (CentOS server wasn't affected).
Found this fix:
if that doesn't work... do
also... you may want to try this route:
TEST FOR RELAY: