title: Could not connect to SMTP host error in my local only
body: <p>I am getting this error while trying to send mail through java mail. It used to work for me, but recently I switched to jdk7 and glassfish 3.1.2. I tried to switch it back to jdk6 also but it's not working anymore, here is the error I'm getting:</p>
  
  <pre><code>javax.mail.MessagingException: Could not connect to SMTP host: smtp.illumina.com, port: 25;
    nested exception is:
                  java.net.SocketException: Permission denied: connect
  </code></pre>
  
  <p>Telnet and ping to this server is fine. Its working from other systems. Only my local setup is throwing this error.</p>
  
  <p>Any ideas?</p>