Postfix

Description

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)
[email protected] <tab> [email protected]
$root <tab> [email protected]
Create sender_canonical.db file
$postmap hash:/etc/postfix/sender_canonical
Add sender_canonical variable to /etc/postfix/main.cf
$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

postfix_relay_01

Canonical mapping

Set with webmin > server > postfix > Canonical Mapping

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

postfix_relay_03

postfix_relay_04


Date : 2017.06.12