🐳 Available on Docker Hub
Hey there, welcome to BunMail! This is a nifty little email server designed to securely send emails via POST requests. Plus, it's built on Bun! Cool, right?
You can find the full documentation here
Getting started is made easy with Docker! But no matter which route you choose, you will need to generate your own API key. You can do this by running the following command:
openssl rand -hex 32
version: '3'
services:
server:
image: biohackerellie/bunmail
container_name: BunEmailServer
restart: unless-stopped
ports:
- '6969:6969'
environment:
API_KEY: ${API_KEY}
GMAIL_USER: ${GMAIL_USER}
GMAIL_PASSWORD: ${GMAIL_PASSWORD}
ALLOWED_DOMAINS: ${ALLOWED_DOMAINS}
# --- For Oauth2 ---
OAUTH: ${OAUTH}
CLIENT_ID: ${CLIENT_ID}
CLIENT_SECRET: ${CLIENT_SECRET}
REFRESH_TOKEN: ${REFRESH_TOKEN} #Optional
ACCESS_TOKEN: ${ACCESS_TOKEN} #Optional
- Option A: Create a
.env
file based on the providedenv.example
and fill in your own values. Keep the .env file in the same directory as the docker-compose.yml file. - Option B: You can also directly edit the docker-compose.yml file if you'd rather:
environment:
API_KEY: Your-API-Key-Here
GMAIL_USER: Your-Email-Here
GMAIL_PASSWORD: Your-Password-Here
ALLOWED_DOMAINS: Domain1,Domain2,Domain3 # or '*' for all domains
OUATH: 'true' or 'false' # Default is false
### others as needed. See docs for configuring email providers
sudo docker compose up -d
That's it! Your server will be up and running at http://localhost:6969
.
Feel free to open an issue or submit a pull request. Any contributions are welcome!