Bug Tracker item #3018120, was opened at 2010-06-18 18:59
Message generated for change (Tracker Item Submitted) made by myrkr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3018120&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: daemon
Group: v3.9.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Torsten Hilbrich (myrkr)
Assigned to: Nobody/Anonymous (nobody)
Summary: spam client fails to quote period when talking to unix socke

Initial Comment:
I'm currently testing with the Git version of dspam, commit 
3f44096792a437cb8b4c8ca9647a82c2664b087c

I configure the spam to run in daemon mode and use a local socket to talk 
between client and server.

I noticed that for some mails I try to learn the spam client needed quite a 
long time to talk to the server. I straced the server and noticed the following 
error messages:

[pid 29967] send(4, ".", 1, 0)          = 1
[pid 29967] send(4, "\r\n", 2, 0)       = 2
[pid 29967] send(4, "503 5.0.0 Need MAIL FROM here.", 30, 0) = 30
[pid 29967] send(4, "\r\n", 2, 0)       = 2
[pid 29967] send(4, "503 5.0.0 Need MAIL FROM here.", 30, 0) = -1 EPIPE (Broken 

Looking at the source code I can see that the quoting of a single period on a 
line is missing in the client_process function. When such a character is 
encounted by the server it stops reading the message. The quoting is present in 
the function deliver_socket which is used when talking TCP to the LMTP port.

Here is a simple example mail that triggers the bug:

======= cut here ===============
From: <t...@example.invalid>
To: <t...@example.invalid>
Subject: testing

This is a text line
.
This is not read by the server.
======= cut here ===============

With best regard,

Torsten

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3018120&group_id=250683

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to