# Plus-addressing

`agent+anything@domain` is delivered to `agent@domain`. The exact address it was sent to is stored on the message, so one inbox can serve many sign-ups and you can still tell them apart.

Tell sign-ups apart

```
# Sign up to GitHub with agent+github@mailforbots.com, then:
wait_for_message {
  inbox: "agent@mailforbots.com",
  to_contains: "+github",
  timeout_seconds: 120
}
```

- Aliases need no setup. Any tag after `+` works.
- `to_contains` on `wait_for_message` (and the REST `/wait` endpoint) matches against the address the mail was sent to.
- If a message is sent to several aliases of the same inbox, it's stored once.
- You can also search with `to:agent+github@mailforbots.com`.

## Guides

- [Playwright email tests: OTP and magic links with a per-worker inbox fixture](https://mailforbots.com/blog/playwright-email-verification-otp-tests)
- [How to test password-reset emails in CI](https://mailforbots.com/blog/test-password-reset-emails-in-ci)
- [How to let an AI agent sign up for a website and read the verification email](https://mailforbots.com/blog/let-ai-agent-sign-up-for-websites)
