External Login to Web Mail

2.2k views Asked by At

I was wondering is there anyway I can let people login from a normal PHP page into SquirelMail/Roundcube etc?

So I would have a login lay-out setup and if they fill in their e-mail and password it logs them in to SquirellMail/Roundcube? They must not use the login page of SquirelMail but the one I created.

Is this possible, if yes how?

2

There are 2 answers

0
Jervelund On BEST ANSWER

This looks like what you are requesting: http://squirrelmail.org/wiki/EmbeddedSquirrelMailLogin

0
AudioBubble On

Roundcube

index.php.diff

104,105c104,105
<   if ($auth['valid'] && !$auth['abort'] &&
<     $RCMAIL->login($auth['user'], $auth['pass'], $auth['host'], $auth['cookiecheck'])
---
>   if (
>     $RCMAIL->login($auth['user'], $auth['pass'])
308d307
< 

login.html (to test)

<form name="form" action="http://webmail.example.com/" method="post">
    <input type="hidden" name="_task" value="login">
    <input type="hidden" name="_action" value="login">
    <input type="hidden" name="_timezone" id="rcmlogintz" value="_default_">
    <input type="hidden" name="_url" id="rcmloginurl">
    <input name="_user" id="rcmloginuser" size="40" autocapitalize="off" autocomplete="off" type="text">
    <input name="_pass" id="rcmloginpwd" size="40" autocapitalize="off" autocomplete="off" type="password">
    <input type="submit" class="button mainaction" value="Enter" /></p>
</form>