Install PMG

Juliano Silva

Well-Known Member
Oct 15, 2017
186
3
58
39
How to solve this error mine, is Xen VPS

unable to get device for partition 1 on device
 

Attachments

  • Capturar.PNG
    Capturar.PNG
    19 KB · Views: 31
Install a basic Debian Stretch and on top the Proxmox Mail Gateway packages via apt.
 
Juliano, most of the things you ask are covered by the manual or are very basic things like the installation of Debian Stretch. I would suggest reading more documentation or attend to a linux-/mail-/administration-workshop.
 
  • Like
Reactions: DerDanilo and tom
apt-get install proxmox-mailgateway

Reading package lists... Done
W: There is no public key available for the following key IDs:
EF0F382A1A7B6500


/etc/apt/sources.list

#deb http://security.debian.org/ jessie/updates main
#deb-src http://security.debian.org/ jessie/updates main

#deb http://ftp.debian.org/debian/ jessie-updates main
#deb-src http://ftp.debian.org/debian/ jessie-updates main


#deb http://ftp.debian.org/debian/ jessie main
#deb-src http://ftp.debian.org/debian/ jessie main

deb http://ftp.debian.org/debian stretch main contrib
deb http://security.debian.org stretch/updates main contrib
deb http://download.proxmox.com/debian/pmg stretch pmg-no-subscription
 
apt-get install proxmox-mailgateway

Reading package lists... Done
W: There is no public key available for the following key IDs:
...

Again my suggestion: start reading the documentation before posting here.
 
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
Code:
hostname --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
Code:
postfix reload
future development could be found here
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!