On this page
What this issue is
SMTP is the protocol websites use to hand an email to a mail server. Your site connects out to that server on a port, usually 25, 465 or 587. Many hosts, especially cloud and VPS providers, block some or all of these outbound ports to stop spam.
When the port is blocked, the connection times out or is refused. Your form plugin or app often shows a vague error, or none at all. The visitor still sees a success message, but no email is sent.
Why it costs you leads or sales
A blocked port breaks the last step of the journey. The visitor fills in the form, the page says thanks, and nothing reaches your inbox or CRM. You never learn that the lead existed, and the visitor waits for a reply that never comes.
Shops are hit too: order confirmations, password resets and booking emails stop. Customers open support requests or ask for refunds. Because the site looks fine, this can run for weeks.
- Visitor submits formPage shows a thank-you message
- Site connects to SMTPPort 587 or 465 times out
- Email deliveredNever sent
- Lead in inbox and CRMNever arrives
The form works and the visitor sees success, but the SMTP connection is blocked, so nothing arrives.
Example: 40 people submit the form each week, but with the port blocked none of the notifications arrive.
How to check if your site has it
Look for these signs, then test the port from the server itself. A test from your laptop proves nothing, because the block is on the host's outbound network.
- Test emails from your SMTP plugin fail
- Logs show 'Connection timed out' or 'Could not connect to SMTP host'
- Form submissions are saved in the site but no email arrives
- It worked on a previous host or before a migration
- Your host's docs mention outbound port restrictions
# Replace smtp.example.com with your mail provider's host
nc -zv -w 5 smtp.example.com 587
nc -zv -w 5 smtp.example.com 465
nc -zv -w 5 smtp.example.com 2525
# 'succeeded' = open. 'timed out' or 'refused' = likely blocked.No SSH access? Ask your host's support whether outbound SMTP is blocked, or check the SMTP error in your mail plugin's log. If one port connects and another does not, the block is port-specific.
How to fix it
Confirm which ports are blocked
Run the port test above for 25, 465, 587 and 2525 against your mail provider.
Try an allowed port
Many providers also accept SMTP on port 2525 or 443-based alternatives. Check your provider's docs and switch the port in your site's mail settings.
Or use an HTTPS email API
Most transactional email services offer an API over port 443, which hosts rarely block. Use their plugin or API key instead of SMTP.
Or ask the host to unblock
Some hosts lift the block on request, or after account verification. Ask support to allow outbound SMTP to your provider.
Send a test and check delivery
Send a test email and also submit the real form once.
Open your SMTP plugin
In your SMTP or mail plugin settings, change the port to one that is open (for example 2525), or choose the provider's API or HTTP option if the plugin offers one.
Send a test email
Use the plugin's test email tool and read the error log if it fails.
Nothing to unblock
Shopify sends store emails from its own servers, so this issue does not apply to them. If a third-party app sends email, check that app's connection settings.
Check form notifications
Webflow sends form emails itself, so a host port block does not apply. If you forward submissions to your own server, check that server's outbound ports.
Change port or transport
Update your mailer config to use an open port, or replace SMTP with your provider's HTTPS API client.
Log connection errors
Enable the mailer's debug output temporarily to see timeouts.
$mail->isSMTP();
$mail->Host = 'smtp.example.com';
$mail->SMTPAuth = true;
$mail->Username = 'your-username';
$mail->Password = 'your-password';
$mail->SMTPSecure = 'tls';
$mail->Port = 2525; // use a port your host allows
$mail->Timeout = 10;Port blocked
- SMTP connection times out
- Form shows success
- No email or CRM lead
Open port or API
- Connection succeeds
- Email sent to your provider
- Lead reaches inbox and CRM
How to confirm it's fixed
- The port test shows 'succeeded' for the port you use
- The plugin's test email arrives
- A real form submission arrives in the inbox, not just the spam folder
- The lead appears in your CRM
- Your mail provider's activity log shows the message as accepted
How to prevent it happening again
Port rules change when you move hosts, change plans or the host updates its policy. Prefer an HTTPS email API where you can, since port 443 is rarely blocked. Re-test a real form after every migration or hosting change.
How FunnelGuard handles this
FunnelGuard detects this today, through its delivery check. A robot visitor submits your real lead form on a schedule, marked as test traffic, and then checks whether the test lead reaches the inbox and CRM. If delivery fails, which is what a blocked SMTP port causes, the check is re-run from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.
The check shows that delivery failed. It cannot see inside your server, so confirm the port block with the test above. The Free plan covers 1 site and 2 journeys with daily checks, no card needed.
Questions people ask
Why is my website not sending emails through SMTP?
The most common cause is that your host blocks outbound SMTP ports such as 25, 465 or 587. The connection times out, so the email never leaves the server. Test the port from the server and switch to an allowed port or an email API.
Which SMTP ports do hosting providers block?
Port 25 is blocked most often, and some cloud and VPS hosts also block 465 and 587. Policies differ by provider and plan, so check your host's documentation or ask support.
How do I test if my host blocks an SMTP port?
Connect to the SMTP server from your hosting server, not your computer. For example, run nc -zv -w 5 smtp.example.com 587 over SSH. A timeout or refusal means the port is likely blocked.
What can I use if port 587 is blocked?
Try port 2525 if your mail provider supports it, or use the provider's HTTPS API, which runs over port 443. You can also ask your host to unblock the port.
Why does my contact form say sent but no email arrives?
The form can record the submission and show a thank-you message even if the email step fails. A blocked SMTP port is one cause. Check your mail plugin's logs and send a test email.
Is a blocked SMTP port the same as PHP mail() being blocked?
No. mail() uses the server's local mail setup, while SMTP connects out to an external mail server. Both can fail on restrictive hosts and both lose form emails, but the fixes differ.
Can FunnelGuard tell me if my SMTP port is blocked?
It detects the result: a test lead that does not reach your inbox or CRM triggers a delivery failure alert. It does not inspect your server's ports, so use a port test to confirm the cause.
Related issues
- OPS-081Form handler mail() blocked by hostFix guide
- OPS-080Cron / scheduled tasks not running (emails, abandoned cart)Fix guide
- OPS-094Rate limiting on host blocks normal visitorsFix guide
- OPS-092Hosting migration left old server serving some trafficFix guide
- OPS-075Database connection errors ('Error establishing a database connection')Fix guide
- OPS-072Server out of disk space (uploads, sessions fail)Fix guide