I'm sorry to say that but the documentation don't say too much about how to install PMG on top of debian
Based on my experience of installing PVE on top of Debian, comparing config on an original PMG and comment through Internet this is my How to Succeed
1. You must have an IPv4 static in /etc/network/interface
1.1 IPv6 may interfere so :
Code:
echo -e "Acquire::ForceIPv4 \"true\";\\n" > /etc/apt/apt.conf.d/99force-ipv4
2. edit your
/etc/hosts
ref: Install PVE on Debian
this command should return here your IP address
3. reboot
4. adjust your sources
Code:
[[ -z $(grep contrib /etc/apt/sources.list) ]] && \
sed -e "s/ main/ main contrib/" \
-e "s/^deb-src/#deb-src/g" -i /etc/apt/sources.list
[[ ! -f /etc/apt/sources.list.d/pmg-community.list ]] && \
echo "deb http://download.proxmox.com/debian/pmg stretch pmg-no-subscription" > /etc/apt/sources.list.d/pmg-community.list && \
wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
apt update
5. install
Code:
/usr/bin/env DEBIAN_FRONTEND=noninteractive apt -y -o Dpkg::Options::='--force-confdef' install proxmox-mailgateway
NOTE: after the installation execute
Code:
grep mydomain /etc/postfix/main.cf
grep myhostname /etc/postfix/main.cf
those command should respectively return something similar of:
Code:
mydomain.com
mail.mydomain.com
if not edit those lines in /etc/postfix/main.cf and exexute
ref:
postfix basic configuration
future development could be found
here