Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:postfix

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:postfix [2019/02/27 12:52] – angelegt movelinux: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 /var/log/maillog tail -f /var/log/maillog
 </Code> </Code>
 +
 +==== 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:
 +
 +<Code>
 +#mydestination = $myhostname, pink, localhost.localdomain, localhost
 +mydestination = 
 +
 +########## von mir hinzugefügt
 +relayhost = [mail.fahrrad-wiki.org]:587
 +smtp_sasl_auth_enable = yes 
 +smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
 +smtp_sasl_security_options = noanonymous
 +smtp_tls_CAfile = /etc/postfix/cacert.pem
 +smtp_use_tls = yes 
 +#####
 +
 +inet_interfaces = loopback-only
 +</Code>
 +
 +/etc/postfix/sasl_passwd erzeugen:
 +
 +<Code>
 +[mail.fahrrad-wiki.org]:587 move@fahrrad-wiki.org:xxxxxxx
 +</Code>
 +
 +Mit postmap erzeugen (sasl_passwd.db):
 +
 +<Code>
 +postmap /etc/postfix/sasl_passwd
 +
 +</Code>
 +
 +In /etc/alias eintragen:
 +
 +<Code>
 +root: admin@fahrrad-wiki.org
 +</Code>
 +
 +Mit newaliases abschließen:
 +
 +<Code>
 +newaliases
 +</Code>
 +
 +Postfix neu starten:
 +
 +<Code>
 +service postfix restart
 +</Code>
 +
 +==== Lokaler Postfix (neben mailcow) ====
 +
 +
 +Bei der Installation sind aufgrund [[linux:mailcow|mailcow:dockerized]] einige Besonderheiten zu beachten, da u.a. mailcow auf Port 25 lauscht.
 +
 +Siehe auch https://ho2e.de/mywallabag/view/553 
 +
 +Im Beispiel ist der hostname //mail//.
 +
 +Während der Installation Internetsite auswählen und den Hostnamen mail angeben.
 +
 +Dann auskommentieren in /etc/postfix/master.cf:
 +
 +<Code>
 +#smtp inet n - y - - smtpd
 +</Code>
 +
 +Und folgende Einstellungen nacheinander ausführen:
 +
 +<Code>
 +postconf -e 'relayhost = 172.22.1.1'
 +
 +postconf -e "mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128"
 +
 +postconf -e "inet_interfaces = loopback-only"
 +</Code>
 +
 +Nun kann mit postfix local mail gesendet werden (postfix neustarten). 
 +
linux/postfix.1551271934.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki