A simple SMTP server that stores all receiving mails to a MySQLite database.
To install the dependencies, just execute npm install
To configure the application you can create a .env file
where you can set global environment variables within the application.
Following values can be set (format: KEY=VALUE):
| Key | Default | Description |
|---|---|---|
| NODE_ENV | 'development' | If the application will be executed in development or production mode. |
| LOG_LEVEL | 'info' | The minimum log level the logger will output. |
| SMTP_PORT | 587 | Which port the SMTP server will listen to. |
| HTTP_PORT | 80 | Which port the HTTP server will listen to. |
Before you can run the application, you will need to create the tables needed
for the application to store the emails. To do this, simply execute
npm run db migrate:latest.
To start the server then execute npm start.
If you are developing you can execute npm run start:w instead.
Then the process will watch the files and restart whenever you edit a file.
To test the application then execute npm test.