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
A mail server already exists and permit connection port 25 from esg to mail server
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:
- URL: http://esg.iwaytest2.com:90
- User: admin
- Password: Mailwatchpass123
See: https://docs.docker.com/engine/install/
$ docker pull rockylinux/rockylinux
$ git clone https://github.com/iwayvietnam/esg-docker.git && cd esg-docker
$ docker build --rm -t iwayvietnam/esg .
$ git clone https://github.com/iwayvietnam/esg-docker.git && cd esg-docker
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:
- URL: http://esg.iwaytest2.com:90
- User: admin
- Password: Mailwatchpass123
$ docker-compose status
$ docker-compose logs -f
This work is released under GNU General Public License v3 or above.