Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
lpi2:postfix [2026/01/23 11:59] ingo_wichmann |
lpi2:postfix [2026/01/23 12:03] (aktuell) ingo_wichmann [mydomain zu mydestination hinzufügen] |
||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ===== Benötigte Pakete ===== | ===== Benötigte Pakete ===== | ||
| - | SuSE, Debian, RedHat: | + | SuSE, Debian, Ubuntu, RedHat: ''postfix'' |
| - | postfix | + | |
| ==== Debian ==== | ==== Debian ==== | ||
| Zeile 14: | Zeile 13: | ||
| dpkg-query -W -f='${Package}\n' | grep exim | xargs dpkg --purge | dpkg-query -W -f='${Package}\n' | grep exim | xargs dpkg --purge | ||
| )) | )) | ||
| - | ==== SuSE ==== | ||
| - | SuSE hat seine eigenen Vorstellungen, wie man Postfix konfiguriert. Wenn man die Konfiguration aber nicht ''yast'' überlassen möchte, muß man die Datei ''/etc/sysconfig/mail'' anpassen: | ||
| - | <file> | ||
| - | MAIL_CREATE_CONFIG="no" | ||
| - | </file> | ||
| - | |||
| - | ==== RedHat ==== | ||
| - | Für RedHat wird auch das Paket ''system-switch-mail'' empfohlen | ||
| ===== Konfiguration ===== | ===== Konfiguration ===== | ||
| Zeile 38: | Zeile 29: | ||
| postconf -# $PARAMETER; | postconf -# $PARAMETER; | ||
| done; | done; | ||
| + | postconf -e 'mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost' | ||
| </code> | </code> | ||
| Zeile 60: | Zeile 52: | ||
| quit | quit | ||
| - | ====== mydomain zu mydestination hinzufügen ====== | ||
| - | postconf -d mydestination | ||
| - | postconf mydomain | ||
| - | postconf mydestination='$myhostname, $mydomain, localhost.$mydomain, localhost' | ||
| - | systemctl restart postfix.service | ||
| ====== Übersichtsbild Postfix Konfiguration ====== | ====== Übersichtsbild Postfix Konfiguration ====== | ||