Postfix /etc/systemd/postfix-resolvconf.path

Original ๐Ÿ“‹ Ubuntu 24.04 LTS (Noble Numbat) 11 lines

Works On

Viewing:
Ubuntu 24.04 LTS (Noble Numbat)
Same on:
Debian 12 (Bookworm)
Other versions:

Details

Size
11 lines
MD5
dca3e7459cc78752dfdfa9803b20de15
SHA256
382c59b12ac8c1f4580c76842f723f11cb9958876ae0dc7850a49c4106ee5b87

Copy & Paste

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

For AI Agents

You are a DevOps agent. Fetch the default Postfix config for Ubuntu 24.04 LTS (Noble Numbat) from https://exampleconfig.com/api/v1/config/original/dca3e7459cc78752dfdfa9803b20de15?hint=postfix-resolvconf.path. Compare with my current /etc/systemd/postfix-resolvconf.path and summarize differences and safe changes.

Copy this prompt into Claude, ChatGPT, or other AI assistants.

/etc/systemd/postfix-resolvconf.path
[Unit]
Description=Watch for resolv.conf updates and restart postfix
ConditionPathExists=/etc/resolv.conf

[Path]
PathChanged=/etc/resolv.conf
Unit=postfix-resolvconf.service

[Install]
WantedBy=multi-user.target

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?

Restore it. Compare it. Start clean.

How do I restore Postfix defaults?

Download, replace, restart.

Is postfix-resolvconf.path safe for production?

Yes. This is exactly what shipped. Safe starting point.

How does this differ from other OS versions?

Defaults change. This one is specific to Ubuntu 24.04 LTS (Noble Numbat).

Can I use this for Postfix troubleshooting?

Absolutely. Diff this against yours to spot the problem.