-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathREADME
More file actions
34 lines (21 loc) · 823 Bytes
/
README
File metadata and controls
34 lines (21 loc) · 823 Bytes
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
This is the free version of the MailHops API
By using this you must agree to the terms of use covered in http://www.mailhops.com/terms
This version does not include a database
Get the geoip file and unzip it
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
You can also setup a cron job to pull this monthly
$ crontab -e
#Sometimes maxmind updates on the 2nd others on the 6th
0 0 10 * * /var/www/geoip/cron_get_geoip.sh
Install Pear Libs
pear install Net_DNS2
pear install Net_DNSBL
pear install Net_GeoIP
pecl install mongo
Edit lib/MailHops.php
Set GEOIP_FILE
Set IMAGE_URL (optional)
Set DNS_SERVER (optional)
If you want to use a database, I would suggest signing up for mongolab.com
Set user/pass in lib/Connection.php
Set $db_on = true in lib/MailHops.com