zone-eu / zone-mta-template

Template application for ZoneMTA
39 stars 25 forks source link

authentication #5

Closed u007 closed 6 years ago

u007 commented 6 years ago

hi,

how do i hardcode a user login and password? im seing plugins/example.conf and example-auth.conf what does enabled="receiver" means?

u007 commented 6 years ago

hi @andris9 how much do you charge for setup? i need it to be inside docker, here is my current setup:

version: "3.2"

services:
  mongodb:
    image: mongo:4.0
    volumes:
      - ./db:/data/db
    restart: unless-stopped
    networks:
      - default
    ports:
      - 27017:27017
  redis:
    image: "redis:4-alpine"
    ports:
      - "6379:6379"
    volumes:
      - ./redis:/data
    restart: unless-stopped
    networks:
      - default
  zonemta:
    depends_on:
      - mongodb
      - redis
    build: ./src
    volumes:
      - ./config:/zone-mta/config
    restart: unless-stopped
    networks:
      - default
    ports:
      - 2525:2525
      - 12080
    environment:
      - "NODE_ENV=production"
  admin:
    depends_on:
      - zonemta
      - mongodb
      - redis
    build: ./admin-src
    volumes:
      - ./admin-config:/zone-mta-admin/config
    restart: unless-stopped
    networks:
      - default
    ports:
      - 8082:8082
    environment:
      - "NODE_ENV=production"

right now, i just need to try if auth can work

andris9 commented 6 years ago

ZoneMTA plugins can be loaded in 3 different stages:

Authentication is enabled in zone-mta-template by default by the example-auth plugin. It uses hard coded credentials that can be changed here.