Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Create a persistent postfix System 10.4
I run a local postfix on my machine, and in 10.3, I had to modify /etc/hostconfig to tell the OS to run postfix upon boot. I upgraded to Tiger today, and it would no longer start upon boot. 10.4 relies on launchd for crond, as well as a bunch of service launching. Stock, postfix is set to run every minute if there are any files in /var/spool/postfix/maildrop. But I like a livelier postfix.

The plist that is configuring postfix under launchd is called org.postfix.master.plist, located in /System/Library/LaunchDaemons. You can either run the Property List Editor as root and remove the two ProgramArguments entries for -e and 60, as well as the whole QueueDirectories field, or just use su or sudo and replace the file with this 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>Program</key>
        <string>/usr/libexec/postfix/master</string>
        <key>ProgramArguments</key>
        <array>
                <string>master</string>
        </array>
</dict>
</plist>

After this , you can either just restart, or reload the service like so:
% sudo launchctl stop org.postfix.master
% sudo launchctl unload /System/Library/LaunchDaemons/org.postfix.master.plist
% sudo launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist
% sudo launchctl start org.postfix.master
[robg adds: Sorry for the scrolling DIV area, but it's the best way I've thought of to handle long rows of text that can't be broken in short code snippets (any other ideas?). To use the sample code, just click once in the box, select all, and copy...]
    •    
  • Currently 3.67 / 5
  You rated: 4 / 5 (6 votes cast)
 
[42,621 views]  

10.4: Create a persistent postfix | 3 comments | Create New Account
Click here to return to the '10.4: Create a persistent postfix' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Create a persistent postfix
Authored by: MtnBiker on May 15, '05 09:23:07PM

Rob
This one was only a three or four rows longer, so maybe just let it be long; but you have to draw the line somewhere

Otherwise put on separate page like you do for long postings.

---
Hermosa Beach, CA USA



[ Reply to This | # ]
10.4: Create a persistent postfix
Authored by: MJCube on May 15, '05 11:54:54PM

I think the scrolling div is the best way. Right away it looks obvious to me how to select it all & copy.



[ Reply to This | # ]
10.4: Create a persistent postfix
Authored by: SentientToad on May 16, '05 06:21:38AM
You forgot the following key in the plist file: without it, launchd will not actually start postfix on system boot.

        <key>OnDemand</key>
                <false/>


[ Reply to This | # ]