Guides › Hosting, domain & email › Email problems

Port 25 Blocked or SMTP Connection Refused From Your Server or Network

Many providers block port 25. Use an authenticated submission port with a mail service.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Email problem

Why

Cloud and home networks often block outgoing port 25 to stop spam.

Fix

  1. Use port 587 (STARTTLS) or 465 (SSL/TLS) with a mail service that provides SMTP login.
  2. Check the host's firewall rules for outbound access.
  3. Use a transactional email provider for application mail.
  4. Test the connection from the server with a simple command-line tool, and read the exact error.
  5. Verify credentials and the From address.

See WordPress SMTP setup and PHP Contact Form Not Sending Mail: Use SMTP Instead of mail().

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.