PMTA
How to remove the received:from the header in PMTA?

To remove the received (received: from) header entry in PMTA, do the following:
First, open your PMTA config file located at:
nano /etc/pmta/config
Id you don’t have nano, you can install it using this command:
Ubuntu:
sudo apt install nano
CentOs:
yum install nano
Now in the config add following commands to <source {auth}> tag:
remove-received-headers true
add-received-header false
hide-message-source yes
Now lets reload config and restart your PMTA
service pmta reload
service pmta restart
You’re Done!