The short answer
RuangMail Email SMTP receives messages over SMTP. Your app connects to the relay with dashboard credentials; messages then pass validation, suppression, size calculation, credit debit, and Oracle Email Delivery.
What RuangMail handles
- Credential auth, re-checked right before the message is accepted
- Sender address, verified domain, and message size validation
- Atomic credit debit, plus a refund when delivery fails
- Quota queueing with safe retries
- Bounce quarantine and blocking of problem recipients
What stays in your hands
- The email content and its recipient list
- Creating and rotating SMTP credentials
- Registering the sending domain and publishing its DNS
- Not sending again to an address that already bounced
This is not email hosting. If you are looking for a mailbox you can open in Outlook or a webmail, that is a different service — see the Email Hosting guide. Open the Email Hosting guide
What happens after you hit send
This relay is not just a pipe. There are six stages between your app and the recipient's inbox, and the fourth is the one that most often stops a send.
- 1
Connect and authenticate
The app opens a connection to smtp.ruangmail.com:2525, upgrades to STARTTLS, then runs AUTH PLAIN with an rm_smtp_… username. The credential is checked against the database and re-checked right before the message is accepted — so a revoke takes effect without waiting for old connections to close.
- 2
Read the envelope and the message
The relay reads MAIL FROM, RCPT TO, then parses the MIME body with the standard library. The same recipient appearing in To, Cc, and Bcc still counts once.
- 3
Filter and measure
Addresses currently in quarantine are rejected first and cost no credits. The rest are counted: the final message size decides how many credits each recipient costs.
- 4
Debit credits
Credits are deducted in a single transaction. If the balance is short, the message is rejected with code 452 and nothing is sent.
- 5
Send through Oracle
RuangMail sends through Oracle Email Delivery. If provider quota is full, the request enters the queue and the worker retries on schedule; there is no Azure delivery fallback.
- 6
Wait for the final status
A worker syncs delivery events from OCI Logging, including delivered, bounced, and spam. A final status never walks back.
What the session looks like on the wire
If you have set up SMTP before, nothing here is new. The example below uses openssl s_client so the commands are visible; 220, 250, 235, 354, and 221 are standard SMTP responses.
$ openssl s_client -starttls smtp -crlf -connect smtp.ruangmail.com:2525
220 smtp.ruangmail.com ESMTP ready
EHLO mail.brandanda.com
250-smtp.ruangmail.com
250-STARTTLS
250-AUTH PLAIN
250 SIZE 10485760
AUTH PLAIN AHJtX3NtdHBfMDEyMzQ1Njc4OWFiAAAA...
235 2.7.0 Authentication successful
MAIL FROM:<[email protected]>
250 2.1.0 Sender OK
RCPT TO:<[email protected]>
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
From: Brand Anda <[email protected]>
To: [email protected]
Subject: Invoice INV-202610-000482
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
<p>Terima kasih, pembayaran Anda sudah kami terima.</p>
.
250 2.0.0 Message accepted for delivery
QUIT
221 2.0.0 ByeAn example, not a real log. Banner text and messages may differ.
Host, port, and limits
These values apply to the public relay. RuangMail send limits and Oracle quota both apply; when either is reached, messages wait in the queue until retry is safe.
| Parameter | Value | Notes |
|---|---|---|
| Host | smtp.ruangmail.com | Public relay hostname. |
| Port | 2525 | STARTTLS. Nginx does not proxy this port. |
| Security | STARTTLS | Required in production. AUTH PLAIN is only available after it. |
| Recipients per message | 50 | Unique recipients across To, Cc, and Bcc. |
| Wire limit | 10 MiB | Headroom for headers and MIME boundaries. |
| Business limit | 9.6 MB | Final size after attachments are encoded. Anything larger is rejected. |
| Concurrent connections | 100 | Capped before the EHLO greeting, not after. |
| Read / write timeout | 2 min / 30 s | Per SMTP connection. |
| Failed AUTH | 10 / minute | Per remote address. Counted in Redis, with a local in-memory fallback. |
Credits are priced on final size
Credits are counted per recipient that clears quarantine, based on the final MIME size after attachments are encoded. Up to 0.3 MB costs one credit; above that it climbs one credit every 1.5 MB.
| Final size | Credits per recipient |
|---|---|
| ≤ 0.3 MB | 1 |
| > 0.3 – 0.6 MB | 2 |
| > 0.6 – 2.1 MB | 3 |
| > 2.1 – 3.6 MB | 4 |
| > 3.6 – 5.1 MB | 5 |
| > 5.1 – 6.6 MB | 6 |
| > 6.6 – 8.1 MB | 7 |
| > 8.1 – 9.6 MB | 8 |
> 9.6 MBRejected before any credit is touched.
The 9.6 MB figure is a business decision; the 10 MiB wire limit is a technical one. The gap is deliberate headroom for headers and MIME boundaries.
What each status means
These statuses show up on the activity page and on the /smtp/activities endpoint. On the dashboard log page, the failed filter covers failed, bounced, and spam together.
| Status | Meaning |
|---|---|
| queued | Queued because a send limit or Oracle quota was reached. |
| sending | Being processed by the provider. |
| sent | The provider has accepted the send request. |
| delivered | Oracle reports the email reached the destination server. |
| failed | The send could not be processed. Credits are refunded. |
| bounced | The destination server refused it. The address goes into quarantine. |
| spam | Flagged as spam by the provider or the destination. |
| cancelled | Cancelled before it finished. |
Event tracking: what gets recorded
Those statuses do not appear by themselves. There are three event sources, and each plays a different role — one settles the send, one reports what happened afterwards, one reprocesses what was already stored.
Where events come from
| Source | How it arrives | What it settles |
|---|---|---|
| Operation polling | Synchronous, right after the send | sent or failed |
| OCI Logging sync | Polled by the worker, asynchronous | delivered, bounced, spam, suppressed, open, click |
| Refresh status | Manual, or when the Activity tab is opened | Reprocesses events that were already stored |
Event kinds and their effects
| Event | Message status | Side effect |
|---|---|---|
| sent | sent | None. |
| delivered | delivered | Sets delivered_at. |
| bounced | bounced | The recipient is quarantined, and a 30-credit penalty is applied once per event. |
| suppressed | failed | The recipient is quarantined. |
| failed | failed | Stores the provider's error code and message. |
| spam | spam | The recipient is quarantined. |
| view | Unchanged | open_count increments; opened_at is set to the first occurrence. |
| click | Unchanged | click_count increments; clicked_at is set to the first occurrence. |
Opens and clicks
Domains you register are created with engagement tracking on, so the provider injects the open and click tracking — you add nothing to the email. The results arrive as view and click events, then roll up into open_count and click_count on each message.
The status does not move
Opens and clicks only bump counters. The message stays delivered, and no credit is charged for a pixel or a click.
Refresh Status does not double-count
Replay deliberately skips engagement events, because the counter was already recorded when the event first arrived. The button is safe to press repeatedly.
Counted per message, not per batch
A batch to 10 recipients keeps 10 message rows, each with its own open and click numbers. Open a message's detail in the Activity tab to see them.
A final status never walks back
A late event cannot lower a status: a sent that arrives after delivered is ignored, and the batch is then recalculated from its messages. For terminal events like bounce and spam the recipient must be present in the payload — without it the event is skipped, so one bad address never penalises the whole batch.
Why an event can feel late
Oracle events arrive through periodic OCI Logging sync and are deduplicated by provider and event ID. Because event delivery is asynchronous, delivered, bounce, or spam may appear after the sent status.
SMTP or the Email API?
Both feed the same credit pipeline, but they enter from different doors. Pick whichever changes your code the least.
| Aspect | SMTP relay | Email API |
|---|---|---|
| How you send | SMTP commands from your app | POST /email-api/messages |
| Best for | Apps that already have an SMTP client — WordPress, CRM, ERP, older scripts | New backends that want per-request control |
| Attachments | Multipart MIME as-is | Base64 inside JSON |
| Provider | Oracle Email Delivery | Managed by RuangMail |
| See history | /dashboard/smtp | /dashboard/email-api |
Things that trip people up
Not an error list — just the things people ask about most after their first send.
- An empty Reply-To becomes From
- If you leave Reply-To empty, customer replies land on the sender address. Set it explicitly if replies need to go somewhere else.
- Newlines in headers are rejected
- A CR or LF in the subject or an address gets the message rejected. That is deliberate: without it, anyone could inject extra headers through user input.
- A bounce is more than a failure
- A bounced address goes into active quarantine, and each bounce event costs 30 credits. The next send to that address is rejected before any credit is debited.
- A retry counts as a new message
- A client that retries after a timeout is processed as a brand new SMTP transaction, like any relay. Make sure your app does not retry in a tight loop.
- A full quota is not an error
- When a RuangMail send limit or Oracle quota is reached, the message enters a durable queue and the worker retries. A request with an uncertain outcome is not automatically resent.
- The SMTP password shows up once
- Save it when you create or rotate it. The server only keeps a scrypt hash, and there is no path to display it again. Rotating also reactivates a credential that was revoked.
- STARTTLS is required in production
- The relay refuses to start without a certificate in production. If it fails to start because the certificate is missing, that is intentional so a password never travels in plaintext.
Read next
The pages people usually open after this one.
Already have an account?
Create an SMTP credential, register a sending domain, then send your first test. Opening the SMTP dashboard for the first time also sets up your credit account and default sender.