You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to automatically start postfix on boot?

I often need postfix to send e-mail. To use postfix I need to start postfix everytime manually via the Terminal commandline.
I would like to have postfix to be started automatically with booting.

Is this possible in Mac OS X Snow Leopard? How can it be done?

Macbook Pro, Mac OS X (10.6.5)

Posted on Jan 10, 2011 3:09 AM

Reply
5 replies

Jan 10, 2011 1:26 PM in response to laurens van vliet

I use this, in /Library/LaunchDaemons:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>smtp</string>
<key>ProgramArguments</key>
<array>
<string>/usr/libexec/postfix/master</string>
</array>
</dict>
</plist>

Depending on how you want it to work, you may also need to edit the config files in /etc/postfix.

Jan 10, 2011 2:21 PM in response to Linc Davis

There is already an org.postfix.master.plist file in /System/Library/LaunchDaemons
I had an old copy of Postfix Enabler from http://cutedgesystems.com/ but didn't appreciate having to buy a new program when Leopard came out, so I rolled my own. Here is my edited org.postfix.master.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.postfix.master</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/usr/libexec/postfix/master</string>
<key>ProgramArguments</key>
<array>
<string>master</string>
</array>
<key>QueueDirectories</key>
<array>
<string>/var/spool/postfix/maildrop</string>
</array>
</dict>
</plist>


This will enable you to send mail. You can setup your Mac to receive mail too, but that is a bit more involved.

How to automatically start postfix on boot?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.