-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
68 lines (53 loc) · 2.55 KB
/
INSTALL
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
MailCaptcha
===========
This app is partially an web2py plugin - but need a non-plugin task file for
scheduling sender and admin notifications.
Installing the web2py application
----------------------------------
Get it from github and clone it to web2py applications directory:
git clone https://szimszon@github.com/szimszon/web2py_mailcaptcha.git mailcaptcha
You should have a registered user to set up the MailCaptcha with the
Mailcaptcha -> Settings menu
Webserver url: Like: "https://mailcaptcha.domain.com/", don't put application name at the end
Web page message: Web e-mail approval page message
Web page successful message: Web e-mail approval successful message
Mail server: The mail server for sending the notifications
Mail sender: The sender of the notifications
Mail login: If you need a login to send e-mails
Mail subject: Approval mail subject
Mail text: Approval mail body
Admin approval subject: Notification subject about the admin approved the e-mail address
Admin approval text: Notification body about the admin approved the e-mail address
Mail notify recipient: Admin notification recipient
Mail notify subject: Admin notification subject
Mail notify text: Admin notification body
defer_if_permit reply text: The message the mail system should send if message is deferred
reject reply text: The message the mail system should send if message is rejected due the blacklist
Listening hostname: The host where the MailCaptcha policyd should listen on
Listening port: The port where the MailCaptcha policyd should listen on
Queue entry timeout: The time the queue entry (sender e-mail address) is valid
You should have a scheduler process set up for mailcaptcha to.
Set up a scheduler task with
Function name: plugin_mailcaptcha_del_old_queue_entries
Installing the MailCaptcha policyd
----------------------------------
There is a python script in mailcaptcha/private/:
mailcaptcha.py
It should be run with the web2py environment like:
python ./web2py.py -R applications/mailcaptcha/private/mailcaptcha.py -S mailcaptcha -M
There is an init script for that:
mailcaptcha/private/web2py-mailcaptcha
You should adjust some of the variables in the beginning of the script.
Postfix setup
-------------
Add to the main.cf:
smtpd_recipient_restrictions =
...
reject_unauth_destination
check_policy_service inet:<Listening hostname>:<Listening port>
...
Set up the protected e-mail addresses
--------------------------------------
It can be done through the
Mailcaptcha -> Apply on
menu.