We'll respond shortly.
If you want to send SMTP mail via localhost on Mac OSX Leopard (for example, from ActiveRecord/Rails/CruiseControl.rb/etc), you need to run postfix at boot. This took me a quite a while to figure out, so here is what worked for me on a work-imaged box and my personal box. YMMV.
fatal: file /opt/local/etc/postfix/main.cf: parameter mail_owner: user postfix has same user ID as _postfix
fatal: open /usr/local/etc/postfix/main.cf: No such file or directory
fatal: open /opt/local/etc/postfix/main.cf: No such file or directory
$ sudo port uninstall postfix
sudo port list postfix“, even though the uninstall was apparently successful. I don’t know enough about MacPorts to know why, maybe this is reporting the Leopard-installed one???
$ sudo vi /System/Library/LaunchDaemons/org.postfix.master.plist`
<key>RunAtLoad</key> <true> <key>OnDemand</key> </true><false> </false>
$ telnet localhost 25
Trying ::1... telnet: connect to address ::1: Connection refused Trying fe80::1... telnet: connect to address fe80::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 citestbox.localhost ESMTP Postfix
And that was it! CruiseControl.rb was now sending email from OSX, which was all I really wanted in the first place…