SMTP Limitations in Imunify360 prevent outgoing communication Print

  • 0

Symptoms

With Imunify360 installed, outgoing SMTP restrictions are unable to complete. You may receive errors reaching other hosts, or SSL mismatches referencing your server's own hostname:

SwiftTransportException: Connection could not be established with host remotehost.name.tld :streamsocket_client(): Unable to connect to ssl://remotehost.name.tld:465 (Connection refused)

SMTP Error: Could not connect to SMTP host.

 Connection failed. stream_socket_enable_crypto(): Peer certificate CN=server.hostname.tld did not match expected CN=smtp.gmail.com

 

Cause

Imunify360 can enable SMTP traffic restrictions that prevent most users from making outbound connections. This is similar, but separately managed from the SMTP Restrictions in WHM, or the SMTP_BLOCK settings in CSF. 

 

Resolution

You can manage the SMTP Traffic settings in Imunify360's interface.

  1. Access your server using WHM as the root user.
  2. Navigate to "Plugins / Imunify360".
  3. Within Imunify360, select "Settings" and locate "SMTP Traffic Management".
    Screenshot 2025-01-22 at 3.02.39 PM.png
  4. You can disable the SMTP traffic management or add the user to the whitelist who is trying to make outbound SMTP connections.
  5. Save your settings to commit the changes.

 

Additional Information

CloudLinux: How to use SMTP Management?


Was this answer helpful?
Back

Send Message