Postfix: From: und To: Adressen Umschreiben für gesamtes LAN

09 Mai 2021

Postfix Adressen Umschreiben für gesamtes LAN Quick & Dirty

Postfix Relay-Server

Installation

sudo apt-get install postfix
sudo dpkg-reconfigure postfix

Setup

/etc/postfix/main.cf

sender_canonical_classes = envelope_sender, header_sender
sender_canonical_maps =  regexp:/etc/postfix/sender_canonical_maps
smtp_header_checks = regexp:/etc/postfix/header_checks

/etc/postfix/sender_canonical_maps

/.+/    from-adresse@domain.de

/etc/postfix/header_checks

/From:.*/ REPLACE From: to-adresse@domain.de