I would love to create a backup PMG instance on a cloud hosted VM - has anyone tried installing PMG on a Lightsail instance?
lets assume:
Intance: Debian 10.5 Lightsail AP Region
Public IP = 1.2.3.4
Local IP = 172.26.7.x
fqdn = splaam.domain.com
dns points correctly when ping fqdn
I am trying, however getting the following error and I am not sure of what next:
NOTE: I have changed the following hosts file to reflect the change Stoike had advised below.
/etc/cloud/templates/hosts.debian.tmpl
/etc/hosts
/etc/hostname
/etc/mailname
/etc/postfix/main.cf
/etc/apt/sources.list
What have I not defined?
Any help is much appreciated.
lets assume:
Intance: Debian 10.5 Lightsail AP Region
Public IP = 1.2.3.4
Local IP = 172.26.7.x
fqdn = splaam.domain.com
dns points correctly when ping fqdn
I am trying, however getting the following error and I am not sure of what next:
Code:
hostname lookup 'splaam' failed - failed to get address info for: splaam: Name or service not known
dpkg: error processing package pmg-api (--configure):
installed pmg-api package post-installation script subprocess returned error exit status 22
dpkg: dependency problems prevent configuration of proxmox-mailgateway-container:
proxmox-mailgateway-container depends on pmg-api; however:
Package pmg-api is not configured yet.
dpkg: error processing package proxmox-mailgateway-container (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u5) ...
Errors were encountered while processing:
pmg-api
proxmox-mailgateway-container
NOTE: I have changed the following hosts file to reflect the change Stoike had advised below.
/etc/cloud/templates/hosts.debian.tmpl
Code:
#{# The value '{{hostname}}' will be replaced with the local-hostname -#}
#127.0.1.1 {{fqdn}} {{hostname}}
#127.0.0.1 localhost
1.2.3.4 splaam.domain.com splaam
/etc/hosts
Code:
1.2.3.4 splaam.domain.com splaam
/etc/hostname
Code:
splaam.domain.com
/etc/mailname
Code:
splaam.domain.com
/etc/postfix/main.cf
Code:
myhostname = splaam.domain.com
mydestination = $myhostname, splaam.domain.com, localhost.domain.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
/etc/apt/sources.list
Code:
# PMG Repository
deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian buster-updates main contrib
# security updates
deb http://security.debian.org/debian-security buster/updates main contrib
# Proxmox Mail Gateway Enterprise Repository
#deb https://enterprise.proxmox.com/debian/pmg buster pmg-enterprise
# PMG pmg-no-subscription repository provided by proxmox.com, NOT recommended for production use
deb http://download.proxmox.com/debian/pmg buster pmg-no-subscription
What have I not defined?
Any help is much appreciated.
Last edited: