SMTP relay

RuangMail Email SMTP

Your application keeps using standard SMTP. RuangMail validates the message, calculates credits, and sends through Oracle Email Delivery. Existing domains and sender addresses are prepared after Oracle DNS is verified; messages are never sent through Azure.

Last updated · October 14, 2026

Provider
Oracle Email Delivery
Host
smtp.ruangmail.com
Port
2525 · STARTTLS
Auth
AUTH PLAIN
01

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

02

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. 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. 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. 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. 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. 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. 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.

03

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.

smtp.ruangmail.com:2525
$ 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 Bye

An example, not a real log. Banner text and messages may differ.

04

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.

ParameterValueNotes
Hostsmtp.ruangmail.comPublic relay hostname.
Port2525STARTTLS. Nginx does not proxy this port.
SecuritySTARTTLSRequired in production. AUTH PLAIN is only available after it.
Recipients per message50Unique recipients across To, Cc, and Bcc.
Wire limit10 MiBHeadroom for headers and MIME boundaries.
Business limit9.6 MBFinal size after attachments are encoded. Anything larger is rejected.
Concurrent connections100Capped before the EHLO greeting, not after.
Read / write timeout2 min / 30 sPer SMTP connection.
Failed AUTH10 / minutePer remote address. Counted in Redis, with a local in-memory fallback.
05

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 sizeCredits per recipient
≤ 0.3 MB1
> 0.3 – 0.6 MB2
> 0.6 – 2.1 MB3
> 2.1 – 3.6 MB4
> 3.6 – 5.1 MB5
> 5.1 – 6.6 MB6
> 6.6 – 8.1 MB7
> 8.1 – 9.6 MB8

> 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.

06

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.

StatusMeaning
queuedQueued because a send limit or Oracle quota was reached.
sendingBeing processed by the provider.
sentThe provider has accepted the send request.
deliveredOracle reports the email reached the destination server.
failedThe send could not be processed. Credits are refunded.
bouncedThe destination server refused it. The address goes into quarantine.
spamFlagged as spam by the provider or the destination.
cancelledCancelled before it finished.
07

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

SourceHow it arrivesWhat it settles
Operation pollingSynchronous, right after the sendsent or failed
OCI Logging syncPolled by the worker, asynchronousdelivered, bounced, spam, suppressed, open, click
Refresh statusManual, or when the Activity tab is openedReprocesses events that were already stored

Event kinds and their effects

EventMessage statusSide effect
sentsentNone.
delivereddeliveredSets delivered_at.
bouncedbouncedThe recipient is quarantined, and a 30-credit penalty is applied once per event.
suppressedfailedThe recipient is quarantined.
failedfailedStores the provider's error code and message.
spamspamThe recipient is quarantined.
viewUnchangedopen_count increments; opened_at is set to the first occurrence.
clickUnchangedclick_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.

08

SMTP or the Email API?

Both feed the same credit pipeline, but they enter from different doors. Pick whichever changes your code the least.

AspectSMTP relayEmail API
How you sendSMTP commands from your appPOST /email-api/messages
Best forApps that already have an SMTP client — WordPress, CRM, ERP, older scriptsNew backends that want per-request control
AttachmentsMultipart MIME as-isBase64 inside JSON
ProviderOracle Email DeliveryManaged by RuangMail
See history/dashboard/smtp/dashboard/email-api
09

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.