<div style="font-family: Tahoma; font-size: 14px;">Hi, thanks for your response.<br /><br />There are a lot of things rising the score manually:</div>
<div style="font-family: Tahoma; font-size: 14px;"> </div>
<div style="font-family: Tahoma; font-size: 14px;">X-Spam-Status: Yes, score=18.1 required=5.0 tests=BAYES_50,CUSTOM_MANY_BL,<br /> HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,MIME_HTML_ONLY,RCVD_IN_DNSBL_INPS_DE,<br /> RCVD_IN_HOSTKARMA_BL,RCVD_IN_MSPIKE_H2,RCVD_IN_UCEPROTECT2,<br /> RCVD_IN_UCEPROTECT3,RCVD_IN_WPBL,SPF_HELO_PASS,TVD_RCVD_SPACE_BRACKET,<br /> T_REMOTE_IMAGE,UNPARSEABLE_RELAY,URIBL_ABUSE_SURBL,URIBL_DBL_SPAM<br /> autolearn=spam autolearn_force=no version=3.4.1<br /><br />All the files are taken from /sonicle/etc/mail/spamassassin and /sonicle/share/spamassassin, and they looks to be read both manually and during postfix run, as many of the mails are caught and contains X-Spam-Status with tags taken from there (sare cf files, kam file, fili_br file etc).<br />Also, many of the auto-learnt mails get spammed after being trained.<br />The bayes is configured as :<br /><br />use_bayes 1<br />bayes_auto_learn 1<br />bayes_path /sonicle/var/spamassassin/bayes_db/bayes<br />bayes_file_mode 0777<br /><br />and here are the files:<br /><br />sonicle@www:~$ ls -l /sonicle/var/spamassassin/bayes_db<br />total 12699<br />-rw-rw-rw- 1 snclamav snclamav 25680 Jun 27 08:28 bayes_journal<br />-rw-rw-rw- 1 snclamav snclamav 10567680 Jun 27 07:58 bayes_seen<br />-rw-rw-rw- 1 snclamav snclamav 5128192 Jun 27 07:58 bayes_toks<br /><br />here are the amavis processes:<br /><br />sonicle@www:~$ ps -ef | grep amavisd<br />snclamav 23517 20393 0 07:43:58 ? 0:04 /sonicle/bin/perl -T /sonicle/sbin/amavisd -u snclamav -c /sonicle/etc/amavis/a...<br />snclamav 20393 6278 0 May 12 ? 0:49 /sonicle/bin/perl -T /sonicle/sbin/amavisd -u snclamav -c /sonicle/etc/amavis/a...<br />snclamav 29614 20393 0 08:28:49 ? 0:00 /sonicle/bin/perl -T /sonicle/sbin/amavisd -u snclamav -c /sonicle/etc/amavis/a...<br /><br />is there any way I can run amavisd manually exactly as postfix would do during an incoming email?<br />I bet I need debugging output, but enabling it live may fill my mail logs, and I would have to wait for some spam to get in.<br /><br />Thanks again,<br />Gabriele<br /><br /><br /><br /><br /><br />
<div id="wt-mailcard">
<div style="font-family: Arial;">------------------------------------------------------------------------------------------</div>
<div style="font-family: Arial;"><strong>Sonicle S.r.l. </strong>: <a href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</a></div>
<div style="font-family: Arial;"><strong>Music: </strong><a href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</a></div>
<div style="font-family: Arial;"><strong>Quantum Mechanics : </strong><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</a></div>
</div>
<br /><hr /><br /><br /><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><strong>Da:</strong> Dino Edwards <dino.edwards@mydirectmail.net><br /><strong>A:</strong> amavis-users@amavis.org<br /><strong>Data:</strong> 26 giugno 2017 19.08.11 CEST<br /><strong>Oggetto:</strong> RE: different spamassassin behaviours<br /></span><br /><br />
<blockquote style="border-left: #000080 2px solid; margin-left: 5px; padding-left: 5px;">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Do you know for a fact that the bayes database is making those scores get higher when you run it in debug? If so, where is your bayes database stored and who is the owner of that path? Do you know for a fact that Amavis calls Spamassassin to scan emails?</span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">----------------</span></p>
<p class="MsoNormal"><strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"><img id="Picture_x0020_2" src="cid:image002.jpg@01D2EE7D.41BA0B40" alt="hermes_logo3" width="132" height="49" /></span></strong></p>
<p class="MsoNormal"><strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Hermes Secure Email Gateway</span></strong></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Hermes Secure Email Gateway is a Free Open Source (Hermes SEG Community Only) Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. Hermes Secure Email Gateway combines Open Source technologies such as Postfix, Apache SpamAssassin, ClamAV, Amavisd-new and CipherMail under one unified web based Web GUI for easy administration and management of your incoming and ougoing email for your organization. It can be deployed to protect your in-house email solution as well as cloud email solutions such as Google Mail and Microsoft Office 365.</span></p>
<p class="MsoNormal"><strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </span></strong></p>
<p class="MsoNormal"><strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Learn More & Download the free open-source appliance at:</span></strong></p>
<p class="MsoNormal"><a href="https://www.deeztek.com/hermes-secure-email-gateway/" target="_new"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #0563c1;">https://www.deeztek.com/hermes-secure-email-gateway/</span></a><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </span></p>
<p class="MsoNormal"><strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;">From:</span></strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"> amavis-users [mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org] <strong>On Behalf Of </strong>Gabriele Bulfon<br /> <strong>Sent:</strong> Monday, June 26, 2017 11:57 AM<br /> <strong>To:</strong> amavis-users@amavis.org<br /> <strong>Subject:</strong> different spamassassin behaviours</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal" style="margin-bottom: 12.0pt;"><span style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;">Hi,<br /> <br /> I have some installation of amavis+postfix, where I discovered that some spam is coming in with a very low score, but if I run spamassassin in debug mode on the same emails they get a very high score.<br /> <br /> On my installations, amavisd runs under the "snclamav" user, while the smtp-amavis postfix daemons run under the "snclmail" user.<br /> I run the bayes learn using the snclamav user, and also run spamassassin debug mode using the same user, that stores the bayes database in a specific path.<br /> <br /> Any idea what may happen in amavisd spawn spamassassin that does not happen in manual debug mode?<br /> <br /> Thanks for any help<br /> <br /> Gabriele</span></p>
<div id="wt-mailcard">
<div>
<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">------------------------------------------------------------------------------------------</span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Sonicle S.r.l. </span></strong><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">: </span><a href="http://www.sonicle.com/" target="_new"><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">http://www.sonicle.com</span></a><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;"></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Music: </span></strong><a href="http://www.gabrielebulfon.com/" target="_new"><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">http://www.gabrielebulfon.com</span></a><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;"></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Quantum Mechanics : </span></strong><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new"><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">http://www.cdbaby.com/cd/gabrielebulfon</span></a><span style="font-size: 10.5pt; font-family: 'Arial',sans-serif;"></span></p>
</div>
</div>
</div>
</div>
<br /><br /><<image002.jpg@01D2EE7D.41BA0B40>></blockquote>
</div>