Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can start Postfix temporarily with:

$ sudo launchctl
launchd% start org.postfix.master

However, 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.

share|improve this question
up vote 30 down vote accepted

The following changes worked for me:

  1. Remove the following two elements from /System/Library/LaunchDaemons/org.postfix.master.plist:


    This will stop it exiting after 60 seconds.

  2. Add the following element as a child of the <dict>...</dict> element in the same plist file:

  3. Reload the file:

    sudo launchctl unload /System/Library/LaunchDaemons/org.postfix.master.plist 
    sudo launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist

postfix should now be running as a daemon.

The above works on Mountain Lion, Mavericks and Yosemite too.

share|improve this answer
Worked for me on Mavericks, but I had to put the full file path in to load it: sudo launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist – rich Apr 9 '14 at 16:55
There was a cd /System/Library/LaunchDaemons line in there before the unload and load that may have been missed. I inlined the full path to make it clearer. – Jim Stewart Jun 22 '15 at 19:58

i had to type "sudo postfix start" to mke it words instead of launchtl load stuff from mjturner; don't know why ...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.