---
title: "How to Send Email from Your VPS · CloudSat docs"
description: "Send mail from a CloudSat server through an SMTP relay or your own mail server, with port 25 lifted on request, reverse DNS, SPF, DKIM and DMARC."
url: https://cloudsat.io/docs/sending-email
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

# Send email from your server

Send mail from a CloudSat server through an SMTP relay or your own mail server, with port 25 lifted on request, reverse DNS, SPF, DKIM and DMARC.

CloudSat team Updated Nov 18, 2026 3 min read

You can send email from a CloudSat server in two ways: hand it to an SMTP relay, or run your own mail server. To protect the reputation of our addresses, port 25 may be restricted on new accounts. A relay works without it; a mail server of your own needs it, and we lift the restriction on request for accounts in good standing.

## Option 1: send through an SMTP relay

Most applications only send notifications: password resets, order confirmations, alerts. For those, a relay is the simplest route and the best for deliverability.

1. Create an account with an SMTP relay provider of your choice and verify your domain there. The provider gives you the DNS records to publish.
2. In your application, enter the relay's host name, port `587` with STARTTLS (or `465` with TLS), and the username and password the provider gave you.
3. Check that the server reaches the relay:

```bash
nc -vz -w 5 smtp.example.net 587
```

A line ending in `succeeded!` means the connection works; then send a test message from your application. The submission ports `587` and `465` are not port 25, so a port 25 restriction does not affect a relay.

## Option 2: run your own mail server

1. Test outbound port 25. Find a mail exchanger with `dig +short MX example.net`, then try to reach it:

```bash
nc -vz -w 5 mx.example.net 25
```

A timeout means port 25 is restricted on your account.

1. Ask us to lift it. In the console, open **Support**, click **New ticket**, choose the category **Network or IP**, select the server, and say which domain it sends for and what kind of mail it sends.
2. Give the server a proper name. Create an `A` record such as `mail.example.com` for its IPv4, then set the same name as its PTR record in the **Networking** tab, as shown in [Set reverse DNS for your IPv4](https://cloudsat.io/docs/reverse-dns).
3. Publish SPF, DKIM and DMARC records for your domain. Your mail software generates the DKIM key and tells you the selector:

```text
example.com.                 TXT  "v=spf1 ip4:203.0.113.10 -all"
s1._domainkey.example.com.   TXT  "v=DKIM1; k=rsa; p=MIIBIjANBgkqh..."
_dmarc.example.com.          TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"
```

1. If the server also receives mail, add an `MX` record for the domain pointing at `mail.example.com`, and open the ports in your cloud firewall: TCP 25 for incoming mail, 587 for your own mail clients, 993 for IMAP over TLS. See [Create and apply cloud firewalls](https://cloudsat.io/docs/cloud-firewalls).
2. Send over IPv4 until the IPv6 address has a matching PTR record. The console sets reverse DNS for IPv4 only; for IPv6, ask in a ticket. With Postfix:

```bash
postconf -e 'inet_protocols = ipv4'
systemctl restart postfix
```

## Rules for mail

The [acceptable use policy](https://cloudsat.io/legal/acceptable-use) applies to every message that leaves our network:

- No spam: no unsolicited bulk email, no lists that did not opt in, and no service that lets others send it.
- Mail servers must handle bounces and complaints and honor unsubscribes.
- No open relays: your server must only accept mail for your own domains and from your own authenticated users.

Breaking these rules leads to abuse reports and, if the problem goes on, to suspension. See [When we receive an abuse report about your server](https://cloudsat.io/docs/abuse-reports-about-your-server).

## Troubleshooting

- Mail lands in spam: open the message headers at the recipient and look at `Authentication-Results`. SPF, DKIM and DMARC should all say `pass`, and the PTR name should match your `A` record.
- `Connection timed out` on port 25: the restriction is still on. Follow step 2 above, or use a relay.
- Mail is refused right after you set reverse DNS: DNS answers are cached for a while. Check with `dig -x 203.0.113.10 +short` from outside, and retry later.
- Mail sent over IPv6 is refused: switch the mail server to IPv4, as in step 6.
- Incoming mail never arrives: check the `MX` record with `dig +short MX example.com` and that TCP 25 is allowed in the cloud firewall and in the firewall inside the server.

- [Transfer allowance and overage](https://cloudsat.io/docs/transfer-allowance): Previous Transfer allowance and overage
- [How DDoS filtering works](https://cloudsat.io/docs/ddos-filtering): Next How DDoS filtering works
