Skip to main content

PHP 8.3 + Pear Mail fsockopen(): Unable to connect to mail.example.com:465 (Connection refused)

Answered

Comments

2 comments

  • Hi,

     

    Do you have SMTP Restrictions (WHM > SMTP Restrictions) enabled? Or, if using CSF, SMTP_BLOCK? Either of those settings could interfere with mail scripts that use remote servers to send email. 

     

    If the error persists with those settings disabled, I'd suggest checking the firewall. If the script is connecting to a remote server, it may indicate port 465 is blocked either server.

    0
  • JAB Creations

    We ended up doing two things.

    First, we ripped out Immunity360 since it kept insisting that legitimate mail was spam. It's not properly developed as there was an overwhelming amount of ambiguity.

    Secondly there were two parts of the authentication that were off.

    I had to change the server host from "example.com" to "tils://example.com". Additionally somehow the @example.com part of the username was lost in translation.

    Everything is back to working as it should be.

    0

Please sign in to leave a comment.