notes about postfix on a mac

by default, the postfix master command runs periodically (or is it once?) and exits after 60 seconds.

postfix launchd configuration file

the launchd configuration file is:

* /System/Library/LaunchDaemons/org.postfix.master.plist *

to launch the postfix daemon manually, one can do: * sudo /usr/sbin/postfix start *

to cause postfix to launch at boot

add the following to: * /System/Library/LaunchDaemons/org.postfix.daemon.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>
                <string>-e</string>
                <string>60</string>
        </array>
        <key>QueueDirectories</key>
        <array>
                <string>/var/spool/postfix/maildrop</string>
        </array>
      </dict>
      </plist>

to reload the service:

sudo launchctl stop org.postfix.daemon
sudo launchctl unload /System/Library/LaunchDaemons/org.postfix.daemon.plist
sudo launchctl load /System/Library/LaunchDaemons/org.postfix.daemon.plist
sudo launchctl start org.postfix.daemon