Fork/Hack on Pony Mail

Apache Pony Mail™ (Incubating)

Installing Pony Mail on Debian Jessie:

Start by installing the following Debian packages:

sudo apt-get install apache2 git lua-cjson lua-sec lua-socket python3 python3-pip

Install the required Python 3 modules:

sudo pip3 install elasticsearch formatflowed netaddr

Install ElasticSearch:

sudo apt-get install openjdk-7-jre-headless
wget -qO - | sudo apt-key add -
echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
sudo apt-get update && sudo apt-get install elasticsearch

Check out a copy of Pony Mail:

cd /var/www
sudo git clone

Start up ElasticSearch:

sudo service elasticsearch start

Set up Pony Mail:

cd /var/www/ponymail/tools
sudo python3
[... answer questions asked by the setup script ...]

Set up Apache httpd by adding, for example, the following virtual host configuration:

    DocumentRoot /var/www/ponymail/site
    AddHandler      lua-script .lua
    LuaScope        thread
    LuaCodeCache    stat
    AcceptPathInfo  On

Enable mod_lua and start apache:

sudo a2enmod lua
sudo service apache start

Once this is done, you should now have a working copy of Pony Mail!

You may wish to tweak the settings in site/js/config.js and your elasticsearch settings once Pony mail is up and running.

Refer to the General installation documentation for detailed information about archiving messages, OAuth, mail settings and much more.


Apache Pony Mail (Incubating) is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Apache Incubator
About the ASF
Code of Conduct
Become a Sponsor