Giter Site home page Giter Site logo

esg-docker's Introduction

Email Security Gateway

The project to build a Email Security Gateway (MailScanner & MailWatch) Docker image based on Rocky Linux 8. Check out the prebuilt image on Docker Hub: https://hub.docker.com/r/iwayvietnam/esg

Requirement

A mail server already exists and permit connection port 25 from esg to mail server

How to start a new Email Security Gateway container from prebuilt Docker image

Assumption: A mail server already exists with ip 192.168.100.23 and domain is iwaytest2.com, ...

$ docker run --name esg --hostname esg.iwaytest2.com -d -it \
-p 25:25/tcp -p 90:90/tcp -p 7790:7790/tcp \
-v /opt/esg-docker/databases:/var/lib/mysql \
-v /opt/esg-docker/config/mailscanner:/etc/MailScanner \
-v /opt/esg-docker/config/postfix:/etc/postfix \
-v /opt/esg-docker/logs:/var/log/ \
-e DOMAIN=iwaytest2.com -e HOSTNAME=esg.iwaytest2.com \
-e POLICYDPASS=Policydpass123 -e MAILSCANNERPASS=Mailscannerpass123 \
-e MAILWATCHPASS=Mailwatchpass123 -e MAILBACKEND_HOST=192.168.100.23 iwayvietnam/esg

(and WAIT... 35-40 minutes)

Login GUI MailWatch:

How to build a new Docker image

Firstly, of course, install Docker and setup to manage Docker as a non-root user

See: https://docs.docker.com/engine/install/

Pull the latest Rocky Linux based docker image
$ docker pull rockylinux/rockylinux
Checkout this git repo
$ git clone https://github.com/iwayvietnam/esg-docker.git && cd esg-docker
Build Zimbra a new docker image
$ docker build --rm -t iwayvietnam/esg .

How to start with Docker compose

Require : Install docker-compose for your server
$ git clone https://github.com/iwayvietnam/esg-docker.git && cd esg-docker
Edit variable in docker-compose.yml then run docker-compose

Assumption: A mail server already exists with ip 192.168.100.23 and domain is iwaytest2.com, ...

$ docker-compose up -d

(and WAIT... 35-40 minutes)

Login GUI MailWatch:

Command check status
$ docker-compose status
Command check logs
$ docker-compose logs -f

LICENSE

This work is released under GNU General Public License v3 or above.

esg-docker's People

Contributors

hieunguyen23 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.