title: ETIMEDOUT connect error using nodemailer in Nodejs Openshift application
body: <p>I'm facing some problems using the nodemailer module in my node.js single gear non-scalable application in Openshift. As the <a href="https://github.com/andris9/Nodemailer" rel="noreferrer">documentation</a> suggested, I initialized the transporter object and used the sendMail function. A simplified version of my code is</p>
  
  <pre><code>var transporter = nodemailer.createTransport({
      service: 'Gmail',
      auth: {
          user: 'my.mail@gmail.com',
          pass: 'mypassword'
      }
  });
  
  var mail = {
      from: 'my.mail@gmail.com',
      to: 'test@mydomain.com',
      subject: 'Test mail',
      html: 'Test mail'
  };
  
  transporter.sendMail(mail, function(error, info) {
      if(error){
          console.log(error);
      }else{
          console.log(info);
      }
  });
  </code></pre>
  
  <p>This code works correctly when I run it on my local machine, but when I try to execute it on the server I got an <code>ETIMEDOUT</code> error, as if the application couln't connect to the smtp server.</p>
  
  <pre><code>{ [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
  </code></pre>
  
  <p>I've tried to increase the timeout connection parameter, but I got the same results.</p>
  
  <pre><code>var transporter = nodemailer.createTransport({
      service: 'Gmail',
      auth: {
          user: 'my.mail@gmail.com',
          pass: 'mypassword'
      },
      connectionTimeout: 5 * 60 * 1000, // 5 min
  });
  </code></pre>
  
  <p>Is there any firewall or default Openshift settings or enviroment variable I'm missing?</p>