<!--%%INCLUDE "i_defaulthead.incl"-->
   <title>PolluStop Filtered accounts</title>
</head>
<body>
   <h1>PolluStop Filtered accounts<br />
   <span class="h2">%%domainname%%</span></h1>

   <!--%%INCLUDE "i_statuscodes.incl"-->

   <form action="filter" method="post">

   <p class="explain" style="padding:20px 0 0 10px" >
      <span class="lic">L</span>: this option may modify the required license size
   </p>

   <fieldset><legend>Domains to scan <span class="lic">L</span></legend>
      <p><select onchange="SelectDomains(this)" name="filter_scanalllocaldomains"><!--%%BOOLMENU settings.filter_scanalllocaldomains DEFAULT defaultsettings.filter_scanalllocaldomains DISPLAY yesno--></select> Scan all local domains
      <span style="font-size:x-small" id="selectall_links">
         <span class="link" onclick="CheckDomains(true)">[select all]</span>
         <span class="link" onclick="CheckDomains(false)">[select none]</span>
      </span></p>
      <ul style="margin:8px 0 8px 0; padding:0; list-style:none"><!--%%FORALL dom IN domains-->
         <li>
            <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>
         </li><!--%%ENDFOR dom-->
      </ul>
   </fieldset>


   <fieldset><legend>Accounts to scan</legend>
      <p class="explain">FULL account names only (user@domain), no aliases.</p>
      <fieldset><legend>Specific accounts to scan <span class="lic">L</span></legend>
         <ul style="list-style:none; margin:0; padding:0" id="filter_scan_list"><!--%%FORALL dom IN settings.filter_scan--><!--%%IF CONTAINS("@" IN dom[])-->
         <li><input type="text" size="40" name="filter_scan" value="%%dom[]%%" /></li><!--%%ENDIF--><!--%%ENDFOR dom-->
         <li><input type="text" size="40" name="filter_scan" value="" /></li>
         </ul>
         <div class="link" onclick="AddBox('filter_scan_list')">Add</div>
      </fieldset>
      <fieldset><legend>Non-mail accounts to ignore <span class="lic">L</span></legend>
         <p class="explain">Non-mail accounts only - the Mail service must be disabled for these accounts.</p>
         <p class="explain">CLI must be enabled for this list to be considered.</p>
         <ul style="list-style:none; margin:0; padding:0" id="filter_nonmail_list"><!--%%FORALL dom IN settings.filter_nonmail--><!--%%IF CONTAINS("@" IN dom[])-->
         <li><input type="text" size="40" name="filter_nonmail" value="%%dom[]%%" /></li><!--%%ENDIF--><!--%%ENDFOR dom-->
         <li><input type="text" size="40" name="filter_nonmail" value="" /></li>
         </ul>
         <div class="link" onclick="AddBox('filter_nonmail_list')">Add</div>
      </fieldset>

      <fieldset><legend><select name="scanexplicitrelayedusers"><!--%%BOOLMENU settings.scanexplicitrelayedusers DEFAULT defaultsettings.scanexplicitrelayedusers DISPLAY yesno--></select> Scan all explicitly relayed addresses</legend>
         <p class="explain">Scan addresses explicitly 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>

   </fieldset>

   <fieldset><legend>What to scan</legend>
      <p><select name="scaninbound"><!--%%BOOLMENU settings.scaninbound DEFAULT defaultsettings.scaninbound DISPLAY yesno--></select> Inbound messages <span class="explain">(external sender, local recipient)</span></p>
      <p><select name="scanfromlocal"><!--%%BOOLMENU settings.scanfromlocal DEFAULT defaultsettings.scanfromlocal DISPLAY yesno--></select> Messages from a local domain <span class="explain">(local sender, local/external recipient)</span></p>
      <!--%%IF (zzz)-->
      <p><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></p>
      <p><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></p>
      <!--%%ENDIF-->
      <p><select name="scangroups"><!--%%BOOLMENU settings.scangroups DEFAULT defaultsettings.scangroups DISPLAY yesno--></select> Inbound messages addressed to a group <span class="lic">L</span></p>
      <p><select name="scanforwarders"><!--%%BOOLMENU settings.scanforwarders DEFAULT defaultsettings.scanforwarders DISPLAY yesno--></select> Inbound messages addressed to a forwarder <span class="lic">L</span></p>
      <p><select name="scanlists"><!--%%BOOLMENU settings.scanlists DEFAULT defaultsettings.scanlists DISPLAY yesno--></select> Inbound messages addressed to a list <span class="lic">L</span></p>
      <p class="explain">It is recommended NOT to scan list messages, as the nature of these messages is a lot more varied than normal messages and are likely to be considered as spam (false positives) by the filter. Since lists are usually either moderated or the subscribers are approved in some way, the risk of spam on a mailing list is low.</span>
   <p class="explain">However, the special address <span class="tt">&lt;list&gt;-request@domain</span>, which is used to send a message to the list owner, is often the target of spam but is considered as a list address by PolluStop and will not be scanned. The best way to avoid that is to explicitly enter <span class="tt">&lt;list&gt;-request@domain</span> addresses in the "Specific accounts to scan" list above.</span>
   </fieldset>


   <p><input type="hidden" name="Apply" value="" />
   <input type="submit" class="btn" value="Save settings" /><input type="reset" class="btn" value="Reset" /></p>
   <script type="text/javascript">
      function SelectDomains(c)
      {
         var obj;
         c = c.selectedIndex == 1;
         for (var i = 0; (obj=document.getElementsByName('filter_scan')[i]); ++i)
         {
            if (obj.type == "checkbox")
            {
               if (c)
               {
                  obj.checked=obj.disabled=true
               }
               else
               {
                  obj.disabled=false;
               }
            }
         }
         document.getElementById("selectall_links").style.display = c ? "none" : "";
      }

      function CheckDomains(c)
      {
         var o;
         for (var i=0; o=document.getElementsByName("filter_scan")[i];++i)
         {
            o.checked = c;
         }
      }

      SelectDomains(document.getElementsByName("filter_scanalllocaldomains")[0]);

   </script>
   </form>
<!--%%INCLUDE "i_defaultfoot.incl"-->

