[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"blog-post-why-smtp-is-blocked-on-most-servers-and-what-to-do-instead":3},{"id":4,"meta":5,"title":21,"author":22,"body":26,"introduction":64,"date":65,"tags":66,"category":69,"blog_image":70,"intro":64,"featured":10},1377,{"type":6,"detail_url":7,"html_url":8,"slug":9,"show_in_menus":10,"seo_title":11,"search_description":11,"first_published_at":12,"alias_of":13,"parent":14},"blog.BlogPage","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fapi\u002Fv2\u002Fpages\u002F1377\u002F","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fdoprax-blogs\u002Fwhy-smtp-is-blocked-on-most-servers-and-what-to-do-instead\u002F","why-smtp-is-blocked-on-most-servers-and-what-to-do-instead",false,"","2026-11-18T11:39:35.803763Z",null,{"id":15,"meta":16,"title":20},109,{"type":17,"detail_url":18,"html_url":19},"blog.BlogIndexPage","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fapi\u002Fv2\u002Fpages\u002F109\u002F","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fdoprax-blogs\u002F","Doprax Blogs","Why SMTP Is Blocked on Most Servers, and What to Do Instead",{"id":23,"username":24,"full_name":25},5,"Swetlana","Swetlana A",[27,34,40,46,52,58],{"type":28,"value":29,"id":33},"section",{"title":30,"content":31,"subsections":32},"Why Providers Block Email Ports","\u003Cp data-block-key=\"iq0bz\">Email is sent using a system called SMTP, which normally runs over a few specific ports: 25, 465, and 587. On a great many servers, these ports are closed by default, and the reason is spam.\u003C\u002Fp>\u003Cp data-block-key=\"2efo7\">A server with an open path to send email is exactly what spammers want. If anyone could rent a cheap server and immediately start sending mail, they would, by the millions, and much of it would be junk. So providers close the email ports by default to stop their networks from becoming a spam source. It protects the provider's reputation, keeps their IP addresses off the blocklists that email systems check, and keeps email working for everyone. The block is annoying when you hit it, but it exists for a real and reasonable purpose.\u003C\u002Fp>",[],"4057fd05-2904-4928-a10f-9274533a760d",{"type":28,"value":35,"id":39},{"title":36,"content":37,"subsections":38},"How to Tell If This Is Your Problem","\u003Cp data-block-key=\"e5loa\">The symptom is simple: your server can do everything else online, but email it tries to send never arrives, and there's often no clear error, just silence or a timeout. If your app sends a password reset, a notification, or a newsletter and none of it shows up, a blocked port is a likely cause.\u003C\u002Fp>\u003Cp data-block-key=\"5djyg\">You can check whether the standard email port is reachable from your server by trying to connect out on it. For the main sending port:\u003C\u002Fp>\u003Cp data-block-key=\"eiqoy\">curl -v telnet:\u002F\u002Fsmtp.gmail.com:587\u003C\u002Fp>\u003Cp data-block-key=\"lrmuw\">If it connects, the port is open. If it hangs and times out, the port is blocked, which confirms you're looking at a port block rather than a problem in your own setup. It's worth confirming this before you spend time rewriting your mail configuration, because no amount of config fixes a port that's closed at the network level.\u003C\u002Fp>",[],"5683813e-a3c7-4faa-b43a-224589831c2b",{"type":28,"value":41,"id":45},{"title":42,"content":43,"subsections":44},"The Better Way to Send Email","\u003Cp data-block-key=\"c0n67\">Here's the part that saves you the trouble: even when email ports are open, you usually shouldn't send email directly from your own server. The reason is deliverability. A fresh server's IP address has no sending reputation, so even if your mail goes out, email providers like Gmail and Outlook are likely to drop it straight into spam or reject it outright. Running your own mail server correctly, with the reputation, authentication records, and monitoring it needs, is a real ongoing job.\u003C\u002Fp>\u003Cp data-block-key=\"3whxs\">The practical answer is to send your email through a dedicated email-sending service. These services, often called transactional email or SMTP relay services, exist precisely for this. Your app hands the message to them, and they deliver it, using their own trusted infrastructure and established reputation so your mail actually lands in the inbox. You connect to them over a port that isn't blocked, typically using their API or an authenticated connection they provide, so the provider's port block never gets in your way.\u003C\u002Fp>\u003Cp data-block-key=\"3yj7p\">This is better on every front: your mail is far more likely to be delivered, you don't have to manage a mail server, and you sidestep the blocked ports entirely. For almost everyone sending email from an app, this is the right approach, not a workaround.\u003C\u002Fp>",[],"1bb2bd4a-e135-4537-99b4-4c723183c65f",{"type":28,"value":47,"id":51},{"title":48,"content":49,"subsections":50},"How to Send Email Reliably From Your Server, Using a Relay","\u003Cp data-block-key=\"8ki0w\">A relay is just the sending service acting as the middleman for your outgoing mail. Your server, or the app on it, is configured to hand every outgoing message to the service, and the service delivers it from its own trusted infrastructure. Because you connect to the service over a port it keeps open, the blocked email ports on your server stop mattering at all.\u003C\u002Fp>\u003Cp data-block-key=\"9sk87\">First, pick a service. Any of these do the job well, and all have a free tier to start with:\u003C\u002Fp>\u003Cul>\u003Cli data-block-key=\"8k86u\">\u003Cb>Resend\u003C\u002Fb> is modern and simple to wire up, popular with developers building apps.\u003C\u002Fli>\u003Cli data-block-key=\"4s4i1\">\u003Cb>Postmark\u003C\u002Fb> is known for strong deliverability, a good fit for important transactional mail like password resets and receipts.\u003C\u002Fli>\u003Cli data-block-key=\"4grb4\">\u003Cb>SendGrid\u003C\u002Fb> and \u003Cb>Mailgun\u003C\u002Fb> are long-established and API-first, with generous entry tiers.\u003C\u002Fli>\u003Cli data-block-key=\"bcf7a\">\u003Cb>Amazon SES\u003C\u002Fb> is the cheapest at high volume, with a bit more setup involved.\u003C\u002Fli>\u003Cli data-block-key=\"fsij6\">\u003Cb>Brevo\u003C\u002Fb> and \u003Cb>Mailjet\u003C\u002Fb> are based in the EU, which can matter for where your data is handled.\u003C\u002Fli>\u003C\u002Ful>\u003Cp data-block-key=\"ehp9v\">Once you've chosen one, the setup follows the same shape whichever you pick. Sign up and verify your sending domain by adding the DNS records the service gives you. These records, called SPF and DKIM, are what prove to Gmail and Outlook that your mail is legitimate, and they're a big part of why relayed mail lands in the inbox. The service walks you through them.\u003C\u002Fp>\u003Cp data-block-key=\"57c2e\">Then connect your app to the service in one of two ways. The simplest is their API, where your app calls the service directly to send each message, which avoids SMTP entirely. The alternative, if your app or software only knows how to speak SMTP, is to point it at the service as a smarthost: you give it the service's SMTP host, a port the service keeps open (often 587 or 2525), and the username and password the service issues you. Either way, your mail now leaves through the service, not through the blocked ports on your server.\u003C\u002Fp>\u003Cp data-block-key=\"4lard\">This setup runs happily on any Doprax server, ProVM included, because you never need the server's own email ports to be open. The relay handles the sending, your server just hands off the message, and your mail actually arrives.\u003C\u002Fp>",[],"da1a360e-e618-4f80-a1f7-240ff2c7bc9f",{"type":28,"value":53,"id":57},{"title":54,"content":55,"subsections":56},"When You Genuinely Need Your Own Mail Server","\u003Cp data-block-key=\"torpe\">Some people do need to run a full mail server, for example to host their own mailboxes rather than just send notifications. If that's you, the key is to choose a server where the email ports are actually open, because not all are. On Doprax, this varies by the underlying provider: the email ports are closed on ProVM servers but open on OVH servers, so if running a mail server is your goal, choose an OVH-based server from the start.\u003C\u002Fp>\u003Cp data-block-key=\"vnchc\">Even then, be ready for the real work a mail server involves: setting up the authentication records that prove your mail is legitimate, keeping the server secure so it can't be abused, and monitoring your IP's reputation. It's doable, but it's a genuine project, which is exactly why a sending service is the better choice for most people.\u003C\u002Fp>",[],"52c485bf-ae67-4651-bbbe-dff2fd61e079",{"type":28,"value":59,"id":63},{"title":60,"content":61,"subsections":62},"The Short Version","\u003Cp data-block-key=\"jj91o\">If email won't send from your server, a blocked port is the usual reason, and it's deliberate, providers close the email ports to fight spam. Confirm it with a quick connection test, then, for almost any app, send your mail through a dedicated email service instead of directly from the server. It delivers better and saves you the work. And if you truly need your own mail server, start on a server where the email ports are open, and go in knowing it's a real job to run one well.\u003C\u002Fp>",[],"643bd61c-8519-493a-90bb-01a1b751da3b","\u003Cp data-block-key=\"pvf70\">You set up a server, try to send email from it, and nothing goes out. You check your code, your config, your firewall, and it all looks right, but the mail never arrives. Before you spend hours debugging, here's the thing almost nobody tells you first: most hosting providers block the ports email uses, on purpose. It's not a bug, and it's not your mistake. This post explains why that block exists, how to tell if it's affecting you, and the better way to send email from a server anyway.\u003C\u002Fp>","2026-11-18",[67,68],"smtp port","vps","Networking","\u002Fd\u002Fmedia\u002Foriginal_images\u002Fsmtp_port_blocked_send_emails_from_smtp_relay_doprax.png",1795300124218]