-----Original Message-----
From: Manfred [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 24, 2006 07:10
To: [email protected]
Subject: Re: rcpthosts

>> Why doesn qmail-ldap not do lookups for all hosts in rcpthosts?
>>
>> None of my users are on the qmail system, or a qmail system for that
>> matter. I want the lookups to be done and then the email forwaded (if
>> the lookup succedeed) to another server(Exchange, boo) internally
after
>> that. How can I configure qmail-ldap to do this?
>>
>> -Clayton

>I'm using the nice little patch from Eric Hoeve (on list in Jun 2005)
which 
>checks RCPTCHECK also for non local users over LDAP.
>One installation has 2 qmail-ldap and one scanner smtp-gateway on one
>server 
>in a row. One qmail-ldap is used for in front check with rbl,
rcptcheck, >etc. 
>than virus, spam and finally local delivery.
>
>BTW: I think it would be a nice option to stock qmail-ldap
>
>Manfred
>
>--- qmail-1.03/qmail-smtpd.old 2005-06-21 14:26:59.000000000 -0500
>+++ qmail-1.03/qmail-smtpd.c   2005-06-21 14:27:24.000000000 -0500
>@@ -1114,9 +1114,9 @@
>   if (rcptcheck) {
>     if (!goodmailaddr()) {
>       logline(4,"recipient verify, recipient not in goodmailaddr");
>-      if (addrlocals()) {
>+      if (addrallowed()) {
>       char *s;
>-      logline(4,"recipient verify, recipient is local");
>+      logline(4,"recipient verify, recipient is allowed");
>         switch (ldaplookup(addr.s, &s)) {
>           case 1: /* valid */
>           logline(4,"recipient verify OK");

Right on Manfred!

I am going to apply this patch and here's to hoping for the best!

-Clayton

Reply via email to