Created
November 16, 2009 00:17
-
-
Save thomd/235597 to your computer and use it in GitHub Desktop.
install a local POP3 server on OSX serving the system mailbox as a POP3 account.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# install a local POP3 server on OSX serving the system mailbox as a POP3 account. | |
# | |
# get pre-compiled OS X binaries of UW's (University of Washington) ipop3d and imapd. | |
cd ~ | |
curl -L -O http://www.macosxguru.net/downloads/localmail.zip | |
unzip localmail.zip | |
rm localmail.zip | |
# setup the POP3 service | |
sudo mkdir -p /usr/local/libexec | |
sudo cp ~/localmail/ipop3d /usr/local/libexec/ipop3d | |
sudo chown root:wheel /usr/local/libexec/ipop3d | |
sudo chmod 755 /usr/local/libexec/ipop3d | |
# create a loadable service for POP3 | |
sudo cp ~/localmail/edu.washington.pop3.plist /Library/LaunchDaemons/edu.washington.pop3.plist | |
sudo chmod 644 /Library/LaunchDaemons/edu.washington.pop3.plist | |
# load POP3 service | |
sudo launchctl unload -w /Library/LaunchDaemons/edu.washington.pop3.plist | |
sleep 2 | |
sudo launchctl load -w /Library/LaunchDaemons/edu.washington.pop3.plist | |
# for testing, connect to port 110 (pop3 default) on localhost: | |
# > telnet localhost 110 | |
rm -R localmail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment