A simple CLI tool for managing Fastmail masked email aliases. Easily create new aliases for websites or manage existing ones.
- Get or create masked email addresses for domains
- Aliases are automatically copied to clipboard
- Enable/disable/delete aliases
Usage:
masked_fastmail <url> (no flags)
manage_fastmail <alias> [flags]
Flags:
--delete delete alias (bounce messages)
-d, --disable disable alias (send to trash)
-e, --enable enable alias
-h, --help show this message
-v, --version show version information
The following environment variables must be set:
export FASTMAIL_ACCOUNT_ID=your_account_id
export FASTMAIL_API_KEY=your_api_key
A new alias will only be created if one does not already exist. In either case, the alias is automatically copied to the clipboard.1
masked_fastmail example.com
New Fastmail aliases are initialized to pending
, and are set to enabled
once they receive their first email.
However, they get automatically deleted if no email is received within 24 hours.
Some services may not send a timely welcome email, in which case it's helpful to manually enable the alias.
masked_fastmail --enable [email protected]
This causes all new new emails to be moved to trash.
masked_fastmail --disable [email protected]
Download the latest release from the releases page.
go install github.com/fredrikrab/masked_fastmail@latest
- Clone the repository
- Run
go build -o masked_fastmail
- Go 1.22+
- Fastmail API credentials
- The API documentation can be found at https://www.fastmail.com/dev/maskedemail
- It's also helpful to review the JMAP protocol
BSD 3-Clause License
Footnotes
-
Copying is done with Clipboard for Go and should work on all platforms. ↩