Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
install a local POP3 server on OSX serving the system mailbox as a POP3 account.
#!/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