<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I think I shared this before, but I’m not certain so I am doing so now (again).<div class=""><br class=""></div><div class="">The MacPorts postfix master process will not launch reliably at boot if it is set up with ‘port load postfix’. The reason for the unreliable boot is that macOS during boot for about 60 seconds or so claims port 25 (and 587) because it launches its own postfix, then quickly kills it. When Apple’s postfix master launches first (there is no control in launchd what launches first) this can block the MacPorts version, which then fails. </div><div class=""><div class=""><br class=""></div><div class=""><div class="">By changing /etc/postfix/master.cf of Apple’s postfix the boot by MacPorts launches reliably.</div><div class=""><br class=""></div><div class="">This means patching Apple’s files, which I frown upon, but I’m still using Mojave and I think Apple updates leave master.cf alone and macOS itself doesn’t really use postfix, it is a leftover. I don’t know if this is still possible in later versions of macOS. If it isn’t because Apple has locked these down, a more intelligent startup command could be written that works around this macOS behaviour.</div></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">14,15c14,16</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">< smtp inet n - n - 1 postscreen</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">< smtpd pass - - n - - smtpd</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">---</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">> # GW: Commented postscreen, smtpd commands as Apple's postfix master gets run for 60 sec at boot</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">> #smtp inet n - n - 1 postscreen</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">> #smtpd pass - - n - - smtpd</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">18,19c19,20</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">< submission inet n - n - - smtpd</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">< -o smtpd_tls_security_level=encrypt</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">---</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">> #submission inet n - n - - smtpd</span></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">> # -o smtpd_tls_security_level=encrypt</span></div><div style="font-family: Menlo; font-size: 11px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 11px;" class=""><span style="font-family: Helvetica; font-size: 12px;" class="">Yours,</span></div><div style="font-family: Menlo; font-size: 11px;" class=""><span style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></span></div><div style="font-family: Menlo; font-size: 11px;" class=""><span style="font-family: Helvetica; font-size: 12px;" class="">G</span></div></div></div></div></body></html>