This is a bug in qmail-scanner 1.15 that chokes on any largish
attachments, not just pdf.  here's a quick patch that fixes the problem,
along with credit to the author (I posted this here a few weeks ago, but
here it goes again):

-------------------------------------------
Basically, as of QS 1.15 (I think) Jason decided he wasn't going to
trust the return value from spamassassin, as there have been a number
of versions that don't work properly, so QS checks the values and marks
the mail as spam itself.
Unfortunately the test that is used is  score >= threshold, which is true
if they are both zero, which is the default case, as they both get set to
zero if there are any problems, or if the scanning is skipped because the
file is too big.

I have attached the patch that I use that specifically checks for score
and threshold = 0. This should only cause a problem if you have set your
threshold to 0.
The relevant line is below.
-      if ($sa_max > $sa_score) {
+      if (($sa_max > $sa_score) || ($sa_max == 0 && $sa_score == 0)) {

Hope this helps.
Chris Hine
-----------------

BTW, qmail-scanner 1.16 will have this fixed, we've been told...

On Tue, 7 Jan 2003, Pat Patton wrote:

>
> Any email that comes in with a PDF file attached is flagged as Spam. The
> message header shows X=Spam-Status: Yes hits=0 required=0. I have the
> required set to the default of 5. System is Redhat 7.2,  Spamassassin
> 2.43-2, Qmail 1.03. I am not seeing this problem with any other type
> attachments.
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
>

James Smallacombe                     PlantageNet, Inc. CEO and Janitor
[EMAIL PROTECTED]                                                     http://3.am
=========================================================================




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to