How did you check if your SMTP server works?
Did you try to connect to it from a email service provider such as Outlook or Googlemail (for testing purposes)?
If there is a connection error, then either the SMTP server is down or the credentials are incorrect.
Check this out, maybe it helps.