What is Postfix? It is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Now at Google, Wietse continues to support Postfix.
Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.
$cat /var/log/mail.log
$nano /etc/postfix/sender_canonical
$root@localmachine <tab> postmaster@domain.com
$root <tab> postmaster@domain.com
$postmap hash:/etc/postfix/sender_canonical
$postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"
$systemctl restart postfix
IMPORTANT : In my enterprise the server is in DMZ, so i need to disable NAT when, DMZ > Trust.
Set with webmin > server > postfix > General Options
Set with webmin > server > postfix > Canonical Mapping
Entry for “tables for sender addresses” : hash:/etc/postfix/sender_canonical