Bug Tracker item #2933002, was opened at 2010-01-15 18:48
Message generated for change (Comment added) made by ensc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2933002&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: Enrico Scholz (ensc)
Assigned to: Hugo Monteiro (hmonteiro)
Summary: No LMTP response for invalid recipient

Initial Comment:
I use strict external lookup like

| StorageDriver /usr/lib/dspam/libhash_drv.so
| ExtLookup             on
| ExtLookupMode         strict
| ExtLookupDriver       ldap

The daemon detects when an invalid user is submitted but continues
processing and fails later silently.  The client does not get a
response hence and runs into a timeout.


$ strace dspamc --classify --user nonexist...@foo.bar   -- < /tmp/sp
...
send(3, "Return-Path: <anneemm...@yahoo.f"..., 4939, 0) = 4939
send(3, ".", 1, 0)                      = 1
send(3, "\r\n", 2, 0)                   = 2
select(4, [3], NULL, NULL, {300, 0})    = 0 (Timeout)
send(3, "QUIT", 4, 0)                   = 4


Log show

| Unable to open file for writing: 
/var/lib/dspam/data/n/o/nonexist...@foo.bar/nonexist...@foo.bar.lock: No such 
file or directory
| Unable to attach DSPAM context. Retrying.
| Unable to open file for writing: 
/var/lib/dspam/data/n/o/nonexist...@foo.bar/nonexist...@foo.bar.lock: No such 
file or directory
| Unable to attach DSPAM context


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

>Comment By: Enrico Scholz (ensc)
Date: 2010-01-26 13:33

Message:
the three patches

[PATCH 1/3] dspamc: accept empty response from server
[PATCH 2/3] Send always a final '.' in DSPAM LMTP mode
[PATCH 3/3] Stop processing of users which could not be resolved by
external lookup

should solve the issue

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

Comment By: Hugo Monteiro (hmonteiro)
Date: 2010-01-15 20:14

Message:
Indeed. I believe the problem was that when implementing external user
lookup, i only considered mysql and psql for user validation and i
completely forgot the hash driver.
I'll keep you  posted.

Best regards,

Hugo Monteiro.

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

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to