-
Notifications
You must be signed in to change notification settings - Fork 169
Homebrew Test
James Hillyerd edited this page Mar 17, 2016
·
11 revisions
Inbucket is not (yet) part of Homebrew, so some extra steps are required to install the formula first. Note that the launch at startup commands provided by Homebrew are for running as the root user, which is not necessary.
curl -L -o inbucket.rb https://raw.githubusercontent.com/jhillyerd/inbucket/develop/etc/homebrew/inbucket.rb
mv inbucket.rb /usr/local/Library/Formula/
brew install --HEAD inbucket
mkdir -p ~/Library/LaunchAgents
cp /usr/local/opt/inbucket/*.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.inbucket.plist
cat /usr/local/var/log/inbucket.log
Confirm Inbucket started, you should see [INFO ]
statements, but no [ERROR]
ones.
Run telnet localhost 2500
and paste the following into your terminal:
HELO localhost
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
From: [email protected]
To: [email protected]
Subject: Test Message
This is a test message from the command line.
.
QUIT
(you may need to press return to transmit the final QUIT)
Check that "friend" received your message: http://localhost:9000/mailbox?name=friend
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.inbucket.plist
rm ~/Library/LaunchAgents/homebrew.mxcl.inbucket.plist
brew uninstall inbucket
rm /usr/local/etc/inbucket.conf /usr/local/var/log/inbucket.log
rm -rf /usr/local/var/inbucket
rm /usr/local/Library/Formula/inbucket.rb