<?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=7258&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] OpenSMTP starting too soon]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7258</link>
		<description><![CDATA[The most recent posts in [SOLVED] OpenSMTP starting too soon.]]></description>
		<lastBuildDate>Tue, 24 Jun 2025 02:50:28 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] OpenSMTP starting too soon]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56244#p56244</link>
			<description><![CDATA[<p>I have learned a bunch today!&#160; Most important is that the ifupdown package contains some important scripts that can cause headaches if they aren&#039;t there, even if you have no use for ifupdown to manage your interfaces.&#160; settle-dad.sh and wait-for-ll6.sh in /usr/lib/ifupdown/, for example, wait for an ipv6 interface to leave the tentative state and get a link-local address so any following processes have a usable interface.&#160; Eureka!</p><p>Edit #1: In fact, even if ifupdown&#039;s interfaces file is empty, it will still go all the way to configuring and &quot;ifup-ing&quot; the loopback.&#160; The scripts mentioned above are probably part of the ifup process.&#160; Setting CONFIGURE_INTERFACES=no in /etc/default/networking skips this (but then you might as well purge the package).</p>]]></description>
			<author><![CDATA[dummy@example.com (User479)]]></author>
			<pubDate>Tue, 24 Jun 2025 02:50:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56244#p56244</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] OpenSMTP starting too soon]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56229#p56229</link>
			<description><![CDATA[<p>As a side issue I will add that when I first started researching this I had, in /etc/rc?.d/, links for S03opensmtpd &amp; S04network-manager, which is why openstmpd was starting before network manager despite openstmpd being dependent on network manager.&#160; I disabled and enabled network manager and then had S04network-manager &amp; S14opensmtpd - which is the expected order.&#160; cron &amp; rsync also changed from S03 to S14.</p><p>I think this points to a problem somewhere with the way the init links are maintained.&#160; Perhaps there should be a process that resets their order anytime a script is added/changed/deleted during an upgrade (while preserving the state of manually disabled services).</p>]]></description>
			<author><![CDATA[dummy@example.com (User479)]]></author>
			<pubDate>Mon, 23 Jun 2025 13:02:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56229#p56229</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] OpenSMTP starting too soon]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56216#p56216</link>
			<description><![CDATA[<p>The system here is on Excalibur with SysV init.&#160; I&#039;ve run into a situation where OpenSMTP fails during system startup.&#160; The logged messages are:</p><div class="codebox"><pre><code>smtpd[4364]: info: OpenSMTPD 7.6.0-portable starting
smtpd[4369]: dispatcher: smtpd: bind: Cannot assign requested address
smtpd[4365]: smtpd: process dispatcher socket closed</code></pre></div><p>If I start the service after booting is complete it works fine.&#160; I think the problem must stem from the fact that opensmtp (which listens on localhost) is started before NetworkManager can initialize the loopback interface.&#160; Ifupdown is not currently installed but had been.</p><p>The init script includes $network in the Required-Start list so this condition is apparently being satisfied even before NM has been started.&#160; I have tried changing Required-Start to $all and that does delay the start of opensmtp until just after network-manager has started but the loopback interface has still not been initialized at that point so opensmtp still fails.</p><p>What is kinda weird is that this behavior started after I purged the ifupdown package.&#160; The interfaces files was empty so ifupdown should not have been doing anything but it&#039;s almost like it was initializing loopback anyway.&#160; I have syslogs from that period and they show opensmtp happily starting before network-manager with about 0.25 seconds elapsing before loopback is initialzed!</p><p><del>Is there a way to make the init wait until NM has completed initializing all interfaces before starting the dependent scripts?&#160; As a temporary? workaround, I have added a &quot;sleep 5&quot; in the start code of opensmtp&#039;s init script.</del></p><p>Edit #1: I found that if I have opensmtpd listen on 127.0.0.1 instead of localhost then it will start (without Network Manager).&#160; If I have it listen on ::1 then it still fails with the error above.&#160; Listening on localhost caused it to try to listen on both those addresses - apparently it is ok at that point with ipv4 but not ipv6.</p><p>Edit #2: On another system I found that after purging ifupdown, dovecot won&#039;t start either (until after network manager inits the interfaces).&#160; It can no longer bind to ::1,443 and ::1,993.&#160; It seems like I am zeroing-in on the root cause.</p>]]></description>
			<author><![CDATA[dummy@example.com (User479)]]></author>
			<pubDate>Sun, 22 Jun 2025 14:23:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56216#p56216</guid>
		</item>
	</channel>
</rss>
