These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Dovecot
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [tvial](https://hub.docker.com/r/tvial/docker-mailserver).
  5. It contains dovecot, antispam, antivirus, ssl, etc.
  6. #### Configuration
  7. The configuration is done automatically using scripts by tvial.
  8. First you need to download the essential setup files.
  9. ```shell
  10. curl -o setup.sh https://raw.githubusercontent.com/tomav/docker-mailserver/master/setup.sh; chmod a+x ./setup.sh
  11. curl -o docker-compose.yml https://raw.githubusercontent.com/tomav/docker-mailserver/master/docker-compose.yml.dist
  12. curl -o .env https://raw.githubusercontent.com/tomav/docker-mailserver/master/.env.dist
  13. curl -o env-mailserver https://raw.githubusercontent.com/tomav/docker-mailserver/master/env-mailserver.dist
  14. ```
  15. After that you need to edit the `.env` and the `env-mailserver` files to
  16. configure the mailserver.
  17. You then need to start the container with the `rebuild.sh` and add email
  18. accounts using the following command.
  19. `./setup.sh email add <user@domain> (<password>)`
  20. And finally generate the DCIM keys and rebuild once again.
  21. `./setup.sh config dkim`
  22. Afterwards you're ready to go by once again running the `rebuild.sh` file.
  23. #### Rebuild
  24. ```shell
  25. #!/bin/sh
  26. docker-compose down
  27. docker pull tvial/docker-mailserver:latest
  28. docker-compose up -d
  29. ```