Tuesday, August 3, 2010

Localhost postfix relay on OS X


sudo vi /System/Library/LaunchDaemons/org.postfix.master.plist



<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>
<!--string>-e</string-->
<!--string>60</string-->
</array>
<key>QueueDirectories</key>
<array>
<string>/var/spool/postfix/maildrop</string>
</array>
<key>AbandonProcessGroup</key>
<true>
<key>RunAtLoad</key>
<true/>
<key>OnDemand</key>
<false/>
<key>KeepAlive</key>
</true>
</dict>
</plist>



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