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.

Setup as relay

Check log

$cat /var/log/mail.log     

Using command lines

Create a file
$nano /etc/postfix/sender_canonical
Edit (example)
$root@localmachine <tab>
$root <tab>
Create sender_canonical.db file
$postmap hash:/etc/postfix/sender_canonical
Add sender_canonical variable to /etc/postfix/
$postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"
Restart Postfix
$systemctl restart postfix

IMPORTANT : In my enterprise the server is in DMZ, so i need to disable NAT when, DMZ > Trust.

Using webmin

General option

Set with webmin > server > postfix > General Options


Canonical mapping

Set with webmin > server > postfix > Canonical Mapping

Entry for “tables for sender addresses” : hash:/etc/postfix/sender_canonical



Date : 2017.06.12