Qmail-ldap - qmail-imap courier-imap-Version.3.0.8
Hello, I´m using qmail-ldap-couierImap like mix mail solution. Qmail-send, qmail-smtp, qmail-pop3, qmail-pop3-ssl and qmail-qmqpd in QMAIL Courier-authlib, Courier-imap and courier-imap-ssl in COURIER ( versions courier-imap-4.1.3 and courier-authlib-0.59.3 ) In qmail-ldap when you disable some account you put ldap attribute accountStatus to noaccess. It disables qmail-pop3 and qmail-imap(s) in account user. I have always wanted to remove courier-imap from my scenary and use qmail-imap but I could not do it becasue I must be able to disable independently pop3 and imap in some account. I have touch qmail-ldap code in order to add some level of account status == noimap and nopop3. So... qmail-ldap.h /* the same values as ints */ #define STATUS_DELETE 3 #define STATUS_BOUNCE 2 #define STATUS_NOACCESS 1 #define STATUS_NOIMAP 4 #define STATUS_NOPOP3 5 #define STATUS_OK 0 #define STATUS_UNDEF-1 #define ISACTIVE_BOUNCE disabled #define ISACTIVE_DELETE deleted #define ISACTIVE_NOACCESS noaccess #define ISACTIVE_NOIMAP noimap #define ISACTIVE_NOPOP3 nopop3 #define ISACTIVE_ACTIVE active qldap.c } else if (r == OK) { if (!case_diffs(ldap_attr.s, ISACTIVE_BOUNCE)) *status = STATUS_BOUNCE; else if (!case_diffs(ldap_attr.s, ISACTIVE_DELETE)) *status = STATUS_DELETE; else if (!case_diffs(ldap_attr.s, ISACTIVE_NOACCESS)) *status = STATUS_NOACCESS; else if (!case_diffs(ldap_attr.s, ISACTIVE_NOIMAP)) *status = STATUS_NOIMAP; else if (!case_diffs(ldap_attr.s, ISACTIVE_NOPOP3)) *status = STATUS_NOPOP3; else*status = STATUS_OK; /* default to OK */ /* perhaps we should spill out a warning for unknown settings */ return OK; qmail-ldaplookup.c switch (status) { case STATUS_BOUNCE: output(subfdout, %s: %s\n, LDAP_ISACTIVE, ISACTIVE_BOUNCE); break; case STATUS_NOACCESS: output(subfdout, %s: %s\n, LDAP_ISACTIVE, ISACTIVE_NOACCESS); break; case STATUS_NOIMAP: output(subfdout, %s: %s\n, LDAP_ISACTIVE, ISACTIVE_NOIMAP); break; case STATUS_NOPOP3: output(subfdout, %s: %s\n, LDAP_ISACTIVE, ISACTIVE_NOPOP3); break; case STATUS_OK: output(subfdout, %s: %s\n, LDAP_ISACTIVE, ISACTIVE_ACTIVE); break; and in checkpassword.c if ( status == STATUS_BOUNCE || status == STATUS_DELETE || status == STATUS_NOACCESS ) { qldap_free(q); return ACC_DISABLED; }else if ( status == STATUS_NOPOP3 ) { if ( strcmp(env_get(TCPLOCALPORT),110) == 0 || strcmp(env_get(TCPLOCALPORT),995) == 0 ) { fprintf(stderr,User %s is not allowed to log on PORT %s\n,login-s,env_get(TCPLOCALPORT)); qldap_free(q); return ACC_DISABLED; } }else if ( status == STATUS_NOIMAP ) { if ( strcmp(env_get(TCPLOCALPORT),143) == 0 || strcmp(env_get(TCPLOCALPORT),993) == 0 ) { fprintf(stderr,User %s is not allowed to log on PORT %s\n,login-s,env_get(TCPLOCALPORT)); qldap_free(q); return ACC_DISABLED; } } And it seems that`s is all right!!! Only one thing: If I want to use qmail-imap I have to use courier-login from courier-imap-VERSION-3.0.8. My question is: Is it safe? What`s your opinion? (use courier-imap-VERSION-3.0.8) Any bugs known in courier-imap-VERSION-3.0.8? Regards - Carlos García Gómez Sistemas de Información y Comunicaciones Fundación Integra. http://www.f-integra.org Teléfono: +34 968 355161 Fax: +34 968 355131 Correo: carlos.gar...@f-integra.org -- Este mensaje y los posibles documentos adjuntos al mismo son confidenciales y dirigidos exclusivamente a los destinatarios de los mismos. Si por un error de transmisión, o equivocación en la dirección de envío, usted ha recibido este mensaje y no es el destinatario de la información, por favor, notifíqueselo al remitente y borre este mensaje, sin usar, informar, distribuir, imprimir, copiar o difundir el mensaje, total o parcialmente, por
problem with qmail-ldap courier-imap
Dear Sir I have qmail-ldap i have install courier-imap imaplogin with squirrel webmail but problem is when user mails goes 2000 or 3000 my squirrel webmail not dispaly contect of pages get error of page can't be display ??? satish patel - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Re: QMAIL LDAP with IMAP
Courier IMAP is ok, you can also use it with imapproxy: http:// www.imapproxy.org, cat pkg-descr : The IMAP Proxy server is a caching IMAP proxy that was written to reduce the load that web mail clients put on an IMAP server be keeping server connections alive for reuse, thus avoiding a new server connection for each Webmail transaction. On Dec 20, 2005, at 8:57 PM, Rony wrote: I want Qmail LDAP with Courier IMAP And Internal mail with 300 person use IMAP and Extenal users with pop3 I question IMAP with 300 concurrent connecton will Slow Performance ?? Thanks
QMAIL LDAP with IMAP
I want Qmail LDAP with Courier IMAP And Internal mail with 300 person use IMAP and Extenal users with pop3 I question IMAP with 300 concurrent connecton will Slow Performance ?? Thanks
Re: Qmail-ldap and imap servers
* Dovecot CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN LISTEXT LIST-SUBSCRIBED NAMESPACE (0.99.14) * Binc IMAP CAPABILITY IMAP4rev1 STARTTLS AUTH=LOGIN AUTH=PLAIN (1.2.13) CAPABILITY IMAP4rev1 STARTTLS AUTH=LOGIN AUTH=PLAIN IDLE LITERAL+ NAMESPACE CHILDREN (1.3.4) Both servers follow rfc3501 security recommendations and disable plain text logins by default. There are some namespace differences between courier-imap and these two imap servers. Some courier packages depend on famd or need famd in order to improve performance. I wonder what other IMAP servers are available that support Maildirs natively? What version of courier-imap are you using? On 10/18/05, Matt Pruett [EMAIL PROTECTED] wrote: Sorry for being somewhat off topic as its not directly a qmail issue, however your the right audience for as a list you have tried many imap servers. I am currently using courier imap (and qmail-ldap), with a primarily outlook userbase. However I have had a number of problems over time, like it stops working, or gets very very slow every now and then and I have to kill off all of the imap processes and restart it to get it to work again. I have also seen some strange things in outlook like seeing duplicate messages and stuff, I think its mostly because outlook is such a poor imap client. However that can't really change. So the question is, in your experience what is the best maildir imap server for use with outlook, is it courier? or something else? Anyone run into problems like this on courier? thanks :) -- Matt Pruett [EMAIL PROTECTED] -- blog: http://www.mostlygeek.com
Re: Qmail-ldap and imap servers
anybody have any experience with setting up and running binc? I use Courier IMAP primarily with Horde/IMP for about 7000 users and it handles the load pretty good. Dovecot's indexes would be useful for me, but it's in Alpha and I prefer not to use alpha software in production. Ben.
Qmail-ldap and imap servers
Sorry for being somewhat off topic as its not directly a qmail issue, however your the right audience for as a list you have tried many imap servers. I am currently using courier imap (and qmail-ldap), with a primarily outlook userbase. However I have had a number of problems over time, like it stops working, or gets very very slow every now and then and I have to kill off all of the imap processes and restart it to get it to work again. I have also seen some strange things in outlook like seeing duplicate messages and stuff, I think its mostly because outlook is such a poor imap client. However that can't really change. So the question is, in your experience what is the best maildir imap server for use with outlook, is it courier? or something else? Anyone run into problems like this on courier? thanks :) -- Matt Pruett [EMAIL PROTECTED]
Re: Qmail-ldap and imap servers
I wonder what other IMAP servers are available that support Maildirs natively? What version of courier-imap are you using? On 10/18/05, Matt Pruett [EMAIL PROTECTED] wrote: Sorry for being somewhat off topic as its not directly a qmail issue, however your the right audience for as a list you have tried many imap servers. I am currently using courier imap (and qmail-ldap), with a primarily outlook userbase. However I have had a number of problems over time, like it stops working, or gets very very slow every now and then and I have to kill off all of the imap processes and restart it to get it to work again. I have also seen some strange things in outlook like seeing duplicate messages and stuff, I think its mostly because outlook is such a poor imap client. However that can't really change. So the question is, in your experience what is the best maildir imap server for use with outlook, is it courier? or something else? Anyone run into problems like this on courier? thanks :) -- Matt Pruett [EMAIL PROTECTED] -- blog: http://www.mostlygeek.com
Re: qmail-ldap + courier imap
Syahid Ali [EMAIL PROTECTED] wrote on 10/11/2005 12:56:18 PM: need some help here, more on imap though my /service/imapd run script is like this #!/bin/sh IPADDR=0.0.0.0 exec_prefix=/usr/lib/courier-imap . /var/qmail/service/imapd/imapd.config exec /usr/local/bin/tcpserver -c 100 -l 0 -v -R $IPADDR 143\ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd Maildir 21 i need the quota capability in courier-imap so i add inside imapd.config IMAP_CAPABILITY_ORIG=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE the problem is that when i telnet-ted to port 143, i only got this * OK [CAPABILITY IMAP4rev1 ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for di stribution information. am i missing something or is it something wrong with my qmail imap config or courier-imap config itself? thanks. me, syahid any alternatives other than using auth_imap, and how to do it?
Re: qmail-ldap + courier imap
Syahid Ali wrote: Manfred Langthaller [EMAIL PROTECTED] wrote on 10/11/2005 04:50:12 PM: Syahid Ali wrote: B S Srinidhi [EMAIL PROTECTED] wrote on 10/11/2005 04:21:23 PM: On Tue, 2005-10-11 at 12:56 +0800, Syahid Ali wrote: i need the quota capability in courier-imap so i add inside imapd.config IMAP_CAPABILITY_ORIG=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE That won't help. You'll have to export IMAP_CAPABILITY in courier-imap's run file and then restart the imap service. Srinidhi. -- B S Srinidhi [EMAIL PROTECTED] DeepRoot Linux Pvt. Ltd. i don't quite understand your reply. how do i accomplished this? thanks Hi! You export IMAP_CAPABILITY_ORIG but only IMAP_CAPABILITY (without _ORIG) should be exported. # cat /var/qmail/control/qmail-imapd.rules ... :allow,NOPBS=,IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE # telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. ... Manfred hi, been there, done that, but somehow it didn't work, am i missing s'thing? _my imapd.config_ IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE _my imapd runscript_ #!/bin/sh IPADDR=0.0.0.0 exec_prefix=/usr/lib/courier-imap . /var/qmail/service/imapd/imapd.config /usr/local/bin/tcpserver -c 100 -l 0 -v -R $IPADDR imap\ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd Maildir 21 _my qmail-imapd.rules_ :allow,IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE then i run, # svc -d /service/imapd # svc -u /service/imapd # telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information. Hi! First of all tcpserver needs a *.cdb file, which needs to be created. I would recommend to use /var/qmail/control/qmail-imapd.rules. Adopt this file and run make in /var/qmail/control/ = the new /var/qmail/control/qmail-imapd.cdb file should be created. In your imapd-run-script you shoud have something like: exec tcpserver -v -HRl $ME -x $QMAIL/control/qmail-imapd.cdb \ Manfred
Re: qmail-ldap + courier imap
On Tue, 2005-10-11 at 17:05 +0800, Syahid Ali wrote: hi, been there, done that, but somehow it didn't work, am i missing s'thing? I was not very verbose in my previous post. Sorry about that. my imapd.config Let us not think about the imapd.config or anything else that courier-imap has installed. They are never used if you are not using the init scripts or you don't source them explicitly before invoking imapd. my imapd runscript That will never work. You are not sourcing your imapd.config file and not exporting the variable. My run script says this: #!/bin/sh export IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE echo Starting Courier-IMAP Service... exec tcpserver -v -H -R -l 0 0 143 /usr/lib/courier/courier/imaplogin \ /var/qmail/bin/auth_imap /usr/bin/imapd Maildir 21 my qmail-imapd.rules :allow,IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE then i run, Two things why this won't work. You forgot to run the `make` command after editing this file and secondly you didn't use the qmail-imapd.cdb file inside your imap run file. Hope this time you get this to work. Srinidhi. -- B S Srinidhi [EMAIL PROTECTED] DeepRoot Linux Pvt. Ltd.
Re: qmail-ldap + courier imap
i need the quota capability in courier-imap so i add inside imapd.config IMAP_CAPABILITY_ORIG=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE That won't help. You'll have to export IMAP_CAPABILITY in courier-imap's run file and then restart the imap service. Srinidhi. -- B S Srinidhi [EMAIL PROTECTED] DeepRoot Linux Pvt. Ltd. i don't quite understand your reply. how do i accomplished this? thanks Hi! You export IMAP_CAPABILITY_ORIG but only IMAP_CAPABILITY (without _ORIG) should be exported. # cat /var/qmail/control/qmail-imapd.rules ... :allow,NOPBS=,IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE # telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. ... Manfred hi, been there, done that, but somehow it didn't work, am i missing s'thing? my imapd.config IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE my imapd runscript #!/bin/sh IPADDR=0.0.0.0 exec_prefix=/usr/lib/courier-imap . /var/qmail/service/imapd/imapd.config /usr/local/bin/tcpserver -c 100 -l 0 -v -R $IPADDR imap\ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd Maildir 21 Why are you trying to invent the wheel? Qmail-LDAP provides daemontools run scripts. Your script does not use /var/qmail/control/qmail-imapd.rules and /var/qmail/control/qmail-imapd.cdb. qmail-imapd.rules is used to build qmail-imapd.cdb. qmail-imapd.cdb is loaded in tcpserver call with -x option. Since you are running courier packaged by your OS packager - make sure that standard courier startup scripts are not active. netstat -anp | grep 143 If IMAP port is used by couriertcpd and not by tcpserver, your daemontools IMAP logs should be filled with 'unable to bind' errors. -- Tomas
Re: qmail-ldap + courier imap
Tomas Kuliavas [EMAIL PROTECTED] wrote on 10/11/2005 05:27:48 PM: i need the quota capability in courier-imap so i add inside imapd.config IMAP_CAPABILITY_ORIG=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE That won't help. You'll have to export IMAP_CAPABILITY in courier-imap's run file and then restart the imap service. Srinidhi. -- B S Srinidhi [EMAIL PROTECTED] DeepRoot Linux Pvt. Ltd. i don't quite understand your reply. how do i accomplished this? thanks Hi! You export IMAP_CAPABILITY_ORIG but only IMAP_CAPABILITY (without _ORIG) should be exported. # cat /var/qmail/control/qmail-imapd.rules ... :allow,NOPBS=,IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE # telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. ... Manfred hi, been there, done that, but somehow it didn't work, am i missing s'thing? my imapd.config IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE my imapd runscript #!/bin/sh IPADDR=0.0.0.0 exec_prefix=/usr/lib/courier-imap . /var/qmail/service/imapd/imapd.config /usr/local/bin/tcpserver -c 100 -l 0 -v -R $IPADDR imap\ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd Maildir 21 Why are you trying to invent the wheel? :) my mistake i just followed what's inside the qmail-ldap wiki. maybe it needs some updating. it's here FULL INSTALLATION GUIDE http://www.qmail-ldap.org/wiki/Full_Installation_Guide_-_IMAP_Server Qmail-LDAP provides daemontools run scripts. Your script does not use /var/qmail/control/qmail-imapd.rules and /var/qmail/control/qmail-imapd.cdb. qmail-imapd.rules is used to build qmail-imapd.cdb. qmail-imapd.cdb is loaded in tcpserver call with -x option. Since you are running courier packaged by your OS packager - make sure that standard courier startup scripts are not active. netstat -anp | grep 143 If IMAP port is used by couriertcpd and not by tcpserver, your daemontools IMAP logs should be filled with 'unable to bind' errors. -- Tomas
Re: qmail-ldap + courier imap
B S Srinidhi [EMAIL PROTECTED] wrote on 10/11/2005 05:25:48 PM: On Tue, 2005-10-11 at 17:05 +0800, Syahid Ali wrote: hi, been there, done that, but somehow it didn't work, am i missing s'thing? I was not very verbose in my previous post. Sorry about that. my imapd.config Let us not think about the imapd.config or anything else that courier-imap has installed. They are never used if you are not using the init scripts or you don't source them explicitly before invoking imapd. and if it's not used, how do i get MAXPERIP=? to work if this file is ignored? (2nd question :) ) my imapd runscript That will never work. You are not sourcing your imapd.config file and not exporting the variable. My run script says this: #!/bin/sh export IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE echo Starting Courier-IMAP Service... exec tcpserver -v -H -R -l 0 0 143 /usr/lib/courier/courier/imaplogin \ /var/qmail/bin/auth_imap /usr/bin/imapd Maildir 21 ok, now it's crystal clear. and it's working. even the quota plugin for my squirrelmail works perfectly. thanks a bunch. credits to thomas, manfred, you and all 4 the great help. my runscript is like this #!/bin/sh export IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE exec /usr/local/bin/tcpserver -H -c 100 -l 0 -v -x /var/qmail/control/qmail-imapd.cdb -R 0.0.0.0 143\ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd Maildir 21 my qmail-imapd.rules :allow,IMAP_CAPABILITY=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE then i run, Two things why this won't work. You forgot to run the `make` command after editing this file and secondly you didn't use the qmail-imapd.cdb file inside your imap run file. never know this even existed b4. thanks 4 the info. Hope this time you get this to work. Srinidhi. -- B S Srinidhi [EMAIL PROTECTED] DeepRoot Linux Pvt. Ltd.
Re: qmail-ldap + courier imap
On Wed, 2005-10-12 at 12:06 +0800, Syahid Ali wrote: and if it's not used, how do i get MAXPERIP=? to work if this file is ignored? (2nd question :) ) Export it in your run script. :) You can export whatever value you want ok, now it's crystal clear. and it's working. even the quota plugin for my squirrelmail works perfectly. thanks a bunch. Glad to know that you got it to work. :) credits to thomas, manfred, you and all 4 the great help. :) Srinidhi. -- B S Srinidhi [EMAIL PROTECTED] DeepRoot Linux Pvt. Ltd.
Re: qmail-ldap + courier imap
On Wed, 2005-10-12 at 12:00 +0800, Syahid Ali wrote: my imapd runscript #!/bin/sh IPADDR=0.0.0.0 exec_prefix=/usr/lib/courier-imap . /var/qmail/service/imapd/imapd.config /usr/local/bin/tcpserver -c 100 -l 0 -v -R $IPADDR imap\ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd Maildir 21 Why are you trying to invent the wheel? :) my mistake i just followed what's inside the qmail-ldap wiki. maybe it needs some updating. it's here There's another simple way to get this to work. I had missed a line while looking at your run script. After you source your /var/qmail/service/imapd/imapd.config file, just add the following lines to get the desired effect: export $IMAP_COMPATIBILITY export $MAXPERIP You could continue to add more lines like this for every variable that you want to use from your imapd.config file. This method would actually keep your run file clean. :) Srinidhi. -- B S Srinidhi [EMAIL PROTECTED] DeepRoot Linux Pvt. Ltd.
qmail-ldap + courier imap
need some help here, more on imap though my /service/imapd run script is like this #!/bin/sh IPADDR=0.0.0.0 exec_prefix=/usr/lib/courier-imap . /var/qmail/service/imapd/imapd.config exec /usr/local/bin/tcpserver -c 100 -l 0 -v -R $IPADDR 143\ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd Maildir 21 i need the quota capability in courier-imap so i add inside imapd.config IMAP_CAPABILITY_ORIG=IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE the problem is that when i telnet-ted to port 143, i only got this * OK [CAPABILITY IMAP4rev1 ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for di stribution information. am i missing something or is it something wrong with my qmail imap config or courier-imap config itself? thanks. me, syahid
qmail-ldap+courier imap auth problem
hi all, actually i've install, tested my qmail-ldap. it's working (my smtp, my pop3 and my imap). but my problem is when using courier-imap auth (authldap). right now, i'm running imap with courier-imap modify script like this /usr/lib/courier-imap/etc/imapd.rc -original- $PORT ${exec_prefix}/sbin/imaplogin $LIBAUTHMODULES \ ${exec_prefix}/bin/imapd ${MAILDIRPATH} -modify $PORT ${exec_prefix}/sbin/imaplogin /var/qmail/bin/auth_imap \ ${exec_prefix}/bin/imapd ${MAILDIRPATH} it's work, of course using /var/qmail/bin/auth_imap if using $LIBAUTHMODULES and setting up authldaprc like this LDAP_SERVER unix.abc.com LDAP_PORT 389 LDAP_BASEDN o=abc, c=com LDAP_BINDDN cn=root, o=abc, c=com LDAP_BINDPW LDAP_TIMEOUT5 LDAP_AUTHBIND 1 LDAP_MAIL mail LDAP_GLOB_UID 1234 LDAP_GLOB_GID 1234 LDAP_HOMEDIRmailMessageStore LDAP_MAILDIRMaildir LDAP_CLEARPWuserPassword LDAP_CRYPTPWuserPassword LDAP_TLS problem with courier-imap authentication (i mean to ldap directory) anyway, anybody have resolve this issue. thanks, amri