Mail services for CMS

I have created a hosted CMS with PHP on a LAMP VPS. I want to provide email services for my clients, but cannot give them cPanel access. So right now I have to create their email accounts, although they can afterwards manage them with webmail via Horde or Roundcube.

I’m looking for a mail web application built with PHP that will allow my clients to completely manage their mail themselves. Or maybe there is a PHP class available which I can build upon.

Any reason why you can’t still give them Cpanel access but limit what they have access to?

There are two reasons I can’t give the clients cPanel access.

  1. This is a hosted CMS. All the websites (and domains) are within a single cPanel account.

  2. I don’t want my clients to see or have access to any features in cPanel. The only access they have is through the CMS.

I’d suggest having a look at script repositories like http://www.hotscripts.com/category/scripts/php/scripts-programs/email-systems/web-based-email/ - the first result there http://hivemail.com looks promising?

I was curious so I conducted a search for a cpanel api and found this.

Which lead me to this.

https://documentation.cpanel.net/display/SDK/Software+Development+Kit+Home

So in theory you could use the above github class or build your own to programmatically authenticate and add email accounts.

Here is the cpanel api2 method to add an email account.

https://documentation.cpanel.net/display/SDK/cPanel+API+2+Functions+-+Email%3A%3Aaddpop

Digging more into it here is the official cpanel php sdk.

https://github.com/CpanelInc/publicapi-php

Funny that the OFFICIAL api was no were to be found in google when I searched “cpanel api”.

Thank you both.

The cPanel API possibility is intriguing.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.