A small node.js server for the twinmail protocol
clone it!
$ git clone https://github.com/owocean/node-twinmail.git
install it!
$ npm i
generate certificates! (for ssl/tls)
$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -days 365
run it!
$ npm start
upon running for the first time, store.json
, config.txt
, and mail/
will be created automatically in the active directory. edit config.txt
accordingly!
since account creation may be handled differently among servers, a CLI script named admin.js
was included. this script can be spawned by other processes if desired.
# creating a new user
$ node admin newuser username password
# delete a user
$ node admin deluser username