linux:postfix
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| linux:postfix [2019/02/27 12:52] – angelegt move | linux:postfix [2020/01/16 15:07] (aktuell) – [Postfix soll an Smarthost senden] move | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== postfix ====== | ====== postfix ====== | ||
| + | **postfix** ist ein [[Mail]]-Server. | ||
| ===== Tips und Tricks ===== | ===== Tips und Tricks ===== | ||
| Zeile 35: | Zeile 35: | ||
| tail -f / | tail -f / | ||
| </ | </ | ||
| + | |||
| + | ==== Postfix soll an Smarthost senden ==== | ||
| + | Im Beispiel soll postfix auf pink alle Mails an mail.fahrrad-wiki.org senden. | ||
| + | |||
| + | Während der Installation von postfix die Option smarthost auswählen und als hostname pink, sowie als smarthost mail.fahrrad-wiki.org. | ||
| + | |||
| + | Konfiguration als Smarthost zum Versenden über mail.fahrrad-wiki.org: | ||
| + | |||
| + | < | ||
| + | # | ||
| + | mydestination = | ||
| + | |||
| + | ########## von mir hinzugefügt | ||
| + | relayhost = [mail.fahrrad-wiki.org]: | ||
| + | smtp_sasl_auth_enable = yes | ||
| + | smtp_sasl_password_maps = hash:/ | ||
| + | smtp_sasl_security_options = noanonymous | ||
| + | smtp_tls_CAfile = / | ||
| + | smtp_use_tls = yes | ||
| + | ##### | ||
| + | |||
| + | inet_interfaces = loopback-only | ||
| + | </ | ||
| + | |||
| + | / | ||
| + | |||
| + | < | ||
| + | [mail.fahrrad-wiki.org]: | ||
| + | </ | ||
| + | |||
| + | Mit postmap erzeugen (sasl_passwd.db): | ||
| + | |||
| + | < | ||
| + | postmap / | ||
| + | |||
| + | </ | ||
| + | |||
| + | In /etc/alias eintragen: | ||
| + | |||
| + | < | ||
| + | root: admin@fahrrad-wiki.org | ||
| + | </ | ||
| + | |||
| + | Mit newaliases abschließen: | ||
| + | |||
| + | < | ||
| + | newaliases | ||
| + | </ | ||
| + | |||
| + | Postfix neu starten: | ||
| + | |||
| + | < | ||
| + | service postfix restart | ||
| + | </ | ||
| + | |||
| + | ==== Lokaler Postfix (neben mailcow) ==== | ||
| + | |||
| + | |||
| + | Bei der Installation sind aufgrund [[linux: | ||
| + | |||
| + | Siehe auch https:// | ||
| + | |||
| + | Im Beispiel ist der hostname //mail//. | ||
| + | |||
| + | Während der Installation Internetsite auswählen und den Hostnamen mail angeben. | ||
| + | |||
| + | Dann auskommentieren in / | ||
| + | |||
| + | < | ||
| + | #smtp inet n - y - - smtpd | ||
| + | </ | ||
| + | |||
| + | Und folgende Einstellungen nacheinander ausführen: | ||
| + | |||
| + | < | ||
| + | postconf -e ' | ||
| + | |||
| + | postconf -e " | ||
| + | |||
| + | postconf -e " | ||
| + | </ | ||
| + | |||
| + | Nun kann mit postfix local mail gesendet werden (postfix neustarten). | ||
| + | |||
linux/postfix.1551271934.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
