<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — postfix service not starting after ubuntu server release 22.04->24.04]]></title>
		<link>https://forum.iredmail.org/topic21135-postfix-service-not-starting-after-ubuntu-server-release-22042404.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21135.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in postfix service not starting after ubuntu server release 22.04->24.04.]]></description>
		<lastBuildDate>Wed, 06 May 2026 01:14:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: postfix service not starting after ubuntu server release 22.04->24.04]]></title>
			<link>https://forum.iredmail.org/post91928.html#p91928</link>
			<description><![CDATA[<p>Do you have file /usr/lib/systemd/system/postfix.service and /etc/systemd/system/multi-user.target.wants/postfix.service?</p><p>If not, try to re-install Postfix packages to generate them:<br /></p><div class="codebox"><pre><code>apt reinstall postfix</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 06 May 2026 01:14:22 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91928.html#p91928</guid>
		</item>
		<item>
			<title><![CDATA[Re: postfix service not starting after ubuntu server release 22.04->24.04]]></title>
			<link>https://forum.iredmail.org/post91925.html#p91925</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>what&#039;s the error message in /var/log/maillog when you sent or received an email?</p></blockquote></div><p>Thanks for your response!</p><p>Looking at /var/log/maillog right now, I&#039;m not seeing any error messages. It appears to be receiving mail and making connections and routing messages appropriately.</p><p>When I try to run systemctl restart postfix, I don&#039;t see error messages in /var/log/maillog either. </p><p>The issue at this time is that the postfix service seems to have a problem preventing it from running automatically at boot or when trying to restart it.&nbsp; It did not start fully (postfix was not running and listening on ports 587 and 25 after a server reboot, and even after running systemctl postfix restart, and I could previously see the error message when running &quot;systemctl status postfix*&quot; </p><div class="codebox"><pre><code> Process: 33330 ExecStartPre=/usr/lib/postfix/configure-instance.sh - (code=exited, status=1/FAILURE)</code></pre></div><p>The thing that worked was to manually run &quot;postfix start&quot; which allowed me to send and receive mail, but I suspect if I reboot the server, I would have to manually start postfix again because of the inability to fully start the service.</p><p>Also, it&#039;s weird that doing &quot;systemctl status postfix*&quot; now gives the error messages about missing units, when it was previously showing me the status with the error message about exiting script configure-instance.sh. </p><p>I have been searching all over the internet for any other hints at what could be going on, or additional logs/troubleshooting steps, but so far coming up short.</p>]]></description>
			<author><![CDATA[null@example.com (natec)]]></author>
			<pubDate>Tue, 05 May 2026 17:00:03 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91925.html#p91925</guid>
		</item>
		<item>
			<title><![CDATA[Re: postfix service not starting after ubuntu server release 22.04->24.04]]></title>
			<link>https://forum.iredmail.org/post91922.html#p91922</link>
			<description><![CDATA[<p>what&#039;s the error message in /var/log/maillog when you sent or received an email?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 05 May 2026 04:24:37 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91922.html#p91922</guid>
		</item>
		<item>
			<title><![CDATA[postfix service not starting after ubuntu server release 22.04->24.04]]></title>
			<link>https://forum.iredmail.org/post91921.html#p91921</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.8.0 maria db<br />- Deployed with iRedMail Easy or the downloadable installer? downloadable installer<br />- Linux/BSD distribution name and version: Ubuntu server 20.04-&gt;22.04-&gt;22.04 (problem after do_release_upgrade 22.04-&gt;24.04. <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql<br />- Web server (Apache or Nginx): nginx<br />- Manage mail accounts with iRedAdmin-Pro? no pro<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====<br />(I can&#039;t post links, but hopefully my references make sense)</p><p>Last Friday, I upgraded from 20.04 to 22.04 successfully following the directions on iredmail forum topic20565-direct-upgrade-ubuntu-2004-to-2204-guide.html</p><p>Then, today I upgraded from 22.04 to 24.04 using the instructions: iredmail docs upgrade.ubuntu.22.04-24.04.html</p><p>After finishing the release upgrade and rebooting the server on 24.04, and going through the install process again for iredapd, iredadmin and mlmmjm I was unable to send or receive mail but I was also unable to resolve domain names.</p><p>I was able to find another instance of this happening on an OpenVZ system where the user does not have the ability to update the kernel (currently running the 5.4.0) and it looked like the only option at this time was to stop using systemd-resolved, due to an issue in systemd-resolved on 24.04 systems running in OpenVZ: the github site /systemd/systemd/issues/34580</p><div class="codebox"><pre><code>#fix dns resolution after update to 24.04 by disabling systemd-resolved
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
sudo rm /etc/resolv.conf
sudo nano /etc/resolv.conf

#paste in /etc/resolv.conf
nameserver 8.8.8.8
nameserver 1.1.1.1</code></pre></div><p>Making that change allowed me to resolve DNS and ping google.com.</p><p>So back to the mail issue. <br />There was nothing happening in /var/log/mail.log (because as I found out later, postfix wasn&#039;t running). </p><p>Running &quot;lsof -i -P -n | grep LISTEN&quot; didn&#039;t reveal anything listening on ports 25 or 587, but I could see dovecot on 993/995/143/110. </p><p>systemctl status postfix: <br /></p><div class="codebox"><pre><code>postfix.service - Postfix Mail Transport Agent
     Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; preset: enabled)
     Active: active (exited) since Tue 2026-05-05 01:37:36 UTC; 45min ago
       Docs: man:postfix(1)
    Process: 33358 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 33358 (code=exited, status=0/SUCCESS)</code></pre></div><p>but there was an error message in systemctl status postfix*</p><div class="codebox"><pre><code> postfix@-.service - Postfix Mail Transport Agent (instance -)
     Loaded: loaded (/usr/lib/systemd/system/postfix@.service; enabled-runtime; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2026-05-05 01:37:36 UTC; 9s ago
       Docs: man:postfix(1)
    Process: 33330 ExecStartPre=/usr/lib/postfix/configure-instance.sh - (code=exited, status=1/FAILURE)</code></pre></div><p>I was able to run: </p><div class="codebox"><pre><code>postfix start</code></pre></div><p>Then I started seeing successful messages in /var/log/mail.log and I could see master<br />running and listening on 25 and 587.&nbsp; </p><p>postfix check<br /></p><div class="codebox"><pre><code>postfix: Postfix is using backwards-compatible default settings
postfix: See postfixorgwebsite /COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use &quot;postconf compatibility_level=3.6&quot; and &quot;postfix reload&quot;
postfix/postfix-script: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libgcc_s.so.1 and /lib/x86_64-linux-gnu/libgcc_s.so.1 differ</code></pre></div><p>I copied my resolv.conf and x86_64-linux-gnu/libgcc_s.so.1 into the postfix CHROOT in the appropriate locations, and then running postfix check stopped giving the two warnings, and only the messages about backwards compatibility. </p><p>But after running systemctl stop postfix and systemctl start postfix, I was still seeing the same error message in systemctl status postfix*.</p><p>I tried running /usr/lib/postfix/configure-instance.sh manually to see if I could see any error message output and there was no output, but now when I run the command again, it&#039;s giving different output: <br />systemctl status postfix*<br /></p><div class="codebox"><pre><code>Unit postfix-mysql.so.service could not be found.
Unit postfix-pcre.so.service could not be found.
Unit postfix_groups.pl.service could not be found.</code></pre></div><p>tail -200 /etc/postfix/dynamicmaps.cf<br /></p><div class="codebox"><pre><code># dict-type     so-name (pathname)      dict-function   mkmap-function
pcre    postfix-pcre.so dict_pcre_open
mysql   postfix-mysql.so        dict_mysql_open</code></pre></div><p>postconf -m also still shows mysql and pcre in the list. </p><p>So now I have mail sending and receiving working again, but I think something with postfix is still borked and I&#039;m afraid to restart my server. </p><p>checking the processes that are listening on 25 and 587 again now, it looks like it has changed and postscree (postscreen?) is listening on 25 and smtpd is listening on 587, which I&#039;m pretty sure is different from what I saw after I first ran &quot;postfix start&quot;. </p><p>I have a full backup from before the upgrade on 20.04-&gt;22.04 that I could restore, or I could backup the databases and vmail and DKIM and do a VM reinstall from scratch and then migration and reinstall and restore when I have more time in a few days, but I was hoping that this was something that I could figure out and kick a full reinstall down the road further.</p><p>Thanks for any other ideas or hints you might have,<br />natec</p>]]></description>
			<author><![CDATA[null@example.com (natec)]]></author>
			<pubDate>Tue, 05 May 2026 04:13:14 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91921.html#p91921</guid>
		</item>
	</channel>
</rss>
