• 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

    • This topic was modified 5 years, 11 months ago by Carlos.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry for the late reply.

    This is a hosting issue.
    something is blocking the connection, maybe spam filter, etc…

    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.