The autowhitelist is depreciated for a long time now<div><br></div><div>Just disable that plugin in the spamassasin config files<span></span><br><br>On Friday, 22 March 2013, Robert Lopez  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Here is the definitive answer for anyone who later finds this thread.<br></div>It is from the file /usr/share/doc/mailscanner/examples/conf.d/README<br><br><br># In this directory, you can put files that will be automatically included<br>

# as if they were inserted at the end of the main MailScanner.conf file<br># in the directory above this one.<br>#<br># They should be read in alphabetical order.<br>#<br># NOTE: If you change the value of a %variable% then you must redefine all<br>

# the settings that use that %variable% here, as the %variable%<br># substitutions are done when the files are initially read, not later when<br># settings are looked up when MailScanner is processing messages.<br># So if, for example, you change the value of %rules-dir% in an included<br>

# file here, you must reset the values of the settings<br>#        Maximum Message Size<br>#        Is Definitely Not Spam<br>#        Enable Spam Bounce<br># in order for them all to use the new value of %rules-dir%.<br>

# My apologies for this, but it is only possible to know the values of<br># each %variable% when the configuration files are read, and not when<br># the settings are evaluated as they could be set at any point within the<br>

# files, giving an unknown value of the %variable% at that point.<br>#<br># --<br># Jules<br># <a href="javascript:_e({}, &#39;cvml&#39;, &#39;MailScanner@ecs.soton.ac.uk&#39;);" target="_blank">MailScanner@ecs.soton.ac.uk</a><br>
<br></div>So before modifying any %something% line in a conf.d/ file grep for<br>
</div>that %something% string in the .../MailScanner/MailScanner.conf file<br>and modify all of them.<br><div><div><br></div></div></div><div><br><br><div>On Fri, Mar 22, 2013 at 4:19 PM, Robert Lopez <span dir="ltr">&lt;<a>rlopezcnm@gmail.com</a>&gt;</span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I am terribly wrong. <br>I have been able to prove to myself the configuration file /etc/MailScanner/conf.d/CNM-MailScanner.conf is read and affects many configuration parameters.<br>

<br></div>
However this line:<br>%org-name% = CNM<br></div>does not take precedence over this line in /etc/MailScanner/MailScanner.conf:<br> %org-name% = unconfigured-debian-site<br></div>So all the places it should modify other configuration parameters they are not modified.<br>


When I look in the internet headers of email passed through I see lines like these:<br>X-unconfigured-debian-site-MailScanner-From: xxxxxxxxxx@yyyyyyyy.zzzz<br>X-unconfigured-debian-site-MailScanner: Found to be clean<br>


X-unconfigured-debian-site-MailScanner-ID: 7E9D75F8D.AA75F<br><br></div><div><div><div><br><br><div>On Fri, Mar 22, 2013 at 10:20 AM, Robert Lopez <span dir="ltr">&lt;<a>rlopezcnm@gmail.com</a>&gt;</span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Martin,<br><br></div>I had done that. There are some &quot;errors&quot;; part related to the fact the local conf file is not loaded.<br>


<br></div>The first error is <br>ERROR: The &quot;envelope_sender_header&quot; in your spam.assassin.prefs.conf<br>
ERROR: is not correct, it should match X-unconfigured-debian-site-MailScanner-From<br></div>and it is because the /etc/MailScanner/conf.d/CNM-MailScanner.conf file sets <br>envelope_sender_header X-CNM-MailScanner-From<br>



<br></div>The second error/warning is<br>config: failed to parse line, skipping, in &quot;/etc/MailScanner/spam.assassin.prefs.conf&quot;: use_auto_whitelist 0<br>SpamAssassin reported an error.<br></div>which I have never been able to understand, but is there because I want the whitelist off. Also<br>



</div>I assume the &quot;SpamAssassin reported an error&quot; refers to the line above it.<br><br></div>The result of the run is below.<br><div><div><br><br><br># MailScanner -debug --lint<br>Trying to setlogsock(unix)<div>


<br>
<br>Reading configuration file /etc/MailScanner/MailScanner.conf<br>Reading configuration file /etc/MailScanner/conf.d/CNM-MailScanner.conf<br></div>Read 869 hostnames from the phishing whitelist<br>Read 5414 hostnames from the phishing blacklists<br>



<br>Checking version numbers...<br>Version number in MailScanner.conf (4.84.5) is correct.<br><br>ERROR: The &quot;envelope_sender_header&quot; in your spam.assassin.prefs.conf<br>ERROR: is not correct, it should match X-unconfigured-debian-site-MailScanner-From<br>



<br>MailScanner setting GID to  (117)<br>MailScanner setting UID to  (108)<br><br>Checking for SpamAssassin errors (if you use it)...<br>Using SpamAssassin results cache<br>Connected to SpamAssassin cache database<br>config: failed to parse line, skipping, in &quot;/etc/MailScanner/spam.assassin.prefs.conf&quot;: use_auto_whitelist 0<br>



SpamAssassin reported an error.<br>I have found clamd scanners installed, and will use them all by default.<br>Connected to Processing Attempts Database<br>Created Processing Attempts Database successfully<br>There are 0 messages in the Processing Attempts Database<br>



Using locktype = posix<br>MailScanner.conf says &quot;Virus Scanners = auto&quot;<br>Found these virus scanners installed: clamd<br>===========================================================================<br>Filename Checks: Windows/DOS Executable (1 <a href="http://eicar.com" target="_blank">eicar.com</a>)<br>



Other Checks: Found 1 problems<br>Virus and Content Scanning: Starting<br>Clamd::INFECTED::Eicar-Test-Signature :: ./1/<br>Clamd::INFECTED:: Eicar-Test-Signature :: ./1/<a href="http://eicar.com" target="_blank">eicar.com</a><br>


Virus Scanning: Clamd found 2 infections<br>
Infected message 1 came from 10.1.1.1<br>Virus Scanning: Found 2 viruses<br>===========================================================================<br>Virus Scanner test reports:<br>Clamd said &quot;<a href="http://eicar.com" target="_blank">eicar.com</a> was infected: Eicar-Test-Signature&quot;<br>



<br>If any of your virus scanners (clamd)<br>are not listed there, you should check that they are installed correctly<br>and that MailScanner is finding them correctly via its virus.scanners.conf.<br><br><div><div><div><div>



<br><br></div></div></div></div></div></div></div><div><div><div><br><br><div>On Fri, Mar 22, 2013 at 5:43 AM, Martin Hepworth <span dir="ltr"></span></div></div></div></div></blockquote></div></div></div></div></blockquote>
</div></div></blockquote></div><br><br>-- <br>-- <br>Martin Hepworth, CISSP<br>Oxford, UK<br>