Skip to content

Install ServerlessInbox Standard

ServerlessInbox Standard is the first of ServerlessInbox’s predefined CloudFormation templates. It deploys via a CloudFormation quick-create stack; more templates are planned for other deployment shapes.

Install the ServerlessInbox Standard app into your own AWS account with a CloudFormation quick-create stack. The template URL and console link below are generated for the latest published release.

ServerlessInbox Standard deploys a complete, serverless JMAP email server on your own domain. Expect AWS costs of about $1 a month for a personal install, plus about $0.25 per mailbox at normal volume. A single CloudFormation stack provisions everything the mail server needs: Route 53 DNS records and ACM certificates for your domain, SES for inbound mail receiving, SQS and DynamoDB for the email processing pipeline, and an identity provider for authentication — a Cognito user pool, the IdP addon this app ships with. Once deployed, you get an Admin UI for managing the mailbox, a webmail interface, and a JMAP API for connecting mail clients. See Cost Estimate for the full cost model.

  • A Route 53 hosted zone for your domain, in the same AWS account you deploy into. The zone must exist before you launch the stack. The hosted zone field in the CloudFormation console is a dropdown listing only the hosted zones of the account you are deploying from, so a zone held in a different AWS account cannot be selected. See Create a Route 53 hosted zone if you don’t have one yet.

  • Your domain must already be delegated to that hosted zone. Open the zone’s detail page in Route 53 and note its four NS nameservers, then look your domain’s nameservers up from the public internet — dig NS example.com +short, or any online DNS lookup tool — and check that the answer matches those four names. If your domain is registered in Route 53, this is already true. If it is registered elsewhere and the lookup returns different nameservers, or nothing at all, point the nameservers at the hosted zone at your registrar and wait until the lookup matches before you launch the stack: the deployment validates a certificate for your domain by reading a record through the public DNS system, and that cannot succeed while the delegation is missing. See Point your domain at the hosted zone.

    If example.com already serves a live website or existing mail, moving its nameservers to a new Route 53 zone replaces every record already answering for it — its A/AAAA records, existing MX, everything. Point this stack at a dedicated subdomain zone instead, such as mail.example.com — a hosted zone for just that subdomain, delegated to Route 53 with a single NS record added at your existing DNS provider, leaving the rest of example.com untouched. Leave subdomainNamespace below empty in this case: the zone name already carries the subdomain, so ServerlessInbox’s endpoints come out as admin.mail.example.com, api.mail.example.com, and so on. To receive and send mail on the bare example.com address as well, add the MX, SPF, DKIM and DMARC records the Admin UI shows you directly at your existing DNS provider once the stack is deployed — see Onboard an existing domain without moving its nameservers below.

  • Region: eu-west-1 only. This app can only be deployed in the EU (Ireland) region — CloudFormation will reject the stack creation with the error “This stack can only be deployed in: eu-west-1” if you attempt to launch it elsewhere.

The CloudFormation template groups its parameters as follows.

ParameterTypeDefaultConstraintsDescription
hostedZoneIdAWS::Route53::HostedZone::Idrequired, no default—Your Route 53 hosted zone ID. The domain name itself is derived automatically from the hosted zone at deploy time — there is no separate domain name parameter to fill in.
subdomainNamespaceString'' (empty)Leave empty, or a valid DNS label: lowercase letters, digits, and hyphens only, no dots, max 63 charactersOptional namespace inserted between the endpoint subdomain and your base domain. Example: on zone example.com, setting this to mail yields admin.mail.example.com, api.mail.example.com, etc. If your hosted zone is already a dedicated subdomain (e.g., si.example.com), leave this parameter empty — the zone name already contains the subdomain you need, and adding another creates redundant nesting (e.g., admin.si.si.example.com).

