<!--%%INCLUDE "i_defaulthead.incl"-->
   <title>PolluStop Filtered accounts and learning access</title>
</head>
<body>
   <h1>PolluStop Filtered accounts and learning access<br>
   <span class=h2>%%domainname%%</span></h1>
   <!--%%INCLUDE "i_statuscodes.incl"--><!--%%IF iscluster-->
   <p style="color:#800000">Note: On cluster-based installations, everything is scanned. All settings on this page are ignored.<br>
   All training must be done from the command line or the wizard.</p><!--%%ENDIF-->
   <form action="filter.page" method=post>
   <fieldset><legend><select onchange="this.form.Dummy.name='Apply'; this.form.submit();" name=filter_scanalllocaldomains><!--%%BOOLMENU settings.filter_scanalllocaldomains DEFAULT defaultsettings.filter_scanalllocaldomains DISPLAY yesno--></select> Scan all local domains</legend>
      <p class=explain>Scan all local domains, except for domains in the ignore list.</p>
   </fieldset><br><br>
   <fieldset><legend><select name=scanexplicitrelayedusers><!--%%BOOLMENU settings.scanexplicitrelayedusers DEFAULT defaultsettings.scanexplicitrelayedusers DISPLAY yesno--></select> Scan all explicitely relayed users</legend>
      <p class=explain>Scan users explicitely specified as router entries. This includes only entries such as <span class=tt>&lt;user&gt; = dest@domain</span> or <span class=tt>&lt;user@local&gt; = dest@domain</span>. Wildcard entries and all-domain entries (<span class=tt>domain = externaldomain</span>) and other types of router entries will be ignored.</p>
   </fieldset><br><br>
   <!--%%IF SETTINGS("filter_scanalllocaldomains")-->
   <!--%%FORALL dom IN settings.filter_scan--><!--%%IF NOT(CONTAINS("@" IN dom[]))--><input type=hidden name=filter_scan value="%%dom[]%%"><!--%%ENDIF--><!--%%ENDFOR dom-->
   <fieldset><legend>Ignore these domains:</legend><!--%%FORALL dom IN domains-->
      <input type=checkbox name=filter_ignore %%CHECKED(CONTAINS(dom[] in settings.filter_ignore))%% value="%%dom[]%%" id="i%%dom[]%%">
      <label for="i%%dom[]%%"><!--%%IF EQUALS(dom[] AND domainname)--><b><!--%%ENDIF-->%%dom[]%%<!--%%IF EQUALS(dom[] AND domainname)--></b><!--%%ENDIF--></label><br><!--%%ENDFOR dom-->
   <br>
   <!--%%ELSE-->
   <!--%%FORALL dom IN settings.filter_ignore--><input type=hidden name=filter_ignore value="%%dom[]%%"><!--%%ENDFOR dom-->
   <fieldset><legend>Scan these domains:</legend><!--%%FORALL dom IN domains-->
      <input type=checkbox name=filter_scan %%CHECKED(CONTAINS(dom[] in settings.filter_scan))%% value="%%dom[]%%" id="s%%dom[]%%">
      <label for="s%%dom[]%%"><!--%%IF EQUALS(dom[] AND domainname)--><b><!--%%ENDIF-->%%dom[]%%<!--%%IF EQUALS(dom[] AND domainname)--></b><!--%%ENDIF--></label><br><!--%%ENDFOR dom-->
   <br>
   <!--%%ENDIF-->
   <fieldset class=inner><legend><!--%%IF SETTINGS("filter_scanalllocaldomains")-->But still<!--%%ELSE-->And<!--%%ENDIF--> scan these accounts:</legend><!--%%FORALL dom IN settings.filter_scan--><!--%%IF CONTAINS("@" IN dom[])-->
      &nbsp;<input type=text size=40 name=filter_scan value="%%dom[]%%"><br><!--%%ENDIF--><!--%%ENDFOR dom-->
      &nbsp;<input type=text size=40 name=filter_scan value=""><br>
      &nbsp;<input type=text size=40 name=filter_scan value=""><br>
      &nbsp;<input type=text size=40 name=filter_scan value=""><br>
      <p class=explain>FULL account names only (user@domain), no aliases.</p>
   </fieldset></fieldset><br><br><!--%%IF iscluster-->
   <p style="color:#800000">Note: On cluster-based installations, everything is scanned. The following settings are not used.</p><!--%%ENDIF-->
   <fieldset><legend>What to scan</legend>
      <select name=scaninbound><!--%%BOOLMENU settings.scaninbound DEFAULT defaultsettings.scaninbound DISPLAY yesno--></select> Inbound messages <span class=explain>(external sender, local recipient)</span><br>
      <select name=scanfromlocalscanned><!--%%BOOLMENU settings.scanfromlocalscanned DEFAULT defaultsettings.scanfromlocalscanned DISPLAY yesno--></select> Messages from a scanned domain <span class=explain>(local sender, local/external recipient)</span><br>
      <select name=scanfromlocalnonscanned><!--%%BOOLMENU settings.scanfromlocalnonscanned DEFAULT defaultsettings.scanfromlocalnonscanned DISPLAY yesno--></select> Messages from a local, non-scanned domain <span class=explain>(local sender, local/external recipient)</span><br>
      <p class=explain>These three options may modify the required license size:</p>
      <select name=scangroups><!--%%BOOLMENU settings.scangroups DEFAULT defaultsettings.scangroups DISPLAY yesno--></select> Inbound messages addressed to a group<br>
      <select name=scanforwarders><!--%%BOOLMENU settings.scanforwarders DEFAULT defaultsettings.scanforwarders DISPLAY yesno--></select> Inbound messages addressed to a forwarder<br>
      <select name=scanlists><!--%%BOOLMENU settings.scanlists DEFAULT defaultsettings.scanlists DISPLAY yesno--></select> Inbound messages addressed to a list<br>
   </fieldset><br><br>

   <fieldset><legend><select name=learn_usefiltersettings><!--%%BOOLMENU settings.learn_usefiltersettings DEFAULT defaultsettings.learn_usefiltersettings DISPLAY yesno--></select> Accept Learning requests for all scanned accounts</legend>
   <p class=explain>Learning requests are messages (forwarded to <i>prefix</i>-good@domain or <i>prefix</i>-spam@domain,
   or sent as an attachment to <i>prefix</i>@domain) that instruct PolluStop to re-classify them if they were originally incorrectly identified as either Spam or Good mail.</p>
   <p class=explain>For messages sent as an attachment to <i>prefix</i>@domain, PolluStop will automatically determine the
      training destination based on the X-PolluStop-Diagnostic header of the message. Only messages that already passed through
      the filter can be sent as an attachment for re-classification.</p>
   <p class=explain>Forwarding as an attachment to <i>prefix</i>@domain address or using the drop mailboxes gives slightly better results than forwarding to <i>prefix</i>-good@domain or <i>prefix</i>-spam@domain.</p>
   <!--%%IF NOT(SETTINGS("learn_usefiltersettings"))-->You can specify here the accounts/domains which are allowed to send Learning requests.<!--%%ENDIF--></p><br>
   <fieldset class=inner><legend>Prefix <input type=text name=learn_prefix value="%%SETTINGS("learn_prefix")%%" size=11 maxlength=20></legend>
   <p class=explain>The "Prefix" attribute represents the beginning of the "email address" of the filter. If you set it, for instance, to "pollustop", users will have to
   send their learning requests to "pollustop-good@domain" and "pollustop-spam@domain", or send them as an attachment to "pollustop@domain".</p>
   </fieldset><br><br>
   <fieldset class=inner><legend>&quot;Unauthorized&quot; Reply</legend>
   <p class=explain>If an unauthorized account sends a learning request, PolluStop will bounce the message
   with this error text (text only):</p>
   <textarea cols=60 rows=5 name="learn_unauthorizedmessage">%%SETTINGS("learn_unauthorizedmessage")%%</textarea><br>
   <select name=learn_ignoreunauthorized><!--%%BOOLMENU settings.learn_ignoreunauthorized DEFAULT defaultsettings.learn_ignoreunauthorized DISPLAY yesno--></select> Ignore unauthorized messages, simply discard them instead of bouncing with an error.
   </fieldset><br><br>
   <fieldset class=inner><legend>&quot;Multiple recipients&quot; Reply</legend>
   <p class=explain>If an authorized account sends a learning request but specifies multiple recipients, PolluStop will bounce the message
   with this error text (text only):</p>
   <textarea cols=60 rows=5 name="learn_multiplerecipients">%%SETTINGS("learn_multiplerecipients")%%</textarea><br>
   <select name=learn_ignoremultiple><!--%%BOOLMENU settings.learn_ignoremultiple DEFAULT defaultsettings.learn_ignoremultiple DISPLAY yesno--></select> Ignore messages with multiple recipients, simply discard them instead of bouncing.
   </fieldset><br><br>

   <fieldset class=inner><legend>&quot;Learn error&quot; Reply</legend>
   <p class=explain>If a message is not sent as an attachment to <i>prefix</i>@domain, if the message doesn't contain
   X-PolluStop-Diagnostic or Return-Path headers, PolluStop will bounce the message with this error text (text only):</p>
   <p class=explain>You can use the following macros in the reply message: %sender%, %learnaddress%,
      %learngoodaddress%, %learnspamaddress%</p>
   <textarea cols=60 rows=5 name="learn_errormessage">%%SETTINGS("learn_errormessage")%%</textarea><br>
   <select name=learn_ignoreallerrors><!--%%BOOLMENU settings.learn_ignoreallerrors DEFAULT defaultsettings.learn_ignoreallerrors DISPLAY yesno--></select> Ignore all erroneous messages, simply discard them instead of bouncing with an error.<br>
   <p class=explain>If the message was initially considered as direct reply, blacklisted or whitelisted by PolluStop, the message is ignored.</p>
   </fieldset>
   </fieldset><br><br>

   <!--%%IF NOT(SETTINGS("learn_usefiltersettings"))-->
   <fieldset><legend>Accept Learning requests from these domains:</legend><!--%%FORALL dom IN domains-->
      <input type=checkbox name=learn_accept %%CHECKED(CONTAINS(dom[] in settings.learn_accept))%% value="%%dom[]%%" id="a%%dom[]%%">
      <label for="a%%dom[]%%"><!--%%IF EQUALS(dom[] AND domainname)--><b><!--%%ENDIF-->%%dom[]%%<!--%%IF EQUALS(dom[] AND domainname)--></b><!--%%ENDIF--></label><br><!--%%ENDFOR dom-->
   <br>
   <fieldset class=inner><legend>And from these accounts:</legend><!--%%FORALL dom IN settings.learn_accept--><!--%%IF CONTAINS("@" IN dom[])-->
      &nbsp;<input type=text size=40 name=learn_accept value="%%dom[]%%"><br><!--%%ENDIF--><!--%%ENDFOR dom-->
      &nbsp;<input type=text size=40 name=learn_accept value=""><br>
      &nbsp;<input type=text size=40 name=learn_accept value=""><br>
      &nbsp;<input type=text size=40 name=learn_accept value=""><br>
      <span class=explain>FULL account names only (user@domain), no aliases</span>
   </fieldset></fieldset><br><br><!--%%ENDIF-->

   <input type=hidden name=Dummy value="">
   <input type=submit class=btn name=Apply value="Save settings"><input type=reset class=btn value="Reset">
   </form>
<!--%%INCLUDE "i_defaultfoot.incl"-->

