WP Mail SMTP connection timeout when Really Simple Security is enabled
-
Subject: WP Mail SMTP connection timeout when Really Simple Security is enabled
Hello,
I have identified what appears to be a conflict between Really Simple Security and WP Mail SMTP on a production WordPress site.Environment
- WordPress 7.0
- WP Mail SMTP 4.8.0
- PHP 8.1, 8.2, 8.3 and 8.4 tested
- Hetzner Webhosting
- SMTP server:
mail.your-server.de - Port:
587 - Encryption:
TLS - Authentication enabled
Problem
As soon as Really Simple Security is activated, WP Mail SMTP is unable to establish an SMTP connection.
The SMTP test fails with:
SMTP Error: Could not connect to SMTP host. Failed to connect to server. Connection timed out (110) stream_socket_client(): Unable to connect to mail.your-server.de:587 (Connection timed out)What I tested
- SMTP configuration verified and correct
- Mail account credentials verified
- Cloudflare cache cleared
- WordPress cache cleared
- Different PHP versions tested (8.1, 8.2, 8.3, 8.4)
- WP Mail SMTP test email succeeds when Really Simple Security is disabled
- WP Mail SMTP test email fails when Really Simple Security is enabled
Important observation
With Really Simple Security disabled, SMTP works correctly.
With Really Simple Security enabled, SMTP consistently fails with a connection timeout.
This behavior is reproducible.
The free version is being used. No Pro firewall features are available or enabled.Additional note
After disabling Really Simple Security, SMTP sometimes continues to fail temporarily until PHP processes are restarted or some time has passed. This makes me wonder whether the plugin writes persistent server or configuration changes that are not immediately reverted when the plugin is disabled.
Has anyone experienced a similar issue, or is there a known setting in Really Simple Security that could interfere with outgoing SMTP socket connections used by WP Mail SMTP?
Thank you.
You must be logged in to reply to this topic.