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. Mike >
Attachment:
signature.asc
Description: PGP signature