Title: Connection refused (only sometimes)
Last modified: December 12, 2018

---

# Connection refused (only sometimes)

 *  [Carlos](https://wordpress.org/support/users/ccampanya/)
 * (@ccampanya)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/connection-refused-only-sometimes/)
 * Hi!
 * I have configured Post SMTP to work with a GMail (GSuit) account, and it works
   sometimes, but sometimes I receive a “connection refused” error.
 * I contacted my hosting technical support and they guarantee that the ports 465
   and 587 are open.
 * Is there something I can test to try to find the error?
 * Thanks!
 * EDIT: I was wondering if it could have something to do with this: [https://stackoverflow.com/a/47674273/578379](https://stackoverflow.com/a/47674273/578379)
    -  This topic was modified 7 years, 8 months ago by [Carlos](https://wordpress.org/support/users/ccampanya/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/connection-refused-only-sometimes/#post-11038577)
 * Sorry for the late reply.
 * This is a hosting issue.
    something is blocking the connection, maybe spam filter,
   etc…
 *  [shinerweb](https://wordpress.org/support/users/shinerweb/)
 * (@shinerweb)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/connection-refused-only-sometimes/#post-11044823)
 * One thing to check is that your host doesn’t have throttling enabled on your 
   mail server. i.e. your server might be trying to send emails too quickly. Some
   hosts throttle the number of emails that can be sent per sec/min/hour.
 * Or, it could be the number of connections being made from your server to the 
   mail server, i.e. if your server is opening up too many concurrent connections(
   sending multiple emails in quick succession).
 * With GSuite, I’m not 100% certain on the limits, but I have seen issues in the
   past whereby a clients App was attempting to connect and login way too quickly
   which was causing the connections to be rejected. After a period of time, he 
   could connect again. There was a difference between different level of GSuite
   accounts. I’ll see if I can dig out any references to this.
 * Are you able to see the actual error code returned by GSuite in your logs?
    Failing
   that, if you log into GSuite, you should be able to see connection requests and
   possibly any errors (again I can’t remember where that is in GSuite off the top
   of my head but if you have no joy locating it, I’ll try to find the reference).
 * The PHPMailer issue you link to (stackoverflow) would be a hard error rather 
   than intermittent.
 * Just a few ideas…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Connection refused (only sometimes)’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

## Tags

 * [connection refused](https://wordpress.org/support/topic-tag/connection-refused/)
 * [gmail](https://wordpress.org/support/topic-tag/gmail/)

 * 2 replies
 * 3 participants
 * Last reply from: [shinerweb](https://wordpress.org/support/users/shinerweb/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/connection-refused-only-sometimes/#post-11044823)
 * Status: not resolved