title: SMTP PHPMailer Connection Refused (111)
body: <p>I just deployed a VPS for use it as a SMTP service using <a href="https://github.com/postalhq/postal" rel="nofollow noreferrer">Postal</a></p>
  <p>Apparently it is well settled because I have sent Mails through <a href="https://smpter.net" rel="nofollow noreferrer">smpter.net</a> suscessfully.</p>
  <p>My problem is when I try to connect to my SMTP through PHPMailer it always throws me Connection Refused even though I put the same credentials/hostname/port that I have put in SMTPER.net and others websites for SMPT check.</p>
  <p>This is my config in my PHPMailer Debug Testing.</p>
  <pre><code>$mail-&gt;SMTPDebug = 3;                      // Enable verbose debug output
  $mail-&gt;isSMTP();                                            // Send using SMTP
  $mail-&gt;Host       = 'romailing.me';                    // Set the SMTP server to send through
  $mail-&gt;SMTPAuth   = false;                                   // Enable SMTP authentication
  $mail-&gt;Port       = 25;                                    // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
  $mail-&gt;SMTPAutoTLS = false;
  $mail-&gt;AuthType = 'PLAIN';
  </code></pre>
  <p>Plus I have connected suscessfully to Google SMTP for test.</p>
  <p>EDIT:</p>
  <p>VPS SMTP OS: Ubuntu 16.04</p>
  <p>PHPMailer Version: 5.2.26</p>
  <p>PHPMailer Debug Info:</p>
  <pre><code>2020-10-26 20:47:41 Connection: opening to romailing.me:25, timeout=15, options=array ()
  2020-10-26 20:47:42 Connection failed. Error #2: stream_socket_client(): unable to connect to romailing.me:25 (Connection refused) [../lib/phpmailer/class.smtp.php line 298]
  2020-10-26 20:47:42 SMTP ERROR: Failed to connect to server: Connection refused (111)
  </code></pre>