cPanel webmail Embedded in an iFrame

Matt E

Oct 15, 2013
cPanel Access Level
Root Administrator
I have a website which has a database that stores user email login credentials. I would like to embed the webmail for each user's email account into an iFrame. I am using HTTP authentication, so I would like something like this:

<iframe style="width:100%;height:600px;" src="https://user:[email protected]:2096/3rdparty/roundcube/?_task=mail&_refresh=1&_mbox=INBOX"></iframe>

cPanel responds to this by providing a 401 invalid login token. If you tell it to go to / instead of roundcube, it will work fine, but I'd like to to show roundcube immediately.