Skip to content
Cloudesert is in pre-launch. The plans and prices shown are what we will offer at launch; servers are not yet available for production use.

Docs

Sending email from your server

Outbound port 25 is blocked by default. SMTP relay ports may also be blocked by the server's network; test them before configuring email.

About 3 minutes to read

What is blocked, and why

Every new server can't open connections to TCP port 25 (SMTP between mail servers) anywhere on the internet. The block sits outside your server, so it stays even if you change the firewall inside it.

Why: a single server that sends spam, for example because it was hacked, can put our IP addresses on blocklists. Then email from every customer's server gets rejected. Blocking port 25 by default protects your IP address's reputation and everyone else's. Our Acceptable Use Policy (section 4.3) describes it.

What may still work, depending on the server network:

  • Outbound ports 587 and 465: sending through an email provider, when the network allows them.
  • An email provider's HTTPS API over port 443, if offered.
  • Everything else, such as web traffic and SSH.

Send email through a provider (recommended)

Use a transactional email service or your mailbox provider's SMTP server. First check whether your server can reach the provider on port 587 (STARTTLS) or 465 (TLS); some server networks block both. If they are unavailable, use the provider's HTTPS API on port 443 where possible. Providers handle SPF, DKIM, bounces and blocklists for you.

  1. Create an account with an email provider and verify your sending domain there.
  2. Add the DNS records the provider gives you (SPF, DKIM and usually DMARC) at your domain's DNS host.
  3. In your application or mail server (Postfix, for example), set the provider's SMTP host, port 587 or 465, and your username and password or API key.

From your server, check port 25 and the relay ports before configuring your application:

nc -vz -w 5 gmail-smtp-in.l.google.com 25
nc -vz -w 5 smtp.gmail.com 587
nc -vz -w 5 smtp.gmail.com 465

Asking us to open port 25

If you need to run your own mail server that delivers email directly, open a ticket in the portal (Support → New ticket, department Technical) or write to support@cloudesert.com. Tell us the server's hostname, what email you will send, and roughly how much. An upstream network may block ports 25, 465 and 587; support can confirm what is available for your server and whether an exception can be requested.

We open it per server, at our discretion, for accounts in good standing. We usually check that:

  • your invoices are paid and your account details are complete;
  • there are no abuse reports about your account;
  • the server's reverse DNS is set to your mail hostname (server page → Networking), and that hostname points back to the server's address;
  • the email you describe is wanted by its recipients (no bulk or unsolicited email).

We may say no, or close port 25 again if spam or abuse reports come in. A reinstall puts the block back; ask us to open it again afterwards.