INSTALL AND CONFIGURE MAILCOW – BEST SELF HOSTED MAIL SERVER

Though there are several mailing solution for self hosted mail server, but installation and configuration can be headache some times. MailCow is fully feature loaded mailing script based on Dovecot, Postfix, SoGo and other open source software. It’s not easy to install, but also provides a modern web user interface for user and server administration.

MailCow is open source project which means you don’t have to spend a penny from your pocket for the software. To learn more about MailCow you can read their official documentation.

Best SMTP email Services For Email Marketing

				
					curl -sSL https://get.docker.com/ | CHANNEL=stable sh
# After the installation process is finished, you may need to enable the service and make sure it is started (e.g. CentOS 7)
systemctl enable --now docker
				
			
				
					apt update
apt install docker-compose-plugin
				
			
				
					yum update
yum install docker-compose-plugin
				
			
				
					LATEST=$(curl -Ls -w %{url_effective} -o /dev/null https://github.com/docker/compose/releases/latest) && LATEST=${LATEST##*/} && curl -L https://github.com/docker/compose/releases/download/$LATEST/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
				
			
				
					rpm -qa | grep container-selinux
				
			
				
					docker info | grep selinux
				
			
				
					{
  "selinux-enabled": true
}
				
			
				
					$ su
# umask
0022 # <- Verify it is 0022
# cd /opt
# git clone https://github.com/mailcow/mailcow-dockerized
# cd mailcow-dockerized
				
			
				
					nano mailcow.conf
				
			
				
					./generate_config.sh
				
			
				
					networks:
  mailcow-network:
    ...
    driver_opts:
      com.docker.network.driver.mtu: 1450
    ...
				
			
				
					docker compose pull
docker compose up -d
				
			
Scroll to Top