Please note that this is a proof of concept, and I do not actively support this repository, SmarterMail WONT give support on this installation, Do NOT use in production.
This repository contains a Docker Compose configuration to set up SmarterMail using Docker. SmarterMail is a powerful and flexible mail server for Windows, and this setup allows you to run it on Linux via Docker.
- Docker installed on your machine
- Docker Compose installed on your machine
SmarterMail is a product of SmarterTools.
Info: https://www.smartertools.com/smartermail/business-email-server
Docs: https://help.smartertools.com/SmarterMail/Current/Topics/
Clone this repository to your local machine:
git clone https://github.com/Peppershade/SmarterMail-Docker.git
cd SmarterMail-Docker
The provided docker-compose.yml
file is configured to use the peppershade/smartermail:8930
image. Ensure you adjust the configuration to match your local timezone.
services:
smartermail:
image: peppershade/smartermail:8930
network_mode: "host"
environment:
- TZ=Europe/Amsterdam
volumes:
- ./maildata:/var/lib/smartermail
- ./mailconfig:/etc/smartermail
Set the timezone to your local timezone by modifying the TZ
environment variable in the docker-compose.yml
file.
./maildata:/var/lib/smartermail
: Stores your mail data../mailconfig:/etc/smartermail
: Stores your configuration data.
The ports section is commented out in the docker-compose.yml
file because network_mode: "host"
is used. If you need to use a different network mode, you can uncomment and configure the ports as needed.
# ports:
# - 80:80
# - 443:443
# - 443/udp:443/udp
# - 110:110
# - 25:25
# - 587:587
# - 110:110
# - 143:143
# - 993:993
# - 995:995
# - 465:465
# - 5222:5222
To start the SmarterMail service, navigate to the directory containing your docker-compose.yml
file and run:
docker-compose up -d
This command will start the SmarterMail service in detached mode.
To stop the service, run:
docker-compose down
The maildata
and mailconfig
directories are mounted as volumes to ensure data persistence. Make sure to back up these directories regularly.
For any issues or questions, please open an issue in this repository