Installation
🐳 Docker
docker run -d -p 3124:3124 --restart=always --name notymail \ -e API_KEYS='' \ -e MAIL_SENDER='notymail <test@1.1.1.1>' \ -e MAIL_HOST='gmail.com' \ -e MAIL_PORT='587' \ -e MAIL_SECURE='false' \ -e MAIL_AUTH_USER='test@1.1.1.1' \ -e MAIL_AUTH_PASSWORD='password' \ dafnik/notymail:latest
notymail is now running on http://0.0.0.0:3124.
GitHub Docker Container Registry
Alternatively you can use the GitHub Docker Container Registry.
docker run -d -p 3124:3124 --restart=always --name notymail \-e API_KEYS='' \-e MAIL_SENDER='notymail <test@1.1.1.1>' \-e MAIL_HOST='gmail.com' \-e MAIL_PORT='587' \-e MAIL_SECURE='false' \-e MAIL_AUTH_USER='test@1.1.1.1' \-e MAIL_AUTH_PASSWORD='password' \ghcr.io/notymail/core:latest
Changing port
docker run -d -p <YOUR_PORT>:3124 --restart=always --name notymail \-e API_KEYS='' \-e MAIL_SENDER='notymail <test@1.1.1.1>' \-e MAIL_HOST='gmail.com' \-e MAIL_PORT='587' \-e MAIL_SECURE='false' \-e MAIL_AUTH_USER='test@1.1.1.1' \-e MAIL_AUTH_PASSWORD='password' \dafnik/notymail:latest
Docker Tags Description
Tag(s) | Description |
---|---|
latest | Latest stable (👍Recommended Tag) |
🐳 Docker Compose
Example docker-compose template: https://github.com/notymail/core/blob/main/docker-compose.yml
docker-compose up -d
(Optional) Reverse proxy
This is optional for someone who wants to use a reverse proxy.
More information: Reverse proxy
(Optional) Auto start systemd service
This is optional for someone who wants to use systemd autostart feature.
[Unit]Description=notymailWants=syslog.service
[Service]Restart=alwaysExecStart=/usr/bin/docker start -a notymailExecStop=/usr/bin/docker stop -t 2 notymail
[Install]WantedBy=multi-user.target
Now execute:
sudo systemctl enable notymailsudo systemctl start notymail