From: Douglas Campbell <doug.campbell@cr...> - 2006-03-21 05:17:59
Go to the plugins area at http://www.squirrelmail.org and look for the section
entitled "logging in". Under there is a plugin called "virtusertable"
which does some of what you want. I have my sendmail server in the same
box as my http server, so the e-mail address is translated into a userid
using the virtusertable plugin via the sendmail virtusertable, and the
userid along with the password is then used to authenticate against an
IMAP server. Sadly, your third request doesn't happen (I'd sure like it
to happen too, so users can't spoof their identities). Hopefully this
is close to what you want. Some quick PearDB coding may get you the SQL
part if virtusertable can't do the job as-is.
>From: Andy Dills <andy@...>
>In a nutshell, this is what I would like to accomplish:
>- At login, the user supplies an email address and password, rather than a
>username and password.
>- A sql query translates the email address into a username, which is used
>to authenticate against the IMAP server.
>- The email address supplied at login is used as the From address for the
>duration of the session.