title: Nodemailer direct transport blocked by recipient email
body: <p>I'm using nodemailer, and a direct transport to send an email. The email is successfully sent, but blocked <strong>intermittently</strong> by the recipient's firewall and never ended up in the recipient email inbox.</p>
  
  <p>Here's my code that sends the nodemailer email: </p>
  
  <pre><code>var nodemailer = require('nodemailer'),
  var transport = nodemailer.createTransport(sendmail());
  var mailOptions = {
      to: 'recipient@email.com',
      from: 'Sender &lt;sender@blah.com&gt;',
      subject: 'Subject',
      html: 'html'
  };
  transport.sendMail(mailOptions, function(err, info) {});
  </code></pre>
  
  <p>When I change my <code>to</code> to a <code>@gmail.com</code> email, my mail was sent through. I'm not sure how the recipient firewall is configured, but is there a way for me to increase the chances of my email making it across? </p>
  
  <p>Note that <code>blah.com</code>, the <code>from</code> email domain that I'm sending out from is not actually a registered domain. I hosted my server on <code>localhost</code>. Could hosting on AWS, registering the domain <code>blah.com</code> and adding in MX records somehow increase the chances of my email being sent through?</p>