On 02.09.2014 23:59, Eric Broch wrote:
Hi Stevan,

Hello Eric,


I sent the email you requested to your private email account in a zip file.

I got the mail. Tested the result with normal "dspam" and with "dspamc" and with "dspam --client". Using plain old "dspam" worked flawlessly while using "dspamc" and "dspam --client" resulted in stripping data from the mail.

Looking at the mail source the error occurred at line 3 (line numbering added by me):

001 has low airflow of 92 cfm for exhaust down low which equates to .4 cfm/ft2=
002 .
003 <b>I suggest that this ducting be modified before I return. Another low duc=

So it is clearly a dot stuffing issue. I don't know who is to blame here. Usually the client/sender is supposed to do the dot stuffing. The 'cut' command is not intelligent enough to do this. A small SED command however could do that: ( sed '/^$/q' 'email' ; echo ; sed '1,/^$/d' 'email' | sed 's:^\.$:..:g' ) | dspamc --user user@domain --stdout --deliver=innocent,spam

I don't know how to intelligently catch this issue in the code (it has been a while since I looked or touched the code). IMHO piping data to the DSPAM binary should not suffer from this dot stuffing. If you would send that directly to LMTP/DLMTP socket then I would say that it is clearly your problem but piping? I don't know.

Thanks!

Eric



--
 Kind Regards from Switzerland,

 Stevan Bajić


On 8/30/2014 11:56 AM, Stevan Bajić wrote:
Hallo Eric,

can you send me the email in question?


Cheers,

Stevan


-------- Original message --------
From: Eric Broch
Date:30/08/2014 19:25 (GMT+01:00)
To: dspam-user@lists.sourceforge.net
Subject: Re: [Dspam-user] attachment stripped

On 8/30/2014 10:50 AM, Tom Hendrikx wrote:
On 30-08-14 16:58, Eric Broch wrote:
> On 4/28/2014 9:50 AM, Phil Stracchino wrote:
>> On 04/28/14 11:18, Eric Broch wrote:
>>> Hello list,
>>>
>>> I installed DSPAM on a server and recently attachments are
>>> being stripped from email. At present I haven't been able to
>>> track down the source of this problem. I don't think it is the
>>> case that DSPAM would strip anything out of an email but wanted
>>> to ask on this list if this is a possibility.
>> DSpam does not strip attachments.  That's not its job.  Something
>> else is doing it.
>>
>>
> Phil (and others),

> I know this has been a while, but DSPAM (dspamc), I'm pretty sure,
> is the culprit.

> I have a test email from one of my clients that was truncated when
> DSPAM was enabled and not-truncated when DSPAM was disabled. I
> pulled this email (the pristine one) over to a test machine and
> ran the following 2 commands on this test email, the difference
> being one command calls 'dspamc' and the other calls 'dspam.'

> 1) # cat 'email' | dspamc --user user@domain --stdout
> --deliver=innocent,spam 2) # cat 'email' | dspam --user user@domain
> --stdout --deliver=innocent,spam

> The first command truncated the email output, and the second did
> not.

It would also be interesting to what 'dspam --client' does with this
email.

> My conclusion is that there is something wrong with 'dspamc' though
> I could be wrong.

> I also noted that it was NOT stripping attachments but truncating
> the message in the body of the email specifically on a '.' (period)
> on a line by itself in the 'mark up' portion of the email.

There have been reports on problems with dot stuffing in the past.
It's a lot more logical that you're seeing those problems too, and not
something related to your attachment.


> I'm going to grab another email culprit and test it to see if the
> problem is consistent.

> I know that the DSPAM project is supposed to be KO'ed but I know
> there are people still using it.

> Eric


Hi Tom,

Thanks for your reply.

The following command:
# cat 'email' | dspam --client --user user@domain --stdout --deliver=innocent,spam
also truncates the email.

Eric
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user




------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user



------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to