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


Click here to return to the '10.3: Enable the postfix Mail Transfer Agent' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Enable the postfix Mail Transfer Agent
Authored by: sciamachy on May 06, '05 09:04:50AM

Does anyone know how to do this in 10.4? Apparently Tiger has no MAILSERVER=-NO- line in /etc/hostconfig, yet it's turned off by default. Strategy to get us all to buy the server OS, maybe? :-(



[ Reply to This | # ]
10.3: Enable the postfix Mail Transfer Agent
Authored by: stephendv on May 14, '05 08:02:30AM
Under Tiger, Postfix is started using the new launchd service and doesn't require an entry in /etc/hostconfig. Edit the postfix specific files as described in this hint, then make a backup copy of the file /System/Library/LaunchDaemons/org.postfix.master.plist and replace this file with the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTD
s/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>org.postfix.master</string>
        <key>RunAtLoad</key>
        <true/>
        <key>OnDemand</key>
        <false/>
        <key>Program</key>
        <string>/usr/libexec/postfix/master</string>
        <key>ProgramArguments</key>
        <array>
                <string>master</string>
                <string>-e</string>
                <string>60</string>
        </array>
</dict>
</plist>
To restart postfix, cd to /System/Library/LaunchDaemons and execute the command:

sudo launchctl unload org.postfix.master.plist
sudo launchctl load org.postfix.master.plist
This works on my system, but I'm no expert in launchd, so there may be a better way of doing it.

[ Reply to This | # ]