Search for these terms and adapt the code with what you want: (case insensitive and don't forget to look at filename)
- YOUR_PROJECT
- YOUR_DOMAIN
- YOUR_IP
- YOUR_HOSTNAME
- YOUR_PASSWORD_SALT
- YOUR_SSL_PORT
- Finish this document
- Read this one
- Create a ssl directory at the root with:
- YOUR_DOMAIN_ssl_certificate.cer
- YOUR_DOMAIN_private_key.key
- Then run
make settings
vim .env- Fill this file with your settings.
- Run
make - Then create a new account with the command
./mailserver/setup.sh email add <email> [<password>] - Run
./mailserver/setup.sh config dkimNow the keys are generated, you can configure your DNS server by just
pasting the content of config/opendkim/keys/domain.tld/mail.txt in your domain.tld.hosts zone. - Finally run
docker-compose down
make- Now you can rebuild this architecture with
makewhenever you want. See Makefile for more commands.
If you want Nginx to serve some static file. Connect your docker to the volume: serve_nginx, and link your static repository in this volume. Now in your nginx conf file, you should be able to find them in the /home/nginx/serve_nginx/YOUR_REPO.