How to change Received (Proxmox)

Mersa

Member
Sep 17, 2020
12
0
6
47
Istanbul, Turkey
Hi,

How can I change the text in the source (Proxmox) of the e-mails received by PMG?

Example content;
Received: from ....... (Proxmox) with ESMTP id 5007461133
 
This should be your server hostname

You can edit the file /etc/hostname

example
nano /etc/hostname

edit the file to match your needs (it should look something like this mx.example.com or mail.example.com)
save the changes by using ctrl +x and Y

You can also change your SMTPD Banner via Configuration - Mail Proxy - Options - SMTPD Banner (it should usually be the same as your server hostname)

After the changes restart and test again. Make sure you have also configured your PTR records for your server IP you can check via https://mxtoolbox.com/ReverseLookup.aspx and https://mxtoolbox.com/diagnostic.aspx to check if your server is configured correctly.
 
Last edited:
Hi,

What I am asking is not smtpd banner or hostname or rdns record. I want to change the (Proxmox) with ESMTP text in the Header in the source of the e-mails.
 
Hi,

What I am asking is not smtpd banner or hostname or rdns record. I want to change the (Proxmox) with ESMTP text in the Header in the source of the e-mails.
My mistake I am guessing it's this
nano +56 /var/lib/pmg/templates/main.cf.in
mail_name = Proxmox

Follow the template recommendations https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine to retain this value after upgrades.

example:
cp /var/lib/pmg/templates/main.cf.in /etc/pmg/templates/main.cf.in
nano +56 /etc/pmg/templates/main.cf.in
change the value mail_name = Proxmox and save changes then
pmgconfig sync --restart 1
 
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!