Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a client who's site is built using WordPress. The account is using cPanel with webmail accessible at domain.com/webmail. They have 2 email accounts setup (user1@domain.com and user2@domain.com). I would love to be able have them access their webmail by logging into their WordPress site and clicking a menu link saying "Access Webmail" and then either pulling the cPanel webmail into an iframe, or some other method, but would ideally like to either sync or pre-populate the webmail info with their WordPress user info (email addy and password). I have searched for a plugin but haven't found anything. Anybody ever done this? Where would I begin? Thanks!

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You would have to write this from scratch but it is entirely possible.

cPanel webmail is already configured to work with Horde, Roundcube and SquirrelMail which are all open source and very well documented. The main issue that wouldn't make it seamless is that cPanel uses exim4 as an email server and there would be no way to map the WordPress username and password info with the server authentication. This means they would have to be logged into both WP and cPanel.

Roundcube is better documented than SquirrelMail and you could probably work with the api and include the necessary code using includes from WordPress.

If you wanted to sync the user info you would need to install dovecot and postfix which can use virtual users that are mapped to mailboxes via a mysql database. You could just change the mappings to the WordPress database.

I'm writing a plugin for a client that will administer the email server from the WordPress dashboard but email functions aren't needed. I built the email servers from scratch using this excellent guide.

My plugin will create email accounts for WordPress users and also allow the admin to manage email accounts for the entire domain including non WordPress users. It will also allow the admin to create additional virtual aliases (forwarding email addresses).

share|improve this answer
    
Hey Chris_O -- I ended up giving up on the sync portion and just included it via the iframe option. User has to log in twice but I told them it was a security preventative and they're okay with that. Works pretty nice, but I'd definately be interested in your plugin! Please keep me in the loop! –  RodeoRamsey Aug 19 '11 at 14:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.