Proxmox Mail Gateway inside a Docker container.
- Runs Proxmox Mail Gateway inside Docker
- Provides the familiar Proxmox Mail Gateway web interface
- Filters incoming and outgoing email traffic
- Includes spam and antivirus protection
- Supports quarantine management and mail filtering rules
- Supports DKIM signing for outgoing mail
- Stores mail data and configuration in persistent volumes
- Works on both AMD64 and ARM64 systems
services:
pmg:
hostname: pmg
container_name: pmg
image: dockurr/proxmox-mail
environment:
TZ: "UTC"
PASSWORD: "root"
DOMAIN: "pmg.example.com"
ports:
- 25:25
- 26:26
- 8006:8006
volumes:
- ./config:/etc/pmg
- ./data:/var/lib/pmg
- ./spool:/var/spool/pmg
- ./postgres:/var/lib/postgresql
restart: always
stop_grace_period: 2mdocker run -it --rm --name pmg --hostname pmg -e "PASSWORD=root" -e "DOMAIN=pmg.example.com" -p 25:25 -p 26:26 -p 8006:8006 -v "${PWD:-.}/config:/etc/pmg" -v "${PWD:-.}/data:/var/lib/pmg" -v "${PWD:-.}/spool:/var/spool/pmg" -v "${PWD:-.}/postgres:/var/lib/postgresql" --stop-timeout 120 docker.io/dockurr/proxmox-mailVery simple! These are the steps:
-
Start the container and connect to port 8006 using your web browser.
-
Login using the username
rootand the password you specified in thePASSWORDenvironment variable.
Enjoy your time with your brand new Proxmox Mail Gateway, and don't forget to star this repo!
To change the location of the configuration data, include the following four bind mounts in your compose file:
volumes:
- ./config:/etc/pmg
- ./data:/var/lib/pmg
- ./spool:/var/spool/pmg
- ./postgres:/var/lib/postgresqlReplace the example paths with the desired folders or named volumes.
Yes, see our Proxmox VE, Proxmox Backup Server and Proxmox Datacenter Manager containers.
The product names, logos, brands, and other trademarks referred to within this project are the property of their respective trademark holders. This project is not affiliated, sponsored, or endorsed by Proxmox Server Solutions GmbH.

