If you get this error ensure your ports are open: 25
465
587
in your firewall.
If you still get the errors and you are using cPanel ensure that your "SMTP restriction" is disabled you can find it in WHM, if you are using a web hosting provider ask them to do it for you.