Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Amazon SES

Amazon SES is Qubit's first-class email provider. You give the server a region and an IAM access key; it works out the SMTP password itself.
You need an AWS account and access to your domain's DNS.
  1. Pick a region
    Use one SES region for everything below. Qubit supports us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, eu-west-1, eu-west-2, eu-west-3, eu-central-1, eu-north-1, eu-south-1, ap-south-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-southeast-1, ap-southeast-2, sa-east-1, me-south-1, af-south-1, il-central-1 and us-gov-west-1.
    SES identities and sending limits are per region, so verify the domain in the same region you enter in Qubit.
  2. Verify your domain
    In the SES console, open Configuration › Identities, choose Create identity, pick Domain, and enter the domain you'll send from, for example example.com.
    Leave Easy DKIM on with RSA 2048-bit keys. SES gives you three CNAME records. Add them to your DNS:
    <token1>._domainkey.example.com CNAME <token1>.dkim.amazonses.com <token2>._domainkey.example.com CNAME <token2>.dkim.amazonses.com <token3>._domainkey.example.com CNAME <token3>.dkim.amazonses.com
    The identity turns Verified once SES sees them, usually within minutes and at most 72 hours.
  3. Add SPF and a custom MAIL FROM (recommended)
    DKIM is enough for SES to send. To pass DMARC alignment on SPF too, set a custom MAIL FROM domain on the identity, such as mail.example.com, and add the two records SES shows:
    mail.example.com MX 10 feedback-smtp.<region>.amazonses.com mail.example.com TXT "v=spf1 include:amazonses.com ~all"
    If you have no DMARC record yet, start with one that only reports:
    _dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:[email protected]"
  4. Move out of the sandbox
    New SES accounts are in the sandbox: they can only send to addresses you have verified, and only 200 emails a day. Invites to teammates would fail.
    In the SES console, open Account dashboard and choose Request production access. Say the mail is transactional (invites and sign-in links for your team's Qubit server), roughly how many you'll send, and that you handle bounces. AWS usually answers within a day.
    Until then, verify your own address as an identity to test with.
  5. Create an IAM user for Qubit
    In IAM, create a user (for example qubit-ses) with no console access, and attach a policy that allows only sending:
    { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "ses:SendRawEmail", "Resource": "*" } ] }
    Then create an access key for it (use case: application running outside AWS). Copy the access key ID (AKIA…) and the secret access key; AWS shows the secret once.
    To narrow it further, replace "*" with your identity's ARN, arn:aws:ses:<region>:<account-id>:identity/example.com.
  6. Enter it in Qubit
    In the setup wizard or on the Server page, choose Amazon SES and enter:
    FieldExample
    Regioneu-west-1
    Access key IDAKIA…
    Secret access keythe secret from the last step
    FromQubit <[email protected]>, on the verified domain
    The server derives the SES SMTP password from the secret access key (AWS's documented SigV4-based derivation), connects to email-smtp.<region>.amazonaws.com:465 and signs in before it saves. The secret is stored encrypted under QUBIT_SECRET_KEY.
  7. Send a test email
    Send one to yourself from the same screen. If it lands in spam, check that DKIM shows Successful on the identity and that your from address is on the verified domain.

Or use SES SMTP credentials

If you'd rather configure email with environment variables, create SMTP credentials in the SES console (SMTP settings › Create SMTP credentials, which makes an IAM user for you) and set:
QUBIT_SMTP_URL='smtps://<smtp username>:<percent-encoded smtp password>@email-smtp.<region>.amazonaws.com:465' QUBIT_SMTP_FROM='Qubit <[email protected]>' QUBIT_SMTP_HELO='qubit.example.com'
Percent-encode the password (it often contains /, + or =). Environment settings win over the dashboard and make its email settings read-only. See Email.

When it fails

What you seeWhy
535 Authentication Credentials InvalidWrong access key or secret, a region that doesn't match, or the IAM user lacks ses:SendRawEmail.
554 Message rejected: Email address is not verifiedThe account is still in the sandbox, or the from address isn't on a verified identity in this region.
The connection drops right after it opensThe EHLO name is localhost or a bare hostname. Set QUBIT_PUBLIC_URL or QUBIT_SMTP_HELO to a full domain name.