Skip to main content

Password Manager Integration

Generate private email aliases directly from Bitwarden or 1Password when creating new logins.

Overview

mailservr exposes API endpoints compatible with the SimpleLogin and Addy.io protocols. This means you can use mailservr as a forwarded email alias provider in any password manager that supports these services, including Bitwarden and 1Password.

When you create a new login in your password manager, it calls the mailservr API to generate a unique alias. The alias is created on your default domain (or a domain you specify) using your preferred email format from Settings.

Prerequisites

  • A mailservr account with an active plan
  • At least one active domain configured
  • An API key (generate one from Settings → API Keys)

Bitwarden Setup (SimpleLogin Mode)

The simplest setup uses the SimpleLogin option in Bitwarden. This requires only your API key and your mailservr instance URL.

  1. Open Bitwarden and create or edit a vault entry
  2. Click the Username Generator icon
  3. Under Options, select Forwarded Email Alias
  4. Choose SimpleLogin as the service
  5. Set Server URL to your mailservr instance:
    https://mailservr.app
  6. Paste your mailservr API key in the API Key field
  7. Click the regenerate button to generate an alias

API endpoint used: POST /api/alias/random/new

Auth header: Authentication: <your-api-key>

Bitwarden Setup (Addy.io Mode)

Alternatively, use the Addy.io option if you want to specify which domain to use for alias generation.

  1. Open Bitwarden and create or edit a vault entry
  2. Click the Username Generator icon
  3. Under Options, select Forwarded Email Alias
  4. Choose Addy.io as the service
  5. Set Server URL to your mailservr instance:
    https://mailservr.app
  6. Paste your mailservr API key in the API Access Token field
  7. Enter your domain in the Domain Name field (e.g. yourdomain.com)
  8. Click the regenerate button to generate an alias

API endpoint used: POST /api/v1/aliases

Auth header: Authorization: Bearer <your-api-key>

1Password Setup

1Password supports custom email alias providers through its SimpleLogin integration. The setup is similar to Bitwarden.

  1. Open 1Password and go to Settings → Privacy
  2. Under email masking, select SimpleLogin
  3. Set the server URL to your mailservr instance:
    https://mailservr.app
  4. Enter your mailservr API key
  5. New aliases will be generated when you create logins

API Reference

Two endpoints are available. Both authenticate using your mailservr API key and generate aliases using your configured email format preferences.

POST /api/alias/random/new

SimpleLogin-compatible endpoint. Used when Bitwarden or 1Password is configured with the SimpleLogin service.

curl -X POST "https://mailservr.app/api/alias/random/new?hostname=github.com" \
  -H "Authentication: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"note": "Generated for github.com"}'

# Response (201):
{
  "alias": "[email protected]"
}

POST /api/v1/aliases

Addy.io-compatible endpoint. Used when Bitwarden is configured with the Addy.io service. Accepts an optional domain name.

curl -X POST "https://mailservr.app/api/v1/aliases" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "yourdomain.com", "description": "Generated for github.com"}'

# Response (201):
{
  "data": {
    "email": "[email protected]"
  }
}
ParameterSimpleLoginAddy.io
Auth headerAuthentication: <key>Authorization: Bearer <key>
Domain selectionUses default domainVia domain body field
Note/descriptionnote body fielddescription body field
Self-hosted URLSupportedSupported

Alias Generation Behavior

  • Aliases are generated using your email format preference from Settings (random, first.last, random word, etc.)
  • If no domain is specified, your default domain is used
  • Aliases count toward your plan's active alias limit
  • Generated aliases appear in your dashboard like any other address
  • Notes from the password manager (hostname, description) are saved as the alias note

Troubleshooting

“Unauthorized” error

Verify your API key is correct and hasn't expired. Generate a new key from Settings if needed.

“Alias limit reached” error

You've hit your plan's active alias limit. Disable unused aliases or upgrade your plan.

“No domain available” error

Ensure you have at least one active domain, and that your default domain is set in Settings → Preferences.

Bitwarden shows a network error

Check the Server URL field. It should be your full mailservr URL without a trailing slash (e.g. https://mail.yourdomain.com).

Related