This app ships with the Cognito IdP addon, so the details below are Cognito’s. Its hosted-UI domain prefix (the https://<prefix>.auth.<region>.amazoncognito.com sign-in endpoint) is likewise derived from your mail domain at deploy time: the domain name is lowercased, every character that isn’t a letter or digit becomes a hyphen, the reserved substrings aws, amazon, and cognito are removed (Cognito rejects prefixes containing them), and the result is capped at 63 characters. If sanitization leaves nothing usable, the stack name (sanitized the same way) is used instead, and as a last resort the prefix installer. There is no template parameter for the prefix — it is fully automatic.

ParameterTypeDefaultConstraintsDescription
adminUsernameStringadmin—Username for the first admin user, created automatically during deployment (see Post-deploy steps below).
ParameterTypeDefaultAllowed valuesDescription
mfaModeStringoptionaloff, optional, onMulti-factor authentication for user sign-in. off disables MFA. optional does not require users to use MFA. on requires every user to set up an authenticator app at their next sign-in.
ParameterTypeDefaultAllowed valuesDescription
artifactTrackingStringminorpinned, minor, majorControls how this stack updates its Lambda code over time. pinned freezes the stack to the version it was originally deployed with (no self-update infrastructure). minor and major install the current stable release on first deploy, then automatically advance within that semver bound — major will track newer feature releases but will never cross a breaking major-version boundary. See Self-update for why a deployment updates itself.
supportStringenabledenabled, disabledEnables the support infrastructure, which grants a vendor support engineer cross-account access to diagnostic and configuration data. When enabled, support roles and case management are provisioned. When disabled, no support resources are created. See Support access for details on what this grants and how support engineers use it.
sendStackFailuresStringenabledenabled, disabledSends the CloudFormation events and a window of the infrastructure log of a failed stack operation to the vendor to help diagnose it; set to disabled to send nothing. See Failure diagnostics for details.
Loading template information…

The launch link above is generated in your browser for the latest published release. If it doesn’t appear, the template itself is still reachable directly: each release is published to a predictable S3 URL of the form

https://mailbox-artifacts-eu-west-1.s3.eu-west-1.amazonaws.com/serverlessinbox/templates/mail-server-standard/releases/<version>/mail-server-standard.template.json

Ask in GitHub Discussions for the current <version> tag and either paste the resulting URL into a CloudFormation quick-create stack yourself, or use it as the Amazon S3 URL when updating an existing stack’s template.

The console’s parameter-entry screen presents the four parameter groups described above: Domain & DNS, Admin access, Cognito, and Vendor & updates.

Deployment typically takes 12–15 minutes. Most resources are created quickly, but the following legitimately sit in CREATE_IN_PROGRESS for several minutes without update — this is normal and does not indicate a failure:

  • Edge infrastructure resource (Custom::MailboxEdgeDeployer): This custom resource (visible in the root stack’s CloudFormation Events tab) deploys a separate stack to us-east-1 to create the ACM certificate and Lambda@Edge functions. Since ACM certificates are DNS-validated (which can take several minutes to propagate), this step takes time even after the resource itself appears. To observe this separately, switch the CloudFormation console region to us-east-1 and look for the {StackName}-edge stack.

    If this step seems to be taking much longer than the rest, re-run the nameserver check from the Prerequisites: certificate validation reads your domain through the public DNS system, so the answer tells you which situation you are in. If dig NS example.com +short returns the hosted zone’s four nameservers, the delegation is live and the wait is ordinary DNS propagation — the deployment will finish on its own. If it returns different nameservers, or nothing, the deployment is not slow but stuck: validation can never complete. Fix the delegation at your registrar, then delete the stack and launch it again — deleting and relaunching is safe: your DynamoDB tables and S3 blob bucket live in a separate data stack that is retained independently, so nothing you’ve already received or sent is lost.

  • CloudFront distributions (three total): The admin UI, webmail, and blob/content CDN distributions are created in your region (eu-west-1) and propagate to CloudFront’s global edge locations. Check the root stack’s CloudFormation Events tab for CreateDistribution operations in progress (typically 5–10 minutes).

The CloudFormation console’s Events tab is the first place to look: it lists every resource in creation order with its status, and the failing one shows CREATE_FAILED alongside a Status reason describing what went wrong. Scroll to the first CREATE_FAILED entry — later ones are usually just the rollback that follows it, not the original cause.

If the failure isn’t in the root stack’s own resources, check the edge infrastructure (Custom::MailboxEdgeDeployer) next. It deploys a separate stack, {StackName}-edge, to us-east-1 to create the ACM certificate and Lambda@Edge functions — its resources and their events don’t appear in the root stack’s Events tab at all. Switch the CloudFormation console’s region selector to us-east-1, open the {StackName}-edge stack, and read its own Events tab the same way.

Whatever the cause, deleting the stack and launching it again is always safe. Your mail data — the DynamoDB tables and the S3 blob bucket — lives in a separate data stack that is retained independently of the mailbox stack, so a delete-and-relaunch cycle never loses anything you’ve already received or sent. See Idle cost, and what deleting the stack does not remove for the full picture of what stays and what goes.

  1. Open the CloudFormation console Outputs tab for your stack and note the following values: adminUiUrl, webmailUrl, jmapApiUrl, adminApiUrl, and adminTemporaryPassword.

  2. Sign in to the Admin UI. The first admin user (username from the adminUsername parameter you set, default admin) is created in the identity provider automatically during deployment, and a temporary password for it is generated at deploy time and published in the stack Outputs as adminTemporaryPassword. Open the adminUiUrl from step 1 and sign in with that username and temporary password — the identity provider will require you to set a new password immediately. adminTemporaryPassword is for the installer’s first sign-in only, and it expires after 7 days if unused. This first sign-in is also what creates the admin’s mailbox and its address, <adminUsername>@<your mail domain> — for example admin@acme.com if you left adminUsername at its default and your hosted zone is acme.com.

  3. Work through the setup guide. After signing in you land on Welcome to ServerlessInbox — a short guided setup (“Let’s get your email setup in 2 minutes”). It leads with the DNS records, then a test email, and closes with a What to do next list. You can leave it at any point with Skip setup, and close it for good with Done — take me to the console once you are finished.

  4. Apply the DNS records. The first card of the setup guide is DNS records. If your domain’s hosted zone is on Route 53, the guide offers to do this for you: choose Create records in Route 53 and it writes the mail-handling records (MX, SPF, DKIM, DMARC) into your hosted zone. Two badges track what happens next: Applied means the records have been written, and Resolving means they are answering from public DNS; the card heading flips from Pending to Complete once the required records resolve. If Route 53 isn’t managing the zone — for example you followed the subdomain path to onboard the bare parent domain — the guide detects this and goes straight to Show DNS records, listing each record’s name and value for you to add at your existing DNS provider yourself. If you see “DKIM records are still being provisioned by SES”, give it a moment and use Check again.

    Record checks in this card query the authoritative nameserver for your domain directly, so they see a record as soon as it exists there — they are not waiting on recursive-resolver caching or general DNS propagation. What can still take a little time is SES’s own verification of the domain and its DKIM keys, which runs on AWS’s own schedule (typically well under an hour, though AWS’s own guidance allows for longer). You can leave the page and come back — the card updates itself.

  5. Send a test email. The second card is Send a test email, and it depends on step 4 having finished: sending needs the DKIM records verified, so leave that card showing Complete before you rely on this one. Pick a sending domain, enter an address you can read under Your email address, and choose Add & verify this address — while your AWS account is in the SES sandbox (see below), AWS will only deliver to addresses that have been verified, so it emails a confirmation link there first. Once the card shows Address verified, choose Send test email. Test email sent! confirms outbound mail is working; check that inbox to be sure it arrived.

  6. Send yourself a message to test receiving. From any mailbox you control, send a message to <adminUsername>@<your mail domain> — the address created at your first sign-in in step 2. To create mailboxes for other people, see Add a user and their mailbox.

  7. Read it in webmail, and send your first message from it. Open the webmailUrl from step 1 and sign in with the same admin username and the password you set in step 2 — the webmail interface and the Admin UI share one identity provider. The message from step 6 should be in your Inbox. Compose a reply, or a new message, to close the loop: while your AWS account is in the SES sandbox you can only send to addresses that have been verified, so send it to the address you verified in step 5.

  8. For as long as your account remains in the SES sandbox, add any further addresses you want to send to on the Sending page in the Admin UI (see below).

Onboard an existing domain without moving its nameservers

Section titled “Onboard an existing domain without moving its nameservers”

The Prerequisites above cover the greenfield case: a hosted zone for the exact domain you’re deploying on, with that domain’s nameservers pointed at it. If example.com already serves a live website or existing mail, doing that literally would drop every record already answering for it.

The supported alternative is to deploy on a dedicated subdomain zone and onboard the parent domain separately, without ever moving its nameservers:

  1. Create a hosted zone for a subdomain, not the bare domain — mail.example.com rather than example.com. See Create a Route 53 hosted zone.

  2. Delegate only that subdomain at your existing DNS provider. Add a single NS record for the mail label at whichever provider hosts example.com today, pointing to the four nameservers Route 53 generated for the new zone. This adds one record; it does not touch anything else example.com already serves.

  3. Deploy the stack against the subdomain zone, with subdomainNamespace left empty (the zone name already carries the subdomain). ServerlessInbox’s endpoints come out as admin.mail.example.com, api.mail.example.com, jmap.mail.example.com, and so on, and mail sent to mail.example.com addresses works exactly like the single-domain path above.

  4. Add example.com itself as a second domain on the Domains page in the Admin UI once the stack is up (the underlying call is CheckDNSProvider, followed by ApplyDomainRecords or a manual add). Because Route 53 isn’t managing example.com’s zone, the Admin UI detects that and skips straight to Show DNS records — it still computes the correct MX, SPF, DKIM, and DMARC values, you just add them at your existing DNS provider yourself instead of Route 53 writing them for you. example.com’s nameservers, and every other record already at that provider, are untouched throughout.

This gets both domains receiving and sending through the same deployment — example.com and mail.example.com — without a nameserver cutover on the domain that’s already live. It covers DNS onboarding only; migrating existing mailboxes or historical mail into ServerlessInbox is a separate concern this guide doesn’t cover.

By default, all AWS accounts are placed in SES sandbox mode. In sandbox mode, outbound email can only be sent to verified email addresses — arbitrary recipients are not allowed.

To send outbound email to any recipient, you must request SES production access for your account. You make the request from the Sending page of the Admin UI, and AWS reviews it. What AWS reviewers look for is described in Sending Practices & Feedback Handling.

The Sending page also lists Verified identities, where you add and verify the addresses you can send to in the meantime.