From: Jakub Czajka Date: Fri, 7 Oct 2022 17:31:10 +0000 (+0200) Subject: [postfix] Rewrite sender for outgoing email. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=f45d0c33d9e150c66e5dfa8d95f9142bd924a56e;p=server.git [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. --- 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