forked from jrconlin/moz_push
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
54 lines (41 loc) · 1.89 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
SETUP and CONFIGURATION
To get an operational mail server, you'll need the following:
rhe: ubuntu:
yum install python-setuptools apt-get install python-setuptools
easy_install virtualenv easy_install virtualenv
yum install postfix apt-get install postfix
yum install db4-devel apt-get install libdb4.8++-dev
yum install openssl-devel apt-get install libssl-dev
yum install redis apt-get install redis-server*
// this package requires redis 2.4.2 or later Ubuntu currently distributes 1.2.0
yum install nginx apt-get install nginx
apt-get install git-core
apt-get install mercurial
apt-get install curl
apt-get install swig
apt-get install python-dev
install notifs server
For Redhat only:
$. bin/activate
$ sudo yum install openssl-devel
$ mkdir -p install
$ cd install
$ curl -O "http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.21.1.tar.gz"
$ tar -zxvf M2Crypto-0.21.1.tar.gz
$ M2Crypto-0.21.1.tar.gz fedora_setup.py
* Consider swapping out M2Crypto for something more sane
create session dirs
# mkdir -p -m=777 /tmp/notif_sessions/data
# mkdir -p -m=777 /tmp/notif_sessions/lock
start notifserver:
bin/gunicorn -w1 notifserver.run -t 3000 --log-file - --log-level info
install bipostal
bin/python src/bipostal.py --config=src/bipostal.ini
bin/python src/bipostmap.py --config=src/bipostmap.ini
update nginx config from ./etc/nginx
cp ./etc/notifserver to /etc/notifserver
PostFix Configuration
// Modify /etc/postfix/master.cf
canonical_maps = tcp:localhost:9998
smtpd_milters = inet:localhost:9999
non_smtpd_milters = inet:localhost:9999