Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Outbound SMTP port blocked by host: how to find and fix it

OPS-082High impactDetectedBy FunnelGuardPublished Updated
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.

Where the lead is lost
  1. Visitor submits formPage shows a thank-you message
  2. Site connects to SMTPPort 587 or 465 times out
  3. Email deliveredNever sent
  4. Lead in inbox and CRMNever arrives

The form works and the visitor sees success, but the SMTP connection is blocked, so nothing arrives.

Leads received vs submittedExample numbers
Leads received vs submitted (example)Submitted: 40 leads per week; Received (blocked): 0 leads per week; Received (fixed): 40 leads per week0153140040SubmittedReceived (blocked)Received (fixed)leads per week

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.

Signs of a blocked SMTP port
  • 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
Test outbound ports from the server (SSH)bash
# 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

Restore outgoing email
  1. Confirm which ports are blocked

    Run the port test above for 25, 465, 587 and 2525 against your mail provider.

  2. 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.

  3. 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.

  4. 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.

  5. Send a test and check delivery

    Send a test email and also submit the real form once.

Where to change the mail settings
  1. 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.

  2. Send a test email

    Use the plugin's test email tool and read the error log if it fails.

PHPMailer using an alternative portphp
$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;
Before and after

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

Confirmation checks
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: delivery_failed.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.