Sat, 22 Jun 2013
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:
local_user1@pjcj.net user1@example.com local_user2@pjcj.net lonelyboy99@example.com
And added to /etc/postfix/main.cf:
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:
no_local_from_check untrusted_set_sender = *