]> git.ekhem.eu.org Git - server.git/commitdiff
[postfix] Rewrite sender for outgoing email.
authorJakub Czajka <jakub@ekhem.eu.org>
Fri, 7 Oct 2022 17:31:10 +0000 (19:31 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Wed, 27 Sep 2023 21:59:30 +0000 (23:59 +0200)
`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
postfix/main.cf

index df7e75ea901933e9d302ccce44dc3583b71fcc09..2b972adcb4161190ea5e8b494daacc2249a879e9 100644 (file)
@@ -22,6 +22,15 @@ Install
 $ apt install postfix
 ```
 
+Notes
+-----
+
+Set MTA server hostname, which is used by `$myhostname`.
+
+```
+$ hostname <hostname>
+```
+
 Resources
 ---------
 
index 63d6a574fed3af72e80787e8e36b93e5f4e95be6..449a3bfa66248297dc0810259e3e021295117f56 100644 (file)
@@ -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