Wednesday, May 10, 2006

Debugging Rails outgoing mail on a MacBook Pro

The need to test outgoing email from a rails app by actually sending the mail arose today. Trying to do this with a clean MacBook Pro gives:

computer-2:~/Projects/mailtest jonathan$ ./script/console Loading development environment. >> SystemNotifier.deliver_generic( 'test', 'test' ) postdrop: warning: unable to look up public/pickup: No such file or directory => # bodyport=
Some searching yielded this mail list link. With the salient command (which fixed everything when run once):
computer-2:~/Projects/mailtest jonathan$ sudo /usr/sbin/postfix start Password: postfix/postfix-script: starting the Postfix mail system

0 comments: