Ismail YENIGUL | 24 Feb 2012 13:49
Picon

qmail-ldap-1.03-20120221.patch

Hello,

It seems that there is a progress in qmail-ldap project. The latest 
patch is 20120221 at http://www.nrg4u.com.
I tried but failed to compile with the following errors:

qldap-filter.c: In function ‘filter_mail’:
qldap-filter.c:147: warning: assignment discards qualifiers from pointer 
target type
qldap-filter.c:182:2: error: #error XXX XXX
make: *** [qldap-filter.o] Error 1
and
auth_dovecot.o: In function `auth_init':
auth_dovecot.c:(.text+0x228): undefined reference to `loglevel'
auth_dovecot.c:(.text+0x234): undefined reference to `loglevel'
collect2: ld returned 1 exit status
make: *** [auth_dovecot] Error 1

diff -ruN qmail-ldap.orig/auth_dovecot.c qmail-ldap.new/auth_dovecot.c
--- qmail-ldap.orig/auth_dovecot.c 2012-02-24 14:43:41.615196114 +0200
+++ qmail-ldap.new/auth_dovecot.c 2012-02-24 14:31:59.668186556 +0200
 <at>  <at>  -127,7 +127,7  <at>  <at> 
void
auth_init(int argc, char **argv, stralloc *login, stralloc *authdata)
{
- extern unsigned long loglevel;
+ unsigned long loglevel;
char *l, *p;
unsigned int uplen, u;
int n, opt;
(Continue reading)

Felipe Augusto van de Wiel | 24 Feb 2012 15:42
Picon
Favicon

Re: qmail-ldap-1.03-20120221.patch


Hey,

On 24-02-2012 10:49, Ismail YENIGUL wrote:
> It seems that there is a progress in qmail-ldap project. The latest
> patch is 20120221 at http://www.nrg4u.com.

Nice to see some news. :-)  I missed the large quota support, and
speaking of features I'd love to see, I always wanted an option
to allow exceptions for the MAXRCPTCOUNT, the way I do it now is
running qmail-smtpd on an alternative port, but I'd like to
restrict who can authenticate/relay.  Anyway, thanks for the
update (and thanks to Andre, Claudio and Boris for the new patch).

For those like me that were curious about what changed, here is
the relevant section from QLDAPNEWS. :-)

 Add ~control/goodmailfrom, a list of addresses which will bypass any
 checks that would happen on the sender address. This also includes the
 RBL checks.

 Removed the TLD length check from SANITYCHECK since TLDs are on sale now.

 Implemented AUTHORIZED environment variable which is respected by qmail-smtpd.
 This is useful together with AUTHREQUIRED and external tools like pbscheck.

 qmail-smtpd and qmail-qmtpd respect the NOLOCAL environment variable. If set
 ~control/locals or ~control/locals.cdb is not considered to check if a
 recipient is a local address or not. Only the rcpthosts files are searched.

(Continue reading)

Claudio Jeker | 24 Feb 2012 17:15

Re: qmail-ldap-1.03-20120221.patch

Can you send me the exact Makefile definitions you used to build?
I will see that we can fix this...

On Fri, Feb 24, 2012 at 02:49:41PM +0200, Ismail YENIGUL wrote:
> Hello,
> 
> It seems that there is a progress in qmail-ldap project. The latest
> patch is 20120221 at http://www.nrg4u.com.
> I tried but failed to compile with the following errors:
> 
> qldap-filter.c: In function â??filter_mailâ??:
> qldap-filter.c:147: warning: assignment discards qualifiers from
> pointer target type
> qldap-filter.c:182:2: error: #error XXX XXX
> make: *** [qldap-filter.o] Error 1
> and
> auth_dovecot.o: In function `auth_init':
> auth_dovecot.c:(.text+0x228): undefined reference to `loglevel'
> auth_dovecot.c:(.text+0x234): undefined reference to `loglevel'
> collect2: ld returned 1 exit status
> make: *** [auth_dovecot] Error 1
> 
> diff -ruN qmail-ldap.orig/auth_dovecot.c qmail-ldap.new/auth_dovecot.c
> --- qmail-ldap.orig/auth_dovecot.c 2012-02-24 14:43:41.615196114 +0200
> +++ qmail-ldap.new/auth_dovecot.c 2012-02-24 14:31:59.668186556 +0200
>  <at>  <at>  -127,7 +127,7  <at>  <at> 
> void
> auth_init(int argc, char **argv, stralloc *login, stralloc *authdata)
> {
> - extern unsigned long loglevel;
(Continue reading)

Ismail YENIGUL | 24 Feb 2012 17:55
Picon

Re: qmail-ldap-1.03-20120221.patch

Hello,

On 24.02.2012 18:15, Claudio Jeker wrote:
> Can you send me the exact Makefile definitions you used to build?
> I will see that we can fix this...
Ok I see the problem. I forget to comment out #LDAPFLAGS= line.
Now this part is OK.
Only problem is with loglevel in auth_dovecot.

Btw, Do you have any plan for IPv6 support?
Me and my colleague is working on to fix depreciated functions in LDAP 
to avoid DLDAP_DEPRECATED declration for OpenLDAP 2.4

I think, it would great to create a tarball contain all these patches as 
a distribution callled something qmail-ldap version X

Thanks
> On Fri, Feb 24, 2012 at 02:49:41PM +0200, Ismail YENIGUL wrote:
>> Hello,
>>
>> It seems that there is a progress in qmail-ldap project. The latest
>> patch is 20120221 at http://www.nrg4u.com.
>> I tried but failed to compile with the following errors:
>>
>> qldap-filter.c: In function â??filter_mailâ??:
>> qldap-filter.c:147: warning: assignment discards qualifiers from
>> pointer target type
>> qldap-filter.c:182:2: error: #error XXX XXX
>> make: *** [qldap-filter.o] Error 1
>> and
(Continue reading)

Claudio Jeker | 25 Feb 2012 00:09

Re: qmail-ldap-1.03-20120221.patch

On Fri, Feb 24, 2012 at 06:55:35PM +0200, Ismail YENIGUL wrote:
> Hello,
> 
> On 24.02.2012 18:15, Claudio Jeker wrote:
> >Can you send me the exact Makefile definitions you used to build?
> >I will see that we can fix this...
> Ok I see the problem. I forget to comment out #LDAPFLAGS= line.
> Now this part is OK.
> Only problem is with loglevel in auth_dovecot.

This is a missing #ifdef DEBUG in auth_dovecot.c the attached patch should
solve this.

The issue with the #error XXX XXX when compiling without -DDASH_EXT is
currently unclear to me. I commited that 3 years ago :( and I need to
read the code again to understand why I did that (maybe some stupid debug
code was commited).

> Btw, Do you have any plan for IPv6 support?

Currently there is no plan (AFAIK). It would require some massive work to
make this happen.

> Me and my colleague is working on to fix depreciated functions in
> LDAP to avoid DLDAP_DEPRECATED declration for OpenLDAP 2.4

That would be appreciated. This is one thing that is currently on my TODO
list.

> I think, it would great to create a tarball contain all these
(Continue reading)

Gennady G. Marchenko | 27 Feb 2012 10:14
Picon
Favicon

Re: qmail-ldap-1.03-20120221.patch

Hi, Claudio

Is it any plan to support large quota in qmail-ldap patch?

Some years ago there was no any problem with it, but we are fully 
migrated to imap4 so now big quota is our main every days head ache.

Best wishes,
Gennady.

Ismail YENIGUL | 29 Feb 2012 20:41
Picon

Re: qmail-ldap-1.03-20120221.patch

Hello Gennady,

I am working on a qmail-ldap tarbal that cover most popular patches. so 
far, I only integrated big quota patch.
If you only need this patch, I can send you patch for qmail-ldap-2012

Thanks
Ismail YENIGUL
Project Manager

Phone :+90 216-4709423 | Mobile:+90 533 747 36 65
SurGATE: West Coast Labs Premium Anti-Spam Certificated
Twitter: http://www.twitter.com/endersys
Blog: http://blog.endersys.com

On 27.02.2012 11:14, Gennady G. Marchenko wrote:
> Hi, Claudio
>
> Is it any plan to support large quota in qmail-ldap patch?
>
> Some years ago there was no any problem with it, but we are fully 
> migrated to imap4 so now big quota is our main every days head ache.
>
> Best wishes,
> Gennady.
>

Favicon

Re: qmail-ldap-1.03-20120221.patch

Hi all,  I have made some patches but wondering if there are any plans
to include them on the latest version the patch or if they are already
included.

2 of the patches are here:
http://code.google.com/p/qmail-ldap-smtpauthuser/wiki/SETUP   (SRS and
smtpauthuser environment var)

and the third one is here:

http://www.freebsd.org/cgi/query-pr.cgi?pr=165277 or
http://qmail-ldap-smtpauthuser.googlecode.com/svn/trunk/qmail-qmqpc-servers_on_cmd_line.c

this one is for allowing ezmlm list to use multiple servers when using
qmqpservers

regards.

On Fri, Feb 24, 2012 at 4:15 PM, Claudio Jeker <jeker <at> n-r-g.com> wrote:
> Can you send me the exact Makefile definitions you used to build?
> I will see that we can fix this...
>
> On Fri, Feb 24, 2012 at 02:49:41PM +0200, Ismail YENIGUL wrote:
>> Hello,
>>
>> It seems that there is a progress in qmail-ldap project. The latest
>> patch is 20120221 at http://www.nrg4u.com.
>> I tried but failed to compile with the following errors:
>>
>> qldap-filter.c: In function ā??filter_mailā??:
(Continue reading)


Gmane