mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
845a72d07a
- if the guessed hostname is not correct, you can specify one yourself. useful if you generate a config locally and deploy to a different machine. - if explicit public ips are found, check them with spamhaus and spamcop DNSBLs and warn if they are listed, with links to check more DNSBLs. should prevent disappointment later on.
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
# Before launching mox, run the quickstart to create config files for running as
|
|
# user the mox user (create it on the host system first, e.g. "useradd -d $PWD mox"):
|
|
#
|
|
# mkdir config data web
|
|
# docker-compose run mox mox quickstart you@yourdomain.example $(id -u mox)
|
|
#
|
|
# note: if you are running quickstart on a different machine than you will deploy
|
|
# mox to, use the "quickstart -hostname ..." flag.
|
|
#
|
|
# After following the quickstart instructions you can start mox:
|
|
#
|
|
# docker-compose up
|
|
|
|
version: '3.7'
|
|
services:
|
|
mox:
|
|
# Replace latest with the version you want to run.
|
|
image: docker.io/moxmail/mox:latest
|
|
environment:
|
|
- MOX_DOCKER=yes # Quickstart won't try to write systemd service file.
|
|
# Mox needs host networking because it needs access to the IPs of the
|
|
# machine, and the IPs of incoming connections for spam filtering.
|
|
network_mode: 'host'
|
|
volumes:
|
|
- ./config:/mox/config
|
|
- ./data:/mox/data
|
|
# web is optional but recommended to bind in, useful for serving static files with
|
|
# the webserver.
|
|
- ./web:/mox/web
|
|
working_dir: /mox
|
|
restart: on-failure
|
|
healthcheck:
|
|
test: netstat -nlt | grep ':25 '
|
|
interval: 1s
|
|
timeout: 1s
|
|
retries: 10
|