On Thu, Jan 08, 2026 at 09:11:08 -0500, Michael P. Soulier wrote: > On 08/01/26 Michel Verdier said: > > > You can put any command in post-up or if you prefer you can add a script > > in /etc/network/if-up.d such this one: > > > > $ cat /etc/network/if-up.d/postfix > > #! /bin/sh > > # update postfix copy of resolv.conf (picked up automatically); only > > default instance is handled > > [ lo != "$IFACE" ] && cp -pLu /etc/resolv.conf > > /var/spool/postfix/etc/resolv.conf 2>/dev/null || : > > I didn't think that would run on a NetworkManager-managed interface. > NetworkManager.conf says ifupdown support is disabled.
I did a web search for "network manager post up hook" and the first result was <https://askubuntu.com/questions/1111652/network-manager-script-when-interface-up> However, I do have to wonder: why is the OP using network manager for this interface, if they already know how to solve the problem using ifupdown? Why not simply configure this interface in /etc/network/interfaces and be done with it?

