A mail server with a ton of features and offers a cost-effective alternative to Microsoft Exchange.
10K+
SmarterMail is a robust and scalable email, collaboration, and group chat server that easily meets the needs of any sized business across any industry. Built initially for hosting companies and ISPs, SmarterMail has expanded to become the perfect Microsoft Exchange alternative for any sized business, from enterprise organizations to small to medium-sized businesses .
Originally developed for the Windows environment, SmarterTools is VERY excited to bring SmarterMail to the Linux community. It can be traditionally installed on Linux as a standalone server or as a container using Docker.
With lower hardware requirements, superior stability, and reduced maintenance costs, SmarterMail has significantly lower TCO and is the best-in-class Microsoft Exchange alternative for businesses and hosting companies. More information can be found at https://www.smartertools.com/smartermail/business-email-server
First, you'll need to create a docker-compose.yml file with the following content. You will want to replace the following:
<fill in web port> - This should be the port numbers on your host machine you want to make available to SmarterMail
<Path on host> - This should be the location, on your host system, for storing data and system files.
<TZ> - This is the timezone you want to use.
Version: '3.8'
services:
smartermail:
image: smartertools/smartermail:latest
container_name: smartermail
environment:
- TZ=America/Phoenix
- CLAMAV_IP=clamav
ports:
- "<fill in web port>:80"
- "<fill in web port>:443"
- "<fill in web port>:443/udp"
- "25:25"
- "110:110"
- "143:143"
- "465:465"
- "587:587"
- "993:993"
- "995:995"
- "5222:5222"
volumes:
- <Path on host>:/app/Data
- <Path on host>:/app/SystemData
restart: unless-stopped
Before starting the container, ensure the necessary firewall ports are open. If you have added any custom ports, they should be added as well:
sudo ufw allow 80,443/tcp comment 'SmarterMail: Web-tcp'
sudo ufw allow 443/udp comment 'SmarterMail: Web-udp'
sudo ufw allow 25,465,587 comment 'SmarterMail: SMTP'
sudo ufw allow 143,993 comment 'SmarterMail: IMAP'
sudo ufw allow 110,995 comment 'SmarterMail: POP3'
sudo ufw allow 5222 comment 'SmarterMail: XMPP'
To start SmarterMail, run the following command:
docker-compose up -d
You can log in to SmarterMail's webmail interface using the port(s) specified in your docker-compose.yml file. From here, you can continue configuring SmarterMail, begin adding domains and users, and more. More information on setting up SmarterMail can be found in our help documentation: https://help.smartertools.com
In order to upgrade SmarterMail to the most recent release, use the following commands:
docker-compose down
docker-compose pull
docker-compose up -d
docker image prune -af
Below is a list of commands that may be useful when managing your SmarterMail container.
docker inspect --format '{{ .NetworkSettings.IPAddress }}' smartermaildocker logs smartermaildocker exec -it smartermail /bin/bashBelow is an example command to run SmarterMail directly.
You will want to replace the following to match your particular installation, just as they were changed in the docker-compose.yaml file:
/path/to/data - the path to SmarterMail data
/path/to/systemdata - the path to SmarterMail's system data
TZ=America/Phoenix - the timezone to use for your installation
docker run -d --name smartermail -e TZ=America/Phoenix -p 80:80 -p 443:443 -p 443:443/udp -p 25:25 -p 110:110 -p 143:143 -p 465:465 -p 587:587 -p 993:993 -p 995:995 -p 5222:5222 -v /path/to/data:/app/Data -v /path/to/systemdata:/app/SystemData smartertools/smartermail:latest
Content type
Image
Digest
sha256:9e221d685…
Size
191.9 MB
Last updated
4 days ago
docker pull smartertools/smartermail