Mailbox

forward()

mailbox.forward(addresses) → Promise<Mailbox>

Sends a copy of every arriving message to other addresses. Five at most — and an empty array stops it.

PUT5 at most[] stops it
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await box.forward(["ops@example.net", "archive@example.net"]);
await box.forward([]);     // stop forwarding
box.forward(["ops@example.net", "archive@example.net"])
box.forward([])     # stop forwarding

Why five

A forward is a send we make in the customer's name

An unbounded list is an open relay in a different shape: one address receiving mail, ten copies going out of it, under the account's reputation. Five is a limit with a reason rather than a round number.

It is a copy, not a move

The message still lands in the mailbox and still counts against the account's storage. To have mail go somewhere else and not be kept, point the address there instead.

The list is replaced

await box.forward([...box.forwardTo, "extra@example.net"]);   // add one
box.forward([*(box.forward_to or []), "extra@example.net"])   # add one

There is no add or remove. Read forwardTo, change it, send it back.

Mind the loop

Forwarding to an address that forwards back is a message going round. Nothing here untangles it for you.

A forwarded message can look misaligned

Forwarding rewrites the path, and a strict alignment policy on the sender's domain can make the copy be refused at the far end. That is how mail works, not something this call can fix — it is also why a policy is hardened in steps.