Roundcube Community Forum

 

Multiple domains with same user trying to send - issue

Started by saramathison, June 25, 2010, 10:12:27 AM

Previous topic - Next topic

saramathison

Hi Everybody,

I have the last version of roundcube installed and working. I have a dropdown menu setup when people login they can chose their server, then put in their username and password and successfully login. It is very nice, thank you.

The problem is, I have users who have accounts in both domains and need to be able to send email from both. Right now, when userA logs into domain1 and then then logs out and then logs into domain2, when they click on Compose, in the Sender field is userA@domain1  ...but they are logged into domain2.

I figured out that when a user logs in for the first time their identity is created in the database, including the hostname. So it doesn't matter what domain they log into, their Sender address is now the first domain/hostname they logged into.

I thought of a few fixes but I don't know how to do them. Could the domain name be tacked onto the end of the username in the database so then the user would have two entries in the database?

Or maybe I should split out the two domains into separate roundcube installations? I'd still like the one login page tho. So I'm not sure how to make it point to different installations.

I'd take any other suggestions on how to handle this.

Thank you very much for your help!

sayajin

well i would guess that you would need to use the plugin "virtuser_" and get it to pull the full email address including the domain and check the user against the database/file entry. or take away the domain selection, and tell them to type in their full email address when they login.

saramathison

Thank you sayajin!

Unfortunately, I can't have them type their full address because they don't have to in the current webmail (installed by another admin before me, not roundcube). I was told that specifically had to work the same.

Will the "virtuser_" plugin just add the domain at the end when they log in? So they have a [email protected] and [email protected] in the user table? The the file has to be created with all of the users right? Or is that dynamic?  

I am also considering going the route of our current webmail, which is two separate installs of the other webmail (so in the future, roundcube). But I don't know how to write a frontpage that passes the creds to the current install after they pick the domain.  Is there a plugin to do that?

Thank you again for the help!