Changing hostname in message with mail options

V.N.

New Member
Nov 18, 2021
2
0
1
48
Hi,
I try to solve the problem with changing hostname to public name. I made it for helo and ehlo, but got stuck in message with mail options.
1637232194738.png

What setting defines format for this message? I need change ct-ms-sr-vmmg02..... to mx4....
 
Can I have in /etc/hosts my real hostname? I really need it.
Thus I just need to change hostname in SMTP messages.
 
Can I have in /etc/hosts my real hostname? I really need it.
try it - I think the postfix config (which also yields the output you want changed) relies on /etc/hostname and /etc/resolv.conf only - but please verify for yourself