I created this application in order to combat the spamming I got on my main email. There are many services like SimpleLogin, Anonaddy, etc. that let you create aliases for your main email.
I wanted to have one that works automatically through my password manager, Vault/Bitwarden that notifies my Stalwart email server to create the alias.
So whenever I want to register to a new website, I just create a new email alias through Bbitwarden and it just works.
Clone this repo in your server.
Create a .env like .env.example.
- Create an
API_TOKENto be used here and in your bitwarden extension. - The
ALIAS_DOMAINshould be your email domain (optional). FORWARD_TOshould keep the main email all aliases will forward to.STALWART_URLis the domain (or IP) you host your stalwart instance.STALWART_USERNAME&STALWART_PASSWORDare self-explanatory. (I tried with tokens but none worked)PORTis the app's port.
Run docker compose up -d.
Generate an alias through the bitwarden browser extension.
- Go to Generator -> Username -> Forwarded email alias.
- Select Addy.io in the Service field.
- Fill in your email domain.
- The API key you saved in the .env of this application.
- Fill in this app's url.
Now every time you create a new login you can ask a new username and it will create one in your stalwart instance which you can immediately use through bitwarden. Cheers!