9c655416 |
1 | <?php |
4b4abf93 |
2 | |
9c655416 |
3 | /** |
4 | * Message and Spam Filter Plugin - Setup script |
5 | * |
c4faef33 |
6 | * @copyright 1999-2020 The SquirrelMail Project Team |
9c655416 |
7 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
4b4abf93 |
8 | * @version $Id$ |
9c655416 |
9 | * @package plugins |
10 | * @subpackage filters |
11 | */ |
12 | |
13 | /** |
14 | * Imap connection control |
15 | * |
16 | * Set this to true if you have problems -- check the README file |
17 | * Note: This doesn't work all of the time (No idea why) |
18 | * Seems to be related to UW |
19 | * @global bool $UseSeparateImapConnection |
20 | */ |
9c655416 |
21 | $UseSeparateImapConnection = false; |
22 | |
23 | /** |
24 | * User level spam filters control |
25 | * |
26 | * Set this to false if you do not want the user to be able to enable |
27 | * spam filters |
28 | * @global bool $AllowSpamFilters |
29 | */ |
9c655416 |
30 | $AllowSpamFilters = true; |
31 | |
32 | /** |
33 | * SpamFilters YourHop Setting |
34 | * |
35 | * Set this to a string containing something unique to the line in the |
36 | * header you want me to find IPs to scan the databases with. For example, |
37 | * All the email coming IN from the internet to my site has a line in |
38 | * the header that looks like (all on one line): |
39 | * Received: [from usw-sf-list1.sourceforge.net (usw-sf-fw2.sourceforge.net |
40 | * [216.136.171.252]) by firewall.persistence.com (SYSADMIN-antispam |
41 | * 0.2) with |
42 | * Since this line indicates the FIRST hop the email takes into my network, |
43 | * I set my SpamFilters_YourHop to 'by firewall.persistence.com' but any |
44 | * case-sensitive string will do. You can set it to something found on |
45 | * every line in the header (like ' ') if you want to scan all IPs in |
46 | * the header (lots of false alarms here tho). |
47 | * @global string $SpamFilters_YourHop |
48 | */ |
9c655416 |
49 | $SpamFilters_YourHop = ' '; |
50 | |
51 | /** |
52 | * Commercial Spam Filters Control |
53 | * |
54 | * Some of the SPAM filters are COMMERCIAL and require a fee. If your users |
55 | * select them and you're not allowed to use them, it will make SPAM filtering |
56 | * very slow. If you don't want them to even be offered to the users, you |
57 | * should set SpamFilters_ShowCommercial to false. |
58 | * @global bool $SpamFilters_ShowCommercial |
59 | */ |
9c655416 |
60 | $SpamFilters_ShowCommercial = false; |
61 | |
62 | /** |
e5c8ec61 |
63 | * SpamFiltering Cache |
9c655416 |
64 | * |
65 | * A cache of IPs we've already checked or are known bad boys or good boys |
66 | * ie. $SpamFilters_DNScache["210.54.220.18"] = true; |
67 | * would tell filters to not even bother doing the DNS queries for that |
68 | * IP and any email coming from it are SPAM - false would mean that any |
69 | * email coming from it would NOT be SPAM |
70 | * @global array $SpamFilters_DNScache |
71 | */ |
e5c8ec61 |
72 | $SpamFilters_DNScache=array(); |
9c655416 |
73 | |
74 | /** |
75 | * Path to bulkquery program |
76 | * |
77 | * Absolute path to the bulkquery program. Leave blank if you don't have |
78 | * bulkquery compiled, installed, and lwresd running. See the README file |
79 | * in the bulkquery directory for more information on using bulkquery. |
80 | * @global string $SpamFilters_BulkQuery |
81 | */ |
9c655416 |
82 | $SpamFilters_BulkQuery = ''; |
83 | |
84 | /** |
85 | * Shared filtering cache control |
86 | * |
87 | * Do you want to use a shared file for the DNS cache or a session variable? |
88 | * Using a shared file means that every user can benefit from any queries |
89 | * made by other users. The shared file is named "dnscache" and is in the |
90 | * data directory. |
91 | * @global bool $SpamFilters_SharedCache |
92 | */ |
9c655416 |
93 | $SpamFilters_SharedCache = true; |
94 | |
95 | /** |
96 | * DNS query TTL |
97 | * |
98 | * How long should DNS query results be cached for by default (in seconds)? |
99 | * @global integer $SpamFilters_CacheTTL |
100 | */ |
9c655416 |
101 | $SpamFilters_CacheTTL = 7200; |
102 | |