Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
lpi2:postfix [2022/09/21 20:01] ingo_wichmann [Postfix] |
lpi2:postfix [2022/12/21 14:52] (aktuell) |
||
---|---|---|---|
Zeile 29: | Zeile 29: | ||
==== Postfix ==== | ==== Postfix ==== | ||
- | In der Folge werden sinnvolle Werte für ''myhostname'', ''mydomain'' und ''mynetworks'' gesetzt. Und die Parameter ''mydestination'', ''inet_interfaces'', ''smtpd_recipient_restrictions'' ((vor Postfix Version 2.10)), ''smtpd_relay_restrictions'' ((ab Postfix Version 2.10)), ''default_transport'' und ''relay_transport'' werden auf die default-Werte gesetzt: | + | In der Folge werden sinnvolle Werte für ''myhostname'' und ''mydomain'' gesetzt. Und die Parameter ''mydestination'', ''inet_interfaces'', ''mynetworks'', ''smtpd_recipient_restrictions'', ''smtpd_relay_restrictions'', ''default_transport'' und ''relay_transport'' werden auf ihre default-Werte gesetzt: |
<code bash> | <code bash> | ||
- | |||
postconf -e "myhostname = $(hostname -f)" | postconf -e "myhostname = $(hostname -f)" | ||
postconf -e "mydomain = $(hostname -d)" | postconf -e "mydomain = $(hostname -d)" | ||
Zeile 60: | Zeile 59: | ||
. | . | ||
quit | quit | ||
+ | |||
+ | ====== Destination ====== | ||
+ | postconf -d mydestination | ||
+ | postconf mydomain | ||
+ | postconf mydestination='$myhostname, $mydomain, localhost.$mydomain, localhost' | ||
+ | systemctl restart postfix.service | ||
====== Links ====== | ====== Links ====== | ||
* http://www.postfix.org | * http://www.postfix.org |