Getting Started Tutorials
Choose your deployment method below to get started with ServerlessInbox. On the CloudFormation path it is about 15 minutes of your own work — the stack itself takes 12–15 minutes, and filling in the form and following the setup guide afterwards is a few minutes more.
Wall-clock time can be longer, because two of the waits are not yours to control:
- Nameserver delegation, if the hosted zone is new. Until your domain’s nameservers point at the zone at your registrar and that change has propagated, the deployment’s certificate validation cannot complete. Do this before you launch the stack — see the install guide’s prerequisites.
- Domain and DKIM verification, after you apply the mail DNS records. ServerlessInbox’s own DNS checks query your domain’s authoritative nameserver directly, so they are not waiting on general propagation — what’s left to wait on is SES’s own verification of the domain and its DKIM keys, which runs on AWS’s own schedule. It is usually quick, but it is AWS doing the waiting, not you.
And separately: until AWS takes your account out of the SES sandbox, you can only exchange mail with verified addresses; that review is AWS’s and takes as long as it takes.
During the beta, deployments are validated for eu-west-1 (Ireland) only. More regions are coming; if you need one sooner, ask in GitHub Discussions and we’ll deploy it on request.
Choose Your Path
Section titled “Choose Your Path”CloudFormation: ServerlessInbox Standard — start here
Section titled “CloudFormation: ServerlessInbox Standard — start here”Launch the published ServerlessInbox Standard template from the AWS console. No code, no toolchain. This is the first of ServerlessInbox’s predefined CloudFormation templates; more are planned for other deployment shapes.
Choose this if:
- You want a working mailbox for about 15 minutes of work
- You’d rather fill in a form than write infrastructure code
- Your organisation deploys through CloudFormation anyway
What you’ll do:
- Check that your domain is delegated to your Route 53 hosted zone
- Launch the template from the install guide
- Fill in the parameters (hosted zone, admin username, and a few options)
- Wait ~15 minutes for the stack
- Sign in to the admin UI and follow its setup guide: apply the DNS records, then send a test email
- Open webmail, read your first message and send one
Time required: ~15 minutes of work, plus DNS propagation you don’t control
Difficulty: Low
Customization: Template parameters
👉 Install ServerlessInbox Standard →
AWS CDK — if you build your infrastructure in code
Section titled “AWS CDK — if you build your infrastructure in code”Install the published constructs and compose them in your own CDK app.
Choose this if:
- You already run CDK and want ServerlessInbox inside your own stacks
- You want to extend or wire it into existing infrastructure
- You want it in version control with your other infrastructure
What you’ll do:
- Install
@serverlessinbox/mail-serverand an IdP addon —@serverlessinbox/mail-server-cognitois the one shipped today - Compose them in a CDK app
- Run
cdk deploy
Time required: depends on your setup — the stack itself takes the same ~15 minutes, the rest is however long you need to write and configure your app. Starter examples (and something like npm create) are planned.
Difficulty: Medium
Customization: Full control
Prerequisites for All Deployments
Section titled “Prerequisites for All Deployments”Regardless of which option you choose, you’ll need:
- ✅ AWS Account with permissions to create Lambda, DynamoDB, SES, and related resources
- ✅ AWS Credentials configured (AWS CLI or console access)
- ✅ A Route 53 hosted zone for the domain you want to receive mail on, in the same AWS account you deploy into, with your domain’s nameservers already pointing at it
- ✅ Budget awareness - See Cost Estimate below
ServerlessInbox currently deploys in eu-west-1 (Ireland). More regions are added on request — ask in GitHub Discussions if you need one. Some edge resources (CloudFront certificates and Lambda@Edge) are always created in us-east-1, as AWS requires; that is not where your mail or data lives.
Optional but Recommended
Section titled “Optional but Recommended”- AWS CLI v2 installed (for troubleshooting)
- Basic understanding of AWS Lambda and API Gateway
First-Timer Checklist
Section titled “First-Timer Checklist”Before you start any tutorial, verify:
- AWS account is active and logged in
- You have permissions to create resources (or contact administrator)
- You’ve chosen your deployment method (see above)
- You’ve read System Architecture to understand what you’re deploying
- You have about 15 minutes available (CloudFormation path)
- You’re deploying in eu-west-1, and the hosted zone is in the same AWS account
- Your domain’s nameservers already point at that hosted zone (see Create a Route 53 hosted zone)
Cost Estimate
Section titled “Cost Estimate”A personal install costs about $1 a month in AWS charges, plus about $0.25 per mailbox a month at normal volume. An idle install costs about $0.80. Everything is billed by usage except a small fixed floor.
All prices are eu-west-1 list prices, for a 30-day month and a 50 KB average message. The fixed floor below is measured on a running install. The per-mailbox costs are calculated from list prices and the volumes in the tier table. We invite beta users to help refine the estimate by sharing their actual AWS bill breakdown in our GitHub Discussions.
Fixed Floor per Install
Section titled “Fixed Floor per Install”These lines are billed whether or not any mail flows. They cover the mail server itself and exclude everything outside it.
| Service | Driver | Monthly cost |
|---|---|---|
| Route 53 hosted zone | Your domain’s zone | $0.50 — no new cost if the zone already exists in Route 53 |
| SQS idle long-polling | The three queue-fed functions (incoming mail, outgoing mail, audit) | About 0.78M requests a month: $0 within SQS’s 1M free requests a month, about $0.31 when that free tier is used up elsewhere |
| KMS, DynamoDB, API Gateway, CloudFront and Lambda@Edge, base S3 | Keys, tables, endpoints and buckets that exist while the install exists | About $0.30 together |
| Floor | About $0.80 to $1.10 |
The SQS free tier is shared across all accounts of one AWS Organization (one billing family). If another account in your organization already uses it, the higher figure applies.
Cost per Mailbox
Section titled “Cost per Mailbox”Each mailbox adds usage-billed costs:
- SES receiving: $0.10 per 1,000 mails plus $0.09 per 1,000 incoming 256 KB chunks. At about 1.1 chunks per mail on average, that is about $0.20 per 1,000 mails received. SES bills every message that reaches the pipeline, spam included.
- SES sending: $0.10 per 1,000 mails.
- DynamoDB requests, S3 requests and WebSocket connection-minutes: a few cents per mailbox.
- Lambda: stays within the always-free tier (1M requests and 400,000 GB-seconds a month).
Three usage tiers show how this adds up:
| Tier (received / sent per mailbox a day) | SES receiving | SES sending | DynamoDB, S3, WebSocket | Per mailbox |
|---|---|---|---|---|
| Light (10 / 3) | $0.06 | $0.01 | ~$0.02 | ~$0.09 |
| Normal (30 / 10) | $0.18 | $0.03 | ~$0.04 | ~$0.25 |
| Busy (100 / 30) | $0.60 | $0.09 | ~$0.08 | ~$0.77 |
Find the tier closest to your own volume and multiply by your mailbox count.
Worked Examples
Section titled “Worked Examples”Each range is the floor plus the per-mailbox costs. The lower figure assumes the SQS free tier is available to this install; the higher figure assumes it is used up elsewhere in your AWS Organization.
| Install | Monthly cost |
|---|---|
| Personal install, 2 mailboxes at light volume | ~$1.00 – ~$1.30 |
| 3 mailboxes at normal volume | ~$1.55 – ~$1.85 |
| 10 mailboxes at normal volume | ~$3.30 – ~$3.60 |
| 15 mailboxes at normal volume | ~$4.55 – ~$4.85 |
Storage Scaling
Section titled “Storage Scaling”Mail storage is billed at $0.023 per GB-month. A normal-volume mailbox grows by about 0.7 GB a year, so each additional 10 GB of stored mail adds about $0.23 a month. For example, 20 GB of stored mail adds about $0.46 a month.
Logging
Section titled “Logging”ServerlessInbox Lambdas log at error level by default (LOG_LEVEL=error) and buffer everything below it. In a healthy invocation (no errors or exceptions), no application log lines are written — what remains is Lambda’s own START/END/REPORT platform lines, which cost well under a cent a month at these volumes.
Two things change this:
- Setting
LOG_LEVEL=debug— application logs are written for every request, adding ~$1–2/month - Error flushes — when a request fails, buffered debug output is flushed, generating detail when you need it to investigate
What Deleting the Stack Does Not Remove
Section titled “What Deleting the Stack Does Not Remove”Deleting the stack does not delete your mail. Your DynamoDB tables and the S3 blob bucket live in a separate data stack that is deliberately retained, so a deploy → delete → redeploy cycle never loses data. It also means storage keeps costing whatever it costs after you delete the mailbox stack — a few cents for a trial mailbox, more if you stored a lot. To stop paying entirely, delete the data stack and the hosted zone as well.
Free-Tier Breakdown
Section titled “Free-Tier Breakdown”- Always-free tiers (never expire, regardless of account age): CloudFront (1 TB egress + 10M requests/month); Cognito (10,000 monthly active users); Lambda regional invocations (1M requests + 400,000 GB-seconds/month); SQS (1M requests/month, shared across all accounts of one AWS Organization).
- No free tier at all: SES sending and receiving, DynamoDB on-demand requests, Lambda@Edge, the WebSocket API’s connection-minutes, and Route 53 queries are all billed from the first unit. SES receiving is the largest per-mailbox line.
- 12-month new-account tiers (expire after 12 months, not applied above): HTTP API Gateway (1M requests/month); S3 storage (5 GB); S3 requests (20k GET + 2k PUT).
- Always charged (no free tier): Route 53 hosted zone ($0.50/month).
Share Your Bill
Section titled “Share Your Bill”Measured data from real installs sharpens these numbers for everyone:
- Deploy using the tutorial on this page
- Run for a typical month with your actual email workload
- Export your bill via AWS Cost Explorer or cost allocation tags
- Share in GitHub Discussions — include your region, mailbox count, email volume, and month-end charges by service
(Privacy note: share only service-line costs, not absolute account totals or payment method.)
What Happens During Deployment?
Section titled “What Happens During Deployment?”All deployment methods create the same infrastructure:
✅ AWS Lambda functions (Email processor, APIs, WebSockets)✅ DynamoDB tables (Email storage)✅ SQS queues (Email processing pipeline)✅ S3 buckets (email and attachment storage, search indexes, and the static UI bundles)✅ IAM roles and security policies✅ CloudWatch logging and monitoring✅ API Gateway endpoints (REST APIs, WebSocket)✅ CloudFront CDN for blob serving (edge certificates and functions in us-east-1)See System Architecture for details.
After You Deploy
Section titled “After You Deploy”Once your deployment is running, follow these next steps:
The deployment creates the admin’s sign-in account for you, and the mailbox behind it is created the first time that admin signs in — there is no tenant or first account to set up by hand. The install guide’s post-deploy steps take you from a finished stack to sending and receiving mail: sign in as the admin, follow the setup guide to apply the DNS records and send a test email, then open webmail to read your first message and send one.
From there:
- Add a user and their mailbox — create an account for someone else, and understand which address their mailbox gets.
- What an administrator can configure — further domains, aliases, shared mailboxes with delegated access, groups, and the suppression list.
- Request production access from SES — until AWS lifts the sandbox you can only exchange mail with verified addresses.
- Monitor the system — check function health, recent errors and the log lines around an error from the admin UI.
Troubleshooting Deployments
Section titled “Troubleshooting Deployments”See the individual tutorial pages for:
- ✅ Step-by-step commands
- ✅ Expected output at each stage
- ✅ Common issues and solutions
- ✅ How to verify success
Common issues:
Permission denied→ Check AWS credentials and IAM permissionsRegion not supported→ Some resources require specific regionsCertificate validation timed out→ the DNS validation record could not be resolved; check that the hosted zone you selected is the one serving your domain
FAQ: Choosing Your Path
Section titled “FAQ: Choosing Your Path”Q: I’m not sure if I should use CDK or CloudFormation → Read Choose Your Path above for a side-by-side comparison
Q: Can I start with one method and switch to another? → Yes, but you’d need to migrate resources. Best to choose carefully upfront.
Q: Which is cheapest? → Both create identical infrastructure with identical costs.
Q: Can I deploy to multiple regions? → Not today. ServerlessInbox is validated for eu-west-1 only, and the CloudFormation template rejects any other region. The CDK path takes a region setting, but no other region has been validated. Additional regions are added on request — ask in Discussions. Edge resources (CloudFront certificates, Lambda@Edge) always live in us-east-1, as AWS requires.
Next Steps
Section titled “Next Steps”Ready? Pick your deployment method above and follow the tutorial.
If you have questions:
- Review System Architecture to understand what you’re deploying
- Ask in GitHub Discussions