lsc-mta

Logiscool SMTP Relay Server

Usage no npm install needed!

<script type="module">
  import lscMta from 'https://cdn.skypack.dev/lsc-mta';
</script>

README

LogiScool SMTP Server

Dependencies

  • Node.js
  • Redis
  • MongoDB
  • Logiadmin CRM
  • Docker

Get started

Development with Docker

cd smtp-server/
./build-docker.sh
./start-docker.sh

Development without Docker

cd smtp-server/
yarn install
yarn build:dev
yarn dev

If it is needed edit the smtp-server/dist/config/development.js config file.

Perhaps, the followed config options needs update:

  • log.level: 'silly'
  • dbs.mongo: 'mongodb://127.0.0.1:27017/zone-mta'
  • dbs.redis.host: '127.0.0.1'
  • plugins.logiscool-plugin.url: 'http://127.0.0.1:8080/api'

LogiAdmin (CRM)

Create Account

  1. http://localhost:8080/#/users/me/
  2. Accounts tab
  3. Local Create Local Account

User roles

Your CMR user needs to be rights for email sending.

Admin
  {
    "resources":["email"],
    "permissions":["manage"]
  }
Other
  {
    "resources":["email@<SchoolID>"],
    "permissions":["sendAs"]
  }

Send a test e-mail

Check all awailable params

yarn email:send

Send a test e-mail

yarn email:send user=<user> password=<password>

ZoneMTA readme files

  • smtp-server/node_modules/zone-mta/README.md
  • smtp-server/node_modules/zone-mta/plugins/README.md