I can start Postfix temporarily with:
$ sudo launchctl
launchd% start org.postfix.master
However, Console.app shows that it only runs for a short time:
26/11/11 2:00:55.710 PM postfix/master: master exit time has arrived
I think the file /System/Library/LaunchDaemons/org.postfix.master.plist needs to be updated to make Postfix run permanently, but I haven't found the answer yet.
What's the correct way of getting Postfix starting at boot time and running permanently?
Update In order to edit the file as recommended by the selected answer, I first converted it to XML.
plutil -convert xml1 /System/Library/LaunchDaemons/org.postfix.master.plist
Then just edited it with Vim:
sudo vim /System/Library/LaunchDaemons/org.postfix.master.plist
I had issues trying to get Xcode to edit the file.
cd /System/Library/LaunchDaemons
line in there before theunload
andload
that may have been missed. I inlined the full path to make it clearer. – Jim Stewart Jun 22 '15 at 19:58/System/Library/LaunchDaemons/org.postfix.master.plist
is no longer editable. Suggestions? – Chris Withers Nov 23 '16 at 23:42org.postfix.master.plist
is renamed tocom.apple.postfix.master.plist
. Maybe you may want to add that to the answer. – Utku Dec 19 '17 at 00:21<key>RunAtLoad</key> <true/>
in order to get it to startup on boot (on High Sierra) – Jimbo Jan 17 '18 at 00:10launchctl
from Terminal. Is there a way to make macOS (I'm on 10.12) run the modified version of Postfix automatically on startup without messing with SIP? – forthrin Mar 31 '18 at 19:02