apfelcast

MailCow

Oct 28th, 2020
1,516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. ### Install MailCow Server via Docker ###
  2.  
  3. ## Set DNS Settings on Domain ##
  4. https://mailcow.github.io/mailcow-dockerized-docs/prerequisite-dns/
  5.  
  6. ## Test Settings ##
  7. https://mxtoolbox.com/SuperTool.aspx
  8.  
  9. ## Install Packeges ##
  10. apt install curl apt install netstat apt install git
  11.  
  12. ## Check Ports on System ##
  13. netstat -tulpn | grep -E -w '25|80|110|143|443|465|587|993|995|4190'
  14. netstat -pulten
  15.  
  16. ## Install Docker ##
  17. apt install docker.io
  18. systemctl enable docker.service
  19. systemctl start docker.service
  20.  
  21. ## Install Docker-Compose ##
  22. curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
  23. chmod +x /usr/local/bin/docker-compose
  24.  
  25. ## check umask ##
  26. umask
  27. //0022 # <- Verify it is 0022
  28.  
  29. ## get mailcow ##
  30. cd /opt git clone
  31. https://github.com/mailcow/mailcow-dockerized cd mailcow-dockerized
  32.  
  33. ## Generate a configuration file ##
  34. ./generate_config.sh
  35. Timezone: Europe/Berlin
  36.  
  37. ## open mailcow.comnf and adjust if necessary ##
  38. nano mailcow.conf
  39.  
  40. ## pull the images and run the compose file ##
  41. docker-compose pull docker-compose up -d
Add Comment
Please, Sign In to add comment