Last Modified 09/16/2008 by Eric Rostetter Show changes for 3
SQLAuthHowTo (3) Reload Page

NOTE: This page is a work in progress, and has not been tested. It may

or may not be of any use, may contain numerous errors, and may turn your

tongue a strange color. Use at your own risk.

First, install MySQL, following the directions found on numerous web sites on the internet.

Next, install Horde and IMP, following directions elsewhere on this wiki.

Then, install dovecot, following the instructions on http://wiki.dovecot.org/

Configure dovecot to use MySQL as per the directions at http://wiki.dovecot.org/AuthDatabase/SQL

Now, configure IMP:

need to login once (Horde passes authentication data to IMP).

Now, configure Horde:

SELECT * FROM users WHERE userid = \L AND password = MD5(\P);

INSERT INTO users (domain,userid,password) VALUES ('example.org', \L, MD5(\P));

NB: Change the domain to your domain in the above query.

UPDATE users SET password = MD5(\P) WHERE userid = TRIM('@example.org' FROM \L) LIMIT 1;

NB: Change the domain to your domain in the above query.

DELETE FROM users WHERE userid = TRIM('@example.org' FROM \L) LIMIT 1;

SELECT * FROM users;