Postfix /etc/systemd/postfix-resolvconf.service

Original 📋 Debian 13 (Trixie) 12 Zeilen

Läuft auf

Ansicht:
Debian 13 (Trixie)
Gleich auf:
Andere Versionen:

Details

Größe
12 Zeilen
MD5
6d5b339a17bfd911b1ae4f485b052d72
SHA256
02e240400af6f87c9fbdad752c4779a5cfdf33590f16acb1302058d798135e80
/etc/systemd/postfix-resolvconf.service
# Update postfix in-chroot copy of /etc/resolv.conf
# Works for main/default postfix instance only
[Unit]
Description=Updates postfix copy of resolv.conf
Documentation=man:postfix(1)
Documentation=file:/usr/share/doc/postfix/README.Debian.gz
ConditionPathExists=/etc/resolv.conf
ConditionPathIsDirectory=/var/spool/postfix/etc

[Service]
Type=oneshot
ExecStart=cp -pLu /etc/resolv.conf /var/spool/postfix/etc/resolv.conf

Kopieren & Einfügen

curl:
curl https://exampleconfig.com/api/v1/config/original/6d5b339a17bfd911b1ae4f485b052d72?hint=postfix-resolvconf.service
wget:
wget -O postfix-resolvconf.service https://exampleconfig.com/api/v1/config/original/6d5b339a17bfd911b1ae4f485b052d72?hint=postfix-resolvconf.service

Für KI-Agenten

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/6d5b339a17bfd911b1ae4f485b052d72?hint=postfix-resolvconf.service' /><config><app>Postfix</app><os>Debian 13 (Trixie)</os><location>/etc/systemd/postfix-resolvconf.service</location><lines>12</lines><md5>6d5b339a17bfd911b1ae4f485b052d72</md5><sha256>02e240400af6f87c9fbdad752c4779a5cfdf33590f16acb1302058d798135e80</sha256></config></prompt>

Füge es in Claude, ChatGPT oder einen anderen KI-Assistenten ein.

Postfix installieren

Alpine Linux

sudo apk add postfix

Debian

sudo apt update && sudo apt install postfix

Red Hat Enterprise Linux

sudo yum install postfix

Ubuntu

sudo apt update && sudo apt install postfix

Ablageort

Pfad
/etc/systemd/postfix-resolvconf.service
Verzeichnis
/etc/systemd/
Bedeutung
Systemweites Konfig-Verzeichnis
Beschreibung
In /etc/ liegen systemweite Einstellungen, die alle Benutzer betreffen.

FAQ

Wann sollte ich postfix-resolvconf.service verwenden?

Nutze sie, um eine fehlende Default-Datei wiederherzustellen, zu prüfen, was ausgeliefert wurde, oder sie gegen deine aktuelle Postfix-Config zu diffen.

Wie stelle ich die Defaults von Postfix wieder her?

Lad die Datei runter, sichere die aktuelle in /etc/systemd/postfix-resolvconf.service, ersetze sie und lade Postfix neu oder starte es neu.

Ist postfix-resolvconf.service für den produktiven Einsatz geeignet?

Das ist der Hersteller-Default für Debian 13 (Trixie). Nimm sie als Basis und prüf Security- und Performance-Einstellungen, bevor du sie produktiv nutzt.

Wie unterscheidet sich das von anderen OS-Versionen?

Defaults variieren je nach Distro und Version. Diese Version passt zu Debian 13 (Trixie).

Kann ich das fürs Troubleshooting von Postfix nutzen?

Ja. Diff es gegen deine Version, finde Abweichungen und stell nur die Teile wieder her, die du brauchst.