<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4672&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Boot delay at MTA start]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4672</link>
		<description><![CDATA[The most recent posts in [SOLVED] Boot delay at MTA start.]]></description>
		<lastBuildDate>Fri, 12 Nov 2021 16:24:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Boot delay at MTA start]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32775#p32775</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>... a (not too) short delay at &quot;Starting MTA:&quot; ...<br />... (as I understand it) Exim4 is doing a check on something.<br />... a way to make VBox start the VM sooner and maybe delay Exim4?</p></div></blockquote></div><p>Rather dissapointed to see that I&#039;m probably the only one here using Pi-hole on a VM. 8^P</p><p>But I digress, so to the point:</p><p>The problem was <em>not</em> caused by the VBox VM / Exim4 starting order but by Exim4&#039;s default configuration / installation process / whatever.<br />ie: Exim4 was not waiting for the virtual machine to start but was obviously attempting to do <em>something</em> and not being able to do it.<br />Hence the delay at boot.</p><p>I really did not want to but finally ended up diving into the Exim4 configuration files.</p><p>On the suggestion of a (very kind) member of the exim-users list, I was given instructions for changing the 30s value on <span class="bbc">daemon_startup_sleep</span> but that did not solve the problem.</p><p>While I was at it, I also tried playing with the reverse DNS values, including remming the whole reverse DNS block, also to no avail.<br />This left me with the impression that the problem (30s delay) was not at all related to the reverse DNS done by Exim4 or the <span class="bbc">daemon_startup_sleep</span> value.</p><p>A last minute complete reinstall of Exim4 (typical MS strategy I <span class="bbu">really</span> loathe) did not work either.</p><p>tl;dr</p><p>The solution was to add &#039;this&#039; line to the the &#039;Main&#039; section of the file <span class="bbc">exim4.conf.template</span>:</p><div class="codebox"><pre><code>disable_ipv6 = true</code></pre></div><p>But I had to add it: it was not there by default.<br />ie: not <span class="bbc">disable_ipv6 = false</span>, <span class="bbc">disable_ipv6 = true</span> or even <span class="bbc">disable_ipv6 =</span> so it would come up (?) when running <span class="bbc">dpkg-reconfigure exim4-config</span>.</p><p>I was just shooting in the dark, no memory of how I got to doing that.<br />It was late, I was tired, cannot remember.</p><p>Probably the paniclog message I had not seen before?</p><p>In any case, to me this is another Exim4 bug.<br />I see it as a bug because this is happening even after a clean Exim4 installation on a Devuan installation with IPv6 disabled everywhere:</p><p>1.<br />The kernel command line includes the bit needed to disable ipv6 at boot:</p><div class="codebox"><pre><code>ipv6.disable=1</code></pre></div><p>2.<br />The <span class="bbc">/etc/hosts</span> file has no machine readable IPv6 lines:</p><div class="codebox"><pre><code>groucho@devuan:~$ cat /etc/hosts
#
127.0.0.1         localhost  devuan
#
# remmed to disable ip6
#::1              localhost       ip6-localhost ip6-loopback
#fe00::0          ip6-localnet
#fe00::0          ip6-mcastprefix
#fe02::1          ip6-allnodes
#fe02::1          ip6-allrouters
groucho@devuan:~$ </code></pre></div><p>3.<br />The <span class="bbc">/etc/ssh/ssh_config</span> file includes the line needed to disable ipv6:</p><div class="codebox"><pre><code>groucho@devuan:~$ cat /etc/ssh/ssh_config
--- snip ---
AddressFamily inet     # instead of &#039;any&#039; or &#039;inet6&#039;
--- snip ---
groucho@devuan:~$</code></pre></div><p>So that was it, Exim4 was attempting to do <em>something</em> on IPv6 but not being able to do it.<br />In spite of IPv6 being <span class="bbu">disabled</span> at the kernel command line, <span class="bbc">/etc/hosts</span> and <span class="bbc">/etc/ssh/ssh_config</span>.</p><p>The end result being a 30s delay at boot.</p><p>Have a good week-end.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 12 Nov 2021 16:24:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32775#p32775</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Boot delay at MTA start]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32761#p32761</link>
			<description><![CDATA[<p>Hello:</p><p>Like mentioned in another thread, I am running Pi-Hole v5.6 - FTL v5.11 - Web Interface v5.8 on a virtual machine as a recursive DNS for my Linux box.</p><p>The Devuan ascii virtual machine is set up to start up automatically when I boot.<br />I have set the cache on Pi-hole to a value of &#039;0&#039; so caching is all done by Unbound.<br />It uses the default list and I have added others.<br />The rig is not kept on 24/07 but is booted up a few times every 24 hours.</p><p>From what I can see it is working properly and Pi-Hole diagnostics declare no issues but there&#039;s a &#039;snag in the weave&#039; so to speak:</p><p>When booting, I&#039;m getting a (not too) short delay at &quot;Starting MTA:&quot; which is when (as I understand it) Exim4 is doing a check on something.</p><p>After a delay of ~30/40s, the MTA resumes loading and then exim4 starts and everything works as expected.<br />ie: after it finds the virtual machine.</p><p>I then log in and have to wait a bit for Pi-hole to come up and start working, but it is just 5s, so no big deal.</p><p>But the 30/40s delay at boot <em>is</em> rather annoying.</p><p>Exim4 wants to <em>see</em> the virtual machine, seems it is to do a reverse DNS lookup which can only do if the VM is up and running.</p><p>I have not been able to find a way for exim4 to not do this.</p><p>Now, nothing tries to send email to this system.<br />The MTA only receives system messages which help me keep tabs on what is going on. eg: crontab failures, warnings from other applications.</p><p>I would like to avoid having to delve into Exim4&#039;s innards which are a real nightmare.</p><p>Is there a way to make VBox start the VM sooner and maybe delay exim4? </p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 11 Nov 2021 21:06:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32761#p32761</guid>
		</item>
	</channel>
</rss>
