Hi,
You have to allow outbound traffic for 25, 465 (with a secure SSL) or 587.
You can try to insert this iptables rules
iptables -I OUTPUT -p tcp -m multiport --dport 25,465,587 -j ACCEPT
If it works i will explain how to insert in your whm web control panel.
Let me know