[SOLVED] Install proxmox mail gateway on debian on an Azure VM

i have tried it and yes interface goes down. you have to make it up manually by connecting azure vm from console and assign ip from dhclient.

i am able to get web UI and all worked fine but the web ui cant accept my root user.. how to logged in to web UI ? is there any method to create user from Debian OS ?
 
i have just successfully setup proxmox mail gateway 6 on AWS and works a treat so im thinkig azure must be similar...
docs helped me a lot - https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmg_package_repositories
1. i used a standard debian buster ami and upgrade apt-get dist-upgrade && reboot
2. sudo into root user and set a password! sudo su && passwd root
3. remove the 127.0.1.1 from hosts (not needed on azure it seems?) nano /etc/hosts
4. include the proxmox repo in apt from the docs - STEP 3.5.3 FROM DOCS BUT USE BUSTER INSTEAD OF BULLSEYE!
5. get the keys for the repo wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg;
6. update repo apt update
7. dist-upgrade the os to install the ifupdown module and reboot apt dist-upgrade && reboot
8. then install as a linux container and not a standard install - STEP 3.4 FROM DOCS - apt install proxmox-mailgateway-container
9. goto the webpanel https://IPOFSERVER:8006 and use root and the password you set during step 2
hi,

i have successfully setup proxmox mail gateway 8 on strato (german aws) - apt install proxmox-mailgateway-container

i have some errors:

unable to update postfix table /etc/pmg/domains: postmap: fatal: bad string length 0 < 1: mydomain =
unable to update postfix table /etc/pmg/transport: postmap: fatal: bad string length 0 < 1: mydomain =
unable to update postfix table /etc/pmg/tls_policy: postmap: fatal: bad string length 0 < 1: mydomain =
unable to update postfix table /etc/pmg/tls_inbound_domains: postmap: fatal: bad string length 0 < 1: mydomain =
unable to update postfix table /etc/postfix/senderaccess: postmap: fatal: bad string length 0 < 1: mydomain =
unable to update postfix table /etc/postfix/rcptaccess: postmap: fatal: bad string length 0 < 1: mydomain =
unable to update postfix table /etc/postfix/clientaccess: postmap: fatal: bad string length 0 < 1: mydomain =
unable to update postfix table /etc/postfix/postscreen_access: postmap: fatal: bad string length 0 < 1: mydomain =
newaliases: fatal: bad string length 0 < 1: mydomain =
Job for postfix@-.service failed.
See "systemctl status postfix@-.service" and "journalctl -xeu postfix@-.service" for details.
command 'systemctl reload postfix@-' failed: exit code 1

4.)

deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib

# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib

# PMG pmg-no-subscription repository provided by proxmox.com,
deb http://download.proxmox.com/debian/pmg bookworm pmg-no-subscription

5.) wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg

9.) I can open the web interface and log in. However, the "postfix" service won't start.

what am I doing wrong?