Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/var/spool/postfix/etc/resolv.con empty on random reboots

155 views
Skip to first unread message

Tim Johnson

unread,
Nov 24, 2015, 6:03:53 PM11/24/15
to


Should anyone consider this to be a ubuntu-specific problem and
reroot the inquiry, feel free to recommend a forum or other venue
-----------------------------------------------------------------

OS is ubuntu 14.04 64-bit, installed on Mac Mini with the Macintosh installer package.

uname -s >
Linux linus 3.16.0-53-generic #72~14.04.1-Ubuntu SMP Fri Nov 6 18:17:23 UTC
2015 x86_64 x86_64 x86_64 GNU/Linux

postfix version is 2.11.0

/var/spool/postfix/etc/resolv.con is empty on reboot.

I have tried the following remedy from :
http://serverfault.com/questions/661621/why-do-i-have-to-manually-copy-etc-services-and-etc-resolv-conf-into-var-spoo

First :
sudo mv S20postfix S90postfix
for /etc/rc2.d

I then found that /var/spool/postfix/etc/resolv.conf had correct nameserver and
search values about 2 reboots out of 3

when that doesn't work, I use the following:
sudo cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
sudo service postfix restart

Which fixes the problem, but needs to be done after every reboot when
/var/spool/postfix/etc/resolv.conf is empty

(I determined that ubuntu in graphic mode is using runlevel 2)
by
tim@linus:~$ runlevel
N 2

So I am currently looking for a permanent remedy for this problem

Could it be as simple as configuring postfix to use /etc/resolv.conf instead of
/var/spool/postfix/etc/resolv.conf ?

If so, what would be the configuration setting?

thanks
--
Tim
http://www.akwebsoft.com, http://www.tj49.com

Wietse Venema

unread,
Nov 25, 2015, 6:14:33 AM11/25/15
to
Tim Johnson:
> Could it be as simple as configuring postfix to use /etc/resolv.conf
> instead of /var/spool/postfix/etc/resolv.conf ?
>
> If so, what would be the configuration setting?

Disable chroot as per http://www.postfix.org/DEBUG_README.html#no_chroot
for all Postfix services, not only smtpd.

Wietse

Tim Johnson

unread,
Nov 25, 2015, 11:16:10 AM11/25/15
to
* Wietse Venema <wie...@porcupine.org> [151125 02:21]:
Done. We'll see how it goes as soon as I can reboot.
Thank you

Viktor Dukhovni

unread,
Nov 25, 2015, 1:31:04 PM11/25/15
to
On Wed, Nov 25, 2015 at 07:15:31AM -0900, Tim Johnson wrote:

> * Wietse Venema <wie...@porcupine.org> [151125 02:21]:
> > Tim Johnson:
> > > Could it be as simple as configuring postfix to use /etc/resolv.conf
> > > instead of /var/spool/postfix/etc/resolv.conf ?
> > >
> > > If so, what would be the configuration setting?
> >
> > Disable chroot as per http://www.postfix.org/DEBUG_README.html#no_chroot
> > for all Postfix services, not only smtpd.
>
> Done. We'll see how it goes as soon as I can reboot.
> Thank you

No need to reboot. Just:

# postfix stop
# sleep 5
# postfix start

--
Viktor.

Tim Johnson

unread,
Nov 25, 2015, 3:32:03 PM11/25/15
to
* Viktor Dukhovni <postfi...@dukhovni.org> [151125 09:35]:
Thank you Victor. I referred to rebooting because of the issue
with the file /var/spool/postfix/etc/resolv.conf being empty on
reboot.
0 new messages