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
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
Synchronous Responses
These addresses respond immediately in the SMTP conversation, at the RCPT TO command.
This is how most email servers reject emails.
accept@250 2.0.0busy@450 4.2.1tempfail@451 4.3.0missing@550 5.1.1disabled@550 5.1.2spam@550 5.7.1Hyvor 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.
busy+atdata@450 4.2.1tempfail+atdata@451 4.3.0missing+atdata@550 5.1.1disabled+atdata@550 5.1.2spam+atdata@550 5.7.1Note 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.missing+async@5.1.1disabled+async@5.1.2spam+async@5.7.1complaint@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.