Install Heroku CLI
git clone https://github.com/synox/void-mail.git && cd void-mail
heroku login
heroku create
git push heroku master
# adjust to your needs:
heroku config:set DOMAIN=example.com
heroku config:set IMAP_SERVER=imap.example.com IMAP_USER=james IMAP_PASSWORD=Mypassword
heroku config:set IMAP_REFRESH_INTERVAL_SECONDS=null
heroku open
Requires Node.js 10.
git clone https://github.com/synox/void-mail.git
cd void-mail
npm install
export DOMAIN=example.com
export IMAP_SERVER=imap.examplecom
export IMAP_USER=username
export IMAP_PASSWORD=mypass
npm run start
open http://localhost:3000
Usually, you want this program to run as a service, wich can restart itself in case of crashing, and on every reboot. This is possible vía pm2, the nodejs process manager.
- Run the program using some pm2 flags. You can name processes, I used
--name email
. The--watch
option restarts the app when dies for any reason.
cd void-mail
pm2 --name email start npm -- start --watch
-
Save your current list of running processes, so them resurrect when you reboot.
pm2 save
-
Make your system to run it on boot/reboot. You can run it with sudo directly.
pm2 startup
-
Once you did this, you can try to reboot things.
- Reboot your system and check if void-mail gets started. (
reboot
) - Kill node app instance and see if gets respawned (ie
kill -9 ``pgrep node``
)
- clone this repository
git clone https://github.com/synox/void-mail.git
- change docker-compose.yml accordingly to your needs
vi docker-compose.yml
- run it
docker-compose up -d