Testing with the Simulator

HYVOR runs a private SMTP simulator at simulator.relay.hyvor.com. Emails sent to this domain are not delivered to any mailbox. Instead, the simulator responds with a pre-defined result based on the recipient address, such as a successful delivery, a bounce, or a complaint. You can use it to test how your application handles each case (for example, your

webhook handlers) without sending emails to real people or harming your sender reputation.

This simulator is only available on Hyvor Relay Cloud. If you are self-hosting, you can run your own copy using hyvor/smtp-simulator and use its domain instead of simulator.relay.hyvor.com in the examples below.

Usage

Send an email as usual, using the API or

SMTP, from a verified domain to one of the addresses listed below. For example, to simulate a hard bounce:
{
    "from": "you@your-verified-domain.com",
    "to": "missing@simulator.relay.hyvor.com",
    "subject": "Testing a hard bounce",
    "body_text": "Hello!"
}

The local part of the address (the part before @) decides the result. It is case-insensitive. Any other local part is rejected with 550 Unknown local part. The

Result column shows the recipient status changes you will see in Console → Sends and in webhooks.

Synchronous Responses

These addresses respond immediately in the SMTP conversation, at the RCPT TO command. This is how most email servers reject emails.

Address
Simulates
Response
Result
accept@
Successful delivery
250 2.0.0
accepted
busy@
Mailbox busy
450 4.2.1
deferred → failed
tempfail@
Temporary failure
451 4.3.0
deferred → failed
missing@
Mailbox does not exist
550 5.1.1
bounced, suppressed
disabled@
Mailbox disabled
550 5.1.2
bounced, suppressed
spam@
Rejected by a spam filter
550 5.7.1
bounced

Hyvor Relay retries deferred emails up to 7 times over about 31 hours (after 15 minutes, 1 hour, 2 hours, 4 hours, 8 hours, and 16 hours). Since the simulator always responds the same way, the email is marked as failed after the last attempt.

Responses After DATA

These addresses accept the recipient at the RCPT TO command, but reject the email after its content is sent (after the DATA command). Some email servers reject emails at this stage, for example, after scanning the content.

Address
Simulates
Response
Result
busy+atdata@
Mailbox busy
450 4.2.1
deferred → failed
tempfail+atdata@
Temporary failure
451 4.3.0
deferred → failed
missing+atdata@
Mailbox does not exist
550 5.1.1
bounced, suppressed
disabled+atdata@
Mailbox disabled
550 5.1.2
bounced, suppressed
spam+atdata@
Rejected by a spam filter
550 5.7.1
bounced

Note that the DATA response applies to all recipients of the email on the simulator domain. For example, if you send one email to both accept@ and

missing+atdata@, both recipients will be bounced. Use a separate email for each scenario.

Asynchronous Bounces & Complaints

These addresses accept the email, and a moment later, the simulator sends a bounce (DSN) or a complaint (ARF) back to Hyvor Relay. This is how many email providers report bounces and spam complaints. The

Response column shows the status code in the bounce.
Address
Simulates
Response
Result
missing+async@
Mailbox does not exist
5.1.1
accepted → bounced, suppressed
disabled+async@
Mailbox disabled
5.1.2
accepted → bounced, suppressed
spam+async@
Rejected by a spam filter
5.7.1
accepted
complaint@
Recipient marks the email as spam
-
accepted → complained, suppressed

Asynchronous bounces caused by spam filters (5.7.x) are recorded by Hyvor Relay, but they do not change the recipient status. Therefore, spam+async@ stays

accepted.

Custom Responses

To get any SMTP response you want, send the email to

custom+<hex>@simulator.relay.hyvor.com, where <hex> is the hex-encoded JSON of the following object:
type CustomResponse = {
    // SMTP status code (200-599)
    status: number;

    // text sent after the status code, as it is
    // include an enhanced status code here if you need one
    // ex: "5.7.1 bad reputation" -> "550 5.7.1 bad reputation"
    message?: string;

    // when to respond
    // "rcpt" (default): at the RCPT TO command
    // "data": after the DATA command (status must be 4xx or 5xx)
    at?: 'rcpt' | 'data';
}

For example, to get a 550 5.7.1 bad reputation response:

HEX=$(printf '%s' '{"status":550,"message":"5.7.1 bad reputation"}' | xxd -p | tr -d '\n')
echo "custom+$HEX@simulator.relay.hyvor.com"

If the hex or JSON is invalid, status is not between 200 and 599, at is not rcpt or data, or a 2xx status is used with

"at": "data", the simulator responds with 501.

Suppressions

The simulator is treated like any other email server. When a recipient bounces with

5.1.1, 5.1.2, 5.1.3, or 5.5.0, or complains, the address is added to your project's suppression list (marked as suppressed in the tables above). Any later email to that address is marked as suppressed without being sent to the simulator.

To test the same address again, delete the suppression at

Console → Suppressions or using the Console API.