aboutsummaryrefslogtreecommitdiffstats
path: root/config/sassassin.xml
diff options
context:
space:
mode:
Diffstat (limited to 'config/sassassin.xml')
-rw-r--r--config/sassassin.xml159
1 files changed, 159 insertions, 0 deletions
diff --git a/config/sassassin.xml b/config/sassassin.xml
new file mode 100644
index 00000000..eb82fd55
--- /dev/null
+++ b/config/sassassin.xml
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd">
+<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
+<packagegui>
+ <copyright>
+ <![CDATA[
+/* $Id$ */
+/* ========================================================================== */
+/*
+ authng.xml
+ part of pfSense (http://www.pfSense.com)
+ Copyright (C) 2007 to whom it may belong
+ All rights reserved.
+
+ Based on m0n0wall (http://m0n0.ch/wall)
+ Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
+ All rights reserved.
+ */
+/* ========================================================================== */
+/*
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ */
+/* ========================================================================== */
+ ]]>
+ </copyright>
+ <description>Describe your package here</description>
+ <requirements>Describe your package requirements here</requirements>
+ <faq>Currently there are no FAQ items provided.</faq>
+ <name>spamassassin</name>
+ <version>none</version>
+ <title>Antispam: Configuration</title>
+ <include_file>sassassin.inc</include_file>
+ <menu>
+ <name>Antispam</name>
+ <tooltiptext>Configure the Antispam service.</tooltiptext>
+ <section>Services</section>
+ <url>/pkg_edit.php?xml=sassassin.xml&amp;id=0</url>
+ </menu>
+ <service>
+ <name>SpamAssassin</name>
+ <rcfile>spamd.sh</rcfile>
+ <executable>spamd</executable>
+ <description>The SpamAssassin spam detection software.</description>
+ </service>
+ <tabs>
+ <tab>
+ <text>Configuration</text>
+ <url>/pkg_edit.php?xml=sassassin.xml&amp;id=0</url>
+ <active/>
+ </tab>
+ <tab>
+ <text>Whitelist</text>
+ <url>/pkg.php?xml=sassassin_wl.xml</url>
+ </tab>
+ <tab>
+ <text>Blacklist</text>
+ <url>/pkg.php?xml=sassassin_bl.xml</url>
+ </tab>
+ </tabs>
+ <additional_files_needed>
+ <item>http://www.pfsense.org/packages/config/sassassin_wl.xml</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <item>http://www.pfsense.org/packages/config/sassassin_bl.xml</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <item>http://www.pfsense.org/packages/config/sassassin.inc</item>
+ </additional_files_needed>
+ <fields>
+ <field>
+ <fielddescr>Enable antispam</fielddescr>
+ <fieldname>enable</fieldname>
+ <description>Check to enable the antispam protection.</description>
+ <type>checkbox</type>
+ <enablefields>bayes,bayes_learn,threshold,subject,send_spam</enablefields>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Bayesian classifier</fielddescr>
+ <fieldname>bayes</fieldname>
+ <description>Check this to enable the Bayesian classifier.</description>
+ <type>checkbox</type>
+ <required/>
+ <default_value>on</default_value>
+ </field>
+ <field>
+ <fielddescr>Bayesian auto-learning</fielddescr>
+ <fieldname>bayes_learn</fieldname>
+ <description>Check this to enable the Bayesian auto-learning system.</description>
+ <type>checkbox</type>
+ <required/>
+ <default_value>on</default_value>
+ </field>
+ <field>
+ <fielddescr>Spam threshold</fielddescr>
+ <fieldname>threshold</fieldname>
+ <description>Set the threshold at which a message is considered spam.</description>
+ <type>input</type>
+ <required/>
+ <default_value>5.0</default_value>
+ </field>
+ <field>
+ <fielddescr>Rewrite subject</fielddescr>
+ <fieldname>subject</fieldname>
+ <description>This is the string that will be added to the subject of spam emails.</description>
+ <type>input</type>
+ <default_value>*** SPAM ***</default_value>
+ </field>
+ <field>
+ <fielddescr>How to send spam messages</fielddescr>
+ <fieldname>send_spam</fieldname>
+ <description>Choose between not sending spam messages, sending them as an RFC-822 MIME attachment (recommended) or as plain text.</description>
+ <type>select</type>
+ <default_value>attachment</default_value>
+ <options>
+ <option>
+ <name>Do not send</name>
+ <value>donotsave</value>
+ </option>
+ <option>
+ <name>Send as an attachment (recommended)</name>
+ <value>attachment</value>
+ </option>
+ <option>
+ <name>Send as plain text</name>
+ <value>plaintext</value>
+ </option>
+ </options>
+ </field>
+ </fields>
+ <custom_php_validation_command>
+ sassassin_validate_input($_POST, &amp;$input_errors);
+ </custom_php_validation_command>
+ <custom_php_resync_config_command>
+ sassassin_resync();
+ </custom_php_resync_config_command>
+ <custom_php_install_command>
+ sassassin_install_command();
+ </custom_php_install_command>
+</packagegui>