A Dockerized version of SmarterMail
137
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.
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.
docker-compose.ymlservices:
smartermail:
image: peppershade/smartermail:8930
network_mode: "host"
environment:
- TZ=Europe/Berlin
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
# - 587:587
# - 110:110
# - 143:143
# - 993:993
# - 995:995
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
Content type
Image
Digest
sha256:8f48d1b5c…
Size
259.8 MB
Last updated
about 2 years ago
docker pull peppershade/smartermail:8930