Kathleen Farber wrote:
> 
> Anything I should be aware of for installing Courier IMAP with
> vpop and vchkpw
> 
> We would like to install sqwebmail but worried about screwing things up
> since it took a month to get it running the right way with no error messages
> ::whew::
> 
> Red Hat Linux 6.2
> Current Qmail, QmailAdmin, EzMLM, vpop, vchkpw
> 
> Also, if anyone knows why when using autoresponders why the mail bounces but
> yet the autoresponder goes out would be much appreciated!
> 
> Kathleen

Here is my configure line for sqwebmail to work with vpopmail:
./configure --enable-webpass=vpopmail --without-authuserdb
--without-authpam \
--without-authpwd --without-authshadow --without-authldap
--with-cachedir \
--with-authvchkpw --enable-imageurl=/images/sqwebmail/ \
--enable-imagedir=<dir>

Here is my configure line for courier imap
./configure --without-authuserdb --without-authpam \
--without-authpwd --without-authshadow --without-authldap \
--with-authvchkpw --enable-workarounds-for-imap-client-bugs

One gotcha with the courier-imap. If you are using mysql, sybase or
oracle, you need to edit the courier-imap code. In the authlib
directory, find the vauth_getpw function call and add a vclose();
right after it.

The reason why is, a courier-imap client causes a courier-imap 
process to run on the server. Unlike pop, the courier-imap server
process stays active for the entire session. So if you have 
200 people using imap, you'll have 200 courier-imap server
processes running on your machine.

Now the reason for the vclose() is that vpopmail API doesn't
explicitly close the connection to the database. Once the
vauth_getpw() function is run, courier-imap has all the
information it ever needs from the database. At that point
we need to call vclose() to close the database connection.
If not, those 200 imap clients will cause 200 database 
connections to stay open. 

The vclose() call isn't needed if you are using the file
based authentication module in vpopmail. Since the files
are closed during each vpopmail api function call.

Ken

Reply via email to