On Tue, 19 Mar 2002 12:03:47 GMT Andrew Wright wrote:

> Hello,
> 
> I've been trying to get the RBL tagging feature of qmail-ldap working
> with version 19 of the qmail-ldap patch
> (qmail-ldap-1.03-20011001a.patch) but without success.
 
I have recently encountered what I believe to be the same problem
with qmail-1.03 patched with qmail-ldap-1.03-20011001a and
qmail-ldap-control_20011029 [1].

[1] http://qmail.bayour.com/patches_ldap/

> Bouncing of the message works fine with the same setup.

Same here.

> Firstly i had to change line 651 of qmail-smtpd.c  as there was an
> argument passing mismatch.
> 
> from
> rblheader(qqt,remoteip,rblmessage.s);
> 
> to
> rblheader(&qqt,remoteip,rblmessage.s);

Disclaimer:  I am *far* from a professional C programmer;
consider my analysis accordingly.

The problem appears to be that rblheader() is called from
smtp_mail(), before qmail_open() is called in smtp_data().
It appears that fairly significant changes would need to
be made to the qmail-ldap patch for the RBLONLYHEADER option
to work properly.  I made an attempt at it, but in the end,
I found it easier to apply the rbltag patch [2] for header
tagging.

[2] http://www.lifewithqmail.org/ldap/#RBL%20Tagging
 
> but after that it still core dumps:
 
[debugging and (proper) configuration info snipped]

> Does anyone know if this is a setup or "not fully implemented
> yet" problem.
 
Looks like a "not fully implemented yet" problem to me, but one
of the patch authors may be able to give a more authorative
answer.

A slightly related observation:  I found that the RBL option causes
qmail-ldap to deny email with a "451 DNS temporary failure" error
when an RBL is unavailable (e.g. after orbz.org went offline or
when bl.spamcop.net acts up).  I haven't tested this thoroughly,
but it appears the rbltag patch will accept email even when the
RBL lookup fails.

Also, I found the documentation for a bit tricky to follow with
respect to RBL tagging.  I imagine part of that is because I am
fairly new to qmail.  Andre and Henning, if I were to create
patches to the RBL portion of the docs in "Life With qmail-ldap"
and "QLDAPNEWS" would you consider them for inclusion?

--Brad

> Thanks in advance,
> Andy.

Reply via email to