From f45d0c33d9e150c66e5dfa8d95f9142bd924a56e Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Fri, 7 Oct 2022 19:31:10 +0200 Subject: [PATCH] [postfix] Rewrite sender for outgoing email. `myorigin` specifies the address of outgoing email (user@domain). It defaults to `$myhostname = gethostname()`. This allows rewriting the sender of outgoing email without changing configuration. --- postfix/README | 9 +++++++++ postfix/main.cf | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/postfix/README b/postfix/README index df7e75e..2b972ad 100644 --- a/postfix/README +++ b/postfix/README @@ -22,6 +22,15 @@ Install $ apt install postfix ``` +Notes +----- + +Set MTA server hostname, which is used by `$myhostname`. + +``` +$ hostname +``` + Resources --------- diff --git a/postfix/main.cf b/postfix/main.cf index 63d6a57..449a3bf 100644 --- a/postfix/main.cf +++ b/postfix/main.cf @@ -1,11 +1,5 @@ # See /usr/share/postfix/main.cf.dist for a commented, more complete version - -# Debian specific: Specifying a file name will cause the first -# line of that file to be used as the name. The Debian default -# is /etc/mailname. -#myorigin = /etc/mailname - smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no -- 2.39.5