File/nasmail/plugins/filters/config_sample.php

Description

NaSMail Filters plugin - sample configuration file

  • version: $Id: config_sample.php 764 2007-09-17 06:37:25Z tokul $
  • copyright: (c) 1999-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Variables
bool $AllowSpamFilters (line 28)

User level spam filters control

Set this to false if you do not want the user to be able to enable spam filters

string $SpamFilters_BulkQuery (line 69)

Path to bulkquery program

Absolute path to the bulkquery program. Leave blank if you don't have bulkquery compiled, installed, and lwresd running. Bulkquery utility is distributed in separate package.

integer $SpamFilters_CacheTTL (line 88)

DNS query TTL

How long should DNS query results be cached for by default (in seconds)?

array $SpamFilters_DNScache (line 59)

Spam Filtering Cache

A cache of IPs we've already checked or are known bad boys or good boys ie. $SpamFilters_DNScache["210.54.220.18"] = true; would tell filters to not even bother doing the DNS queries for that IP and any email coming from it are SPAM - false would mean that any email coming from it would NOT be SPAM

bool $SpamFilters_SharedCache (line 80)

Shared filtering cache control

Do you want to use a shared file for the DNS cache or a session variable? Using a shared file means that every user can benefit from any queries made by other users. The shared file is named "dnscache" and is in the data directory.

string $SpamFilters_YourHop (line 47)

SpamFilters YourHop Setting

Set this to a string containing something unique to the line in the header you want me to find IPs to scan the databases with. For example, All the email coming IN from the internet to my site has a line in the header that looks like (all on one line): Received: [from usw-sf-list1.sourceforge.net (usw-sf-fw2.sourceforge.net [216.136.171.252]) by firewall.persistence.com (SYSADMIN-antispam 0.2) with Since this line indicates the FIRST hop the email takes into my network, I set my SpamFilters_YourHop to 'by firewall.persistence.com' but any case-sensitive string will do. You can set it to something found on every line in the header (like ' ') if you want to scan all IPs in the header (lots of false alarms here tho).

bool $UseSeparateImapConnection (line 19)

IMAP connection control

Some IMAP servers (for example UW IMAP) might require separate IMAP connection for filtering.

Documentation generated on Sun, 22 Nov 2009 17:36:23 +0200 by phpDocumentor 1.4.3