Some CMS systems have the ability, via modules, to automatically create a user email account, based in part that members username, through cpanel.

Does such a module or project exist for drupal ? I searched the download modules and came up short.

Comments

vigo-1’s picture

I'd imagine it would be easy enough, as long as CPanel has an API and the admin gives you the relevent usernames and passwords. Can you provide a link to a system that already does this?

desm0n’s picture

Quite a few CMS systems i've used have had the facility and i think it would be a great feature for drupal.

Mambo has one here for instance :-

http://mamboxchange.com/projects/bucabay/

This one hasn't been updated for quite some time. I've seen similiar on phpnuke as well.

Vbulletin has a similiar module :-

http://www.vbulletin.org/forum/showthread.php?t=109598&highlight=cpanel+...

Hope that helps those that can develop such a module as its a very handy feature and build community loyalties.

MrMattles’s picture

Well I reckon one step further is needed if you could allow people to sign up to your site at domain.com there user name should automatically become username@domain.com and then we could merge something like the following http://www.howtoforge.com/virtual_postfix_mysql_quota_courier with drupal to create not only the beginnings of a great webmail system but virtual domain based email :)

...

desm0n’s picture

Wow thats a little more than i had in mind :)

Basically my idea was that, as you said, the members name becomes their email address at your domain and they assign a password to it themselves if they opt to sign up for free email accounts, Then they are presented with full instructions and "maybe" an outlook express quick setup file for them to get up and running.

But theres certainly nothing wrong with improving the idea :)

vigo-1’s picture

That sounds great. Of course we'd need an extension or to use LoginTobbagon's (spelt worng - sorry only got 2 mins) functions to ban usernames like sales@ or billing@. It would be good if it had an implementation non-dependant API system, by that I mean with the addition or removal of just one module to the core system it could work with CPanel, DirectAdmin, HSphere, Plesk, Helm etc...

Would be a very interesting project, unfortunately I don't have the time to do it myself or even plan the database schema and major function paths. Unless someone can put up some money of course :-) Someone please take this on - would be a great addition to Drupal!

MrMattles’s picture

I did the with 4.6.4 but i have in recent weeks sold my company, I will howver be roling out some new servers soon and would be happy to tackle it and upload a how to......i didnt have a problem with login and banning the usernames@ for some reason but i will research this some more...because i was running a multi site config the only thing i wanted and couldnt have last time was the domain name automatically append to the username when the first signed up, if someone can work out a custom signup to detect the domain and append it to the user name in the table i will play with the integration of the postfix/imap into the drupal db and hopefully we can get it workin
it will just be a few weeks till i get my new servers thats all.....

yecarrillo’s picture

Feel free to try this code. I were using this module with drupal 4.6.4 but stop working on it a few months ago. I got CVS access last week, so I think it will be a great idea update its code to 4.7

Be aware: This module will create email accounts FOR EACH drupal user at login time.

I tested this module in datacities.com and works fine.

TODO:
-Create ftp accounts
-Create emails accounts or ftp accounts only for selected roles.
-Massive deletions

This code is under development. Use it at your own risk!

cpanel.module (CVS)

jacauc’s picture

This commit doesn't seem to work for me, but I love the idea!
(...and I'm posting here to keep track of the issue :P)

Cheers
jacauc

http://www.dieinter.net

yecarrillo’s picture

Oh. It needs cosmetc changes to 4.7. It's on 4.7 branch by error.

bradlis7’s picture

Awesome. It'd be cool if the admin could have the option to approve accounts first (for paid accounts and such).
--
Bradlis7.com | Churchofchristnet

yecarrillo’s picture

This is for 4.6.x. Not updated for 4.7.x yet!

http://ftp.osuosl.org/pub/drupal/files/projects/cpanel-4.6.0.tar.gz

New features:
- Email creation restricted for roles
- User can decide if wants email account (Via profile configuration)
- Massive deletions are now possible: Admins can delete All email accounts created by this module and change the quota for all accounts.
- Some work in FTP accounts... (in progress)

Please request features here:
http://drupal.org/node/add/project_issue/cpanel/feature
or
report bugs here:
http://drupal.org/node/add/project_issue/cpanel/bug

bradlis7’s picture

I don't know if the project is pending, but it comes up with "Project: <none>" when I click the links. I also didn't find a project at http://drupal.org/project/cpanel, so that could be part of the problem.

--
Bradlis7.com | Churchofchristnet

bradlis7’s picture

<>

desm0n’s picture

Sorry ive been away for a few weeks in Turkey but if i read whats being posted its still a work in progress for 4.7 regards email account creation ?

yecarrillo’s picture

Hello desmon.

From yesterday, Cpanel integration module is ready in both 4.6 and 4.7 flavors. Please download the latest version of 4.7.x.

Comments and suggestions are welcome. Enjoy!

desm0n’s picture

haven't as yet had a chance to try this but does it create automatically an email account or does it allow the members of the site to sign up for one.

If the latter, and i hope thats the case, does it offfer them guidiance on how to set up their outlook express client etc ?

Great work btw and i will try it soon for sure as this is a very handy and much needed feature.

yecarrillo’s picture

Users can opt for an email account from profile edition page.

Once configured this module, users will see this text:

Check to create an email account with your username. You can connect to mail.example.com with your IMAP/POP3 client.

username@example.com

No more instructions provided.

desm0n’s picture

ok little confused here :)

Module installed and working and proceeded to setup.

I log into my cpanel through http://www.porttalbotchat.co.uk:2082 so i typed in that as the server address and got an error. So i changed it to www.porttalbotchat.co.uk and set the port as 2082 and the error went away.

I set up the username and password as required and enabled email accounts and access control. Everything appeared as it should be.

However when enabling a new email account per user basis nothing is being created in cpanel it would seem.

I set the email domain to be porttalbotchat.co.uk.

porttalbotchat.co.uk is set as sub domain of onebigbite.com so i'm wondering if this is the problem ?

Any guidiance here would be appreciated.

Also a suggestion if i may. If you could alter the info under the module so we could have a custom help tag (i.e under where you say "Check to create an email account with your username. You can connect to mail.example.com with your IMAP/POP3 client.") we could link to a help manual on how to set up your email client etc.

Module is looking good and i'm sure its something silly i have yet to set up.

yecarrillo’s picture

Ok. Please re-submit your issues here:

http://drupal.org/node/add/project_issue/cpanel/feature

to make a better use of the Drupal infrastructure.

marfy’s picture

Have just resolve my problem

I had c-panel with rv themes and the cpanel modul works only with the basic x theme

I have changed the theme on www.borodske.com and it's working now, may be in next version the theme of the panel could be selected from drop down list