Password manager integration
Generate unique email aliases directly from Bitwarden when creating new logins.
Overview
mailservr exposes API endpoints compatible with the request formats used by Bitwarden's SimpleLogin and Addy.io provider modes. Bitwarden supports both providers with a custom server URL. Other clients work only if they expose the same custom-provider setting.
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 Plus, Max, or Unlimited mailservr account
- At least one active domain configured
- An API key (generate one from Settings → Developers)
Bitwarden Setup (SimpleLogin Mode)
The simplest setup uses the SimpleLogin option in Bitwarden. This requires only your API key and your mailservr instance URL.
- Open Bitwarden and create or edit a vault entry
- Click the Username Generator icon
- Under Options, select Forwarded Email Alias
- Choose SimpleLogin as the service
- Set Server URL to your mailservr instance:
https://mailservr.app
- Paste your mailservr API key in the API Key field
- 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.
- Open Bitwarden and create or edit a vault entry
- Click the Username Generator icon
- Under Options, select Forwarded Email Alias
- Choose Addy.io as the service
- Set Server URL to your mailservr instance:
https://mailservr.app
- Paste your mailservr API key in the API Access Token field
- Enter your domain in the Domain Name field (e.g.
yourdomain.com) - Click the regenerate button to generate an alias
API endpoint used: POST /api/v1/aliases
Auth header: Authorization: Bearer <your-api-key>
1Password compatibility
1Password's Masked Email feature currently uses its Fastmail integration and does not expose a custom SimpleLogin or Addy.io server URL. mailservr therefore cannot be configured as a direct 1Password alias provider.
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 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]"
}
}| Parameter | SimpleLogin | Addy.io |
|---|---|---|
| Auth header | Authentication: <key> | Authorization: Bearer <key> |
| Domain selection | Uses default domain | Via domain body field |
| Note/description | note body field | description body field |
| Self-hosted URL | Supported | Supported |
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 total and active alias limits
- 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 alias limit. Delete an unused alias 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).