Introduction
Proxmox Mail Gateway is an open-source email security solution that acts as a layer between users and your origin mail server. It helps eliminate incoming or outgoing spam or email threats. In addition, it comes with a user-friendly web-based management interface that allows you to control everything easily.
This article explains the installation of Proxmox Mail Gateway, using Nginx as a reverse proxy to serve the management interface & securing the management interface with an SSL certificate on a Debian 11 machine.
Prerequisites
To complete this guide, you will need to:
Deploy a fresh Debian 11 Server
Point a subdomain to your server
Change Hostname
You are required to point a subdomain to your server using A record. The same subdomain will be used throughout the article. For example, mailgateway.domain.tl. Add hostname in /etc/hostname.
[/size]
# nano /etc/hostname
Overwrite the existing content with your subdomain and save the file using CTRL + X then ENTER. Add hostname in /etc/hosts.
# nano /etc/hosts
Paste the following line below 127.0.0.1 localhost and save the file using CTRL + X then ENTER.
127.0.0.1 your_subdomain
Reboot the server to ensure everything works.
# reboot
Verify Hostname
After your server is up and running, run the following command and check if the output matches with your subdomain
# hostname
Expected output
your_subdomain