> Don't chroot the Postfix smtp delivery agent.  It will then notice
> changes in /etc/resolv.conf, rather than using a stale copy in
> the chroot jail.  Better don't use chroot at all, unless it is
> very carefully and robustly built.

Ha!

    # find /var -name resolv.conf
    /var/spool/postfix/etc/resolv.conf
    # cat /var/spool/postfix/etc/resolv.conf
    # Generated by NetworkManager
    #

That explains the behavior!  Thank you very much.

I'm not sure why /var/spool/postfix/etc/resolv.conf is empty: the only
time it should be empty is "right when I suspend/wake-up", since it's
the only time the wifi connection is not up.  So apparently some part of
Debian somehow refreshes /var/spool/postfix/etc/resolv.conf when waking
up, which ends up doing exactly the wrong thing.

Anyway, I installed `resolvconf` and preliminary testing indicates that
it might circumvent the problem.

Thank you very much,


        Stefan

Reply via email to