Proxmox Mail Gateway

powersupport

Active Member
Jan 18, 2020
286
2
38
30
Hi team,

We would like to make some changes to the Proxmox Mail Gateway email notification.
1. change postmaster from the Proxmox notification from postmaster@localhost.localdomain to emailsecurity@localhost.localdomain

2. Remove the localhost from the Proxmox email notification, from postmaster@localhost.localdomain to postmaster@localdomain

The Proxmox Mail Gateway version is 8.1.2

Could you please advise how we can configure it?

We are looking forward to your reply.

Thank you
 
1. change postmaster from the Proxmox notification from postmaster@localhost.localdomain to emailsecurity@localhost.localdomain
the postmaster part is hardcoded in quite a few places - and since postmaster has to exist for each domain (in PMG's case the hostname) https://en.wikipedia.org/wiki/Postmaster_(computing) it still seems like a good choice (usually the mails come from postmaster@pmg.full.hostname - so it should not clash with other uses of postmaster@)

2. Remove the localhost from the Proxmox email notification, from postmaster@localhost.localdomain to postmaster@localdomain
How was this PMG setup (from ISO, the PVE-container-template, on top of Debian)? - Asking mostly to see if we can prevent this in general

please share:
* pmgconfig dump (anonymize what you have to - but consistently (replace your.domain, everywhere by the same placeholder)
* /etc/hosts
* /etc/resolv.conf
* /etc/pmg/templates/* (at least main.cf.in and master.cf.in)
 
Hi Support,

For the first concern, we understand that changing the "postmaster" to "emailsecurity" is not advisable, as it can cause compatibility issues due to the address being hardcoded.

For the second concern:

PMG Installation Date: We started using proxmox to our live environment, October 2024
ISO = Yes
Debian: Debian GNU/Linux 12

Regarding /etc/hosts and /etc/resolv.conf, please refer to the attached file.

Regarding /etc/pmg/templates/ (specifically main.cf.in and master.cf.in),
Please see the image. The "/etc/pmg/" directory does not contain a "template" folder.

Could you please advise how we can configure it?

We are looking forward to your reply.

Thank you
 
Last edited:
the output of `pmgconfig dump` is missing - but probably not needed.

* the mails originating from pmg should have postmaster@pmg1.your.domain.co.jp as envelope-sender (and not postmaster@localhost.localdomain) - if not please share the logs of such a mail.

I deleted the zip-file, because you anonymized (private) IPs, but left the domain name visible...
 

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!