Postfix /etc/systemd/postfix-resolvconf.path

Original 📋 Debian 13 (Trixie) 9 lines

Works On

Viewing:
Debian 13 (Trixie)
Same on:
Other versions:

Details

Size
9 lines
MD5
ad6131b40e7a5761e17efbde6ec5c568
SHA256
96149eb1f36d00d4dfe8e93602bb3b95a763f9d1d2bf728f4764dd80a9dad687
/etc/systemd/postfix-resolvconf.path
[Unit]
Description=Watch for resolv.conf updates for postfix
ConditionPathExists=/etc/resolv.conf

[Path]
PathChanged=/etc/resolv.conf

[Install]
WantedBy=multi-user.target

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/ad6131b40e7a5761e17efbde6ec5c568?hint=postfix-resolvconf.path
wget:
wget -O postfix-resolvconf.path https://exampleconfig.com/api/v1/config/original/ad6131b40e7a5761e17efbde6ec5c568?hint=postfix-resolvconf.path

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/ad6131b40e7a5761e17efbde6ec5c568?hint=postfix-resolvconf.path' /><config><app>Postfix</app><os>Debian 13 (Trixie)</os><location>/etc/systemd/postfix-resolvconf.path</location><lines>9</lines><md5>ad6131b40e7a5761e17efbde6ec5c568</md5><sha256>96149eb1f36d00d4dfe8e93602bb3b95a763f9d1d2bf728f4764dd80a9dad687</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

Install Postfix

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

File Location

File Path
/etc/systemd/postfix-resolvconf.path
Directory
/etc/systemd/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this postfix-resolvconf.path?

Use it to restore a missing default, confirm what shipped, or diff against your current Postfix config.

How do I restore Postfix defaults?

Download the file, back up the current one in /etc/systemd/postfix-resolvconf.path, replace it, then reload or restart Postfix.

Is postfix-resolvconf.path safe for production?

It is the vendor default for Debian 13 (Trixie). Treat it as a baseline and review security and performance settings before production use.

How does this differ from other OS versions?

Defaults vary by distro and version. This copy matches Debian 13 (Trixie).

Can I use this for Postfix troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.