Sat, 22 Jun 2013

Postfix and Return-Path

Keywords: linux ubuntu postfix Return-Path Sender From

My family connects to my mail server in order to send mail. But everyone has mail addresses that differ from their login names. On sending mail, postfix would add a Return-Path header matching my username on the mail server. In order to have the correct Return-Path added, I created /etc/postfix/generic with the following content:

And added to /etc/postfix/

smtp_generic_maps = hash:/etc/postfix/generic

Then run:

# postmap /etc/postfix/generic
# service postfix restart

Passing that mail through another server running exim4, I added the following lines to /etc/exim4/exim4.conf:

untrusted_set_sender = *

[/unix] permanent link

November 2022
Sun Mon Tue Wed Thu Fri Sat