NEW VERSION 2.0 SUPPORTS 0.2.1I have had many ask for the source of my company EmailPackRat.com. Well, i've finally gotten it cleaned up enough to pass it on.
Here's the Demo Running Round Cube 0.2stable (Version 1.1):
*REMOVED. OBSOLETE**
Here's the Demo Running Round Cube 0.2.1 (Version 2.1):
Email Packrat Development Install (http://www.emailpackrat.com/dev/)
Here's what you get:- Custom logo PSD for you to modify your login/signup page.
- Modified DirectAdmin password change to modify the database for user signup so they coincide.
- Modified the mvision skin to work with signup and directadmin changes
- Added Ajax Successful save to the password change function (the original directadmin password change did this with a popup window instead of the green ajax top)
- Added Captcha to the signup process to make it more secure.
Known issues:- mvision theme has problems with IE and the flagged image. (The next version (2.1)will be running umich)
To be done in the next release (2.1):- Remove theme selection drop down drop preferences (DONE)
- Change to Umich theme because mvision is to buggy....(Thanks to ksteinhoff for the theme) (DONE)
- Fix Umich IE mailbox list problem where it overlaps (DONE)
- Add import and export addressbook functions to the Umich theme (DONE)
- Change default Umich folder icons (DONE)
- Add Password Change functions to new Theme (DONE)
- Fix "Email Address" from wrapping on login page (DONE)
- Add trash full icon (Thanks to lacri for this addon) (DONE)
- Create new install package (Planning Stages)
- Clean up CSS (DONE)
- Remove specialized folders from properties (DONE)
- Fix Html compose bug in reply to Text format email (http://www.roundcubeforum.net/theme-releases/3850-umich-skin-4.html#post17218) (Thanks to Uschinator for the fix) (DONE)
- Add ActiveSync push mail information to login page. (Planning Stages)
- Remove help link on umich theme. (DONE)
- Change Favicon.ico (DONE)
Server side patches to IMAP, EXIM & Direct Admin(1) Had to change the default spam folder to .Junk in Directadmin and for the already created domain (emailpackrat.com).
*NOTE* this is only needed if you the domain already exists in DirectAdmin. if you are starting from scratch, change section (2) and you won't need to do this. Here's what I did:
In /etc/virtual/%yourdomainname%/filter I removed everything inside of it and replaced it with:
# Exim Filter
# created by DirectAdmin, version 1.33.3
# Do not modify this file as any changes will be
# overwritten when the user makes a change.
# (data is only written to this file, not read)
if error_message then finish endif
if
$h_X-Spam-Status: contains "Yes,"
then
if
$local_part is "admin"
then
save /home/admin/Maildir/.Junk/new/ 660
else
save /home/admin/imap/$domain/$local_part/Maildir/.Junk/new/ 660
endif
finish
endif
#end filter
(2) I also had to replace "
.INBOX.spam" with "
.Junk" in both
filter_spamfolder &
filter_userspamfolder. These files are located in
"/usr/local/directadmin/data/templates" This ensures that all domains added to directadmin automatically have the "
.Junk" folder as the spam folder in /etc/virtual/%yourdomainname%/filter.
*PATCH 1.1*There is a bug in the original version (1.0) that prevents the proper detection of a username's already taken. I have modified the zip below but feel free to just modify it yourself with the code below. Here's how to fix it.
Find the following line in emsu/signup.php$result = mysql_query("SELECT id FROM useraccounts WHERE username='$requser'")
Replace with $result = mysql_query("SELECT id FROM useraccounts WHERE username='$requser@$domain'")
Fix for 2.1 .cpanel error
Open signup.php and comment the following lines from line 83 down
// Get Cpanel connection details from DB
//$result = mysql_query("SELECT username, password, ip, port FROM cpanel")
//or die(mysql_error());
//$row = mysql_fetch_array( $result );
*UPDATE/ADDON in Version 1.1* (Thanks to Mahalo for the great suggestions)- Changed the password field so that it doesn't show what's typed
- Changed the security question to a predefined set.
[/COLOR]
*UPDATE* Version 2.0THIS PATCH IS FOR 0.2.1 SUPPORT. IF YOU ARE USING 0.2.1 PLEASE USE THE APPROPRIATE ZIP FILE.[/COLOR]
Here's the Download (1.1 = 0.2stable | 2.0 = 0.2.1):
If you like it please respond or rate the post. it makes me feel good :D
Tyvm , I signed up with the forum just to download and use your script , will come in handy :D Nice website btw.
No problem. I'm working on a new version for the new release. I've also found a small problem (not a vulnerability) with the source. I will be fixing that and releasing very soon so stop by often.
Oh man... I went through all of it and then found out that I have to pay for direct admin a minimum of $29 a month...
I use Webmin/Virtualmin as my control panel and don't plan on using Direct Admin so I guess I'm shot down.
Anyway, looks like a great product. Some things that I noticed that you may consider in future releases might be:
1) Populated security questions. When I was entering questions I got booted several times because I was using apostrophes, like in "What is my dog's name" and it didn't like those.
2) Hiding the password when signing up.
Other than that (and the Direct Admin thing) it is awesome. Best of luck to you.
Mahalo,
When I get a free second I'll work on a webmin version for you (If there is an email API). As for the suggestions, I will add those now :)
Thanks,
Chris
*UPDATE*The changes have been made and a patch has been released, Please check the first thread.
Quote from: Mahalo;18124Oh man... I went through all of it and then found out that I have to pay for direct admin a minimum of $29 a month...
I use Webmin/Virtualmin as my control panel and don't plan on using Direct Admin so I guess I'm shot down.
Anyway, looks like a great product. Some things that I noticed that you may consider in future releases might be:
1) Populated security questions. When I was entering questions I got booted several times because I was using apostrophes, like in "What is my dog's name" and it didn't like those.
2) Hiding the password when signing up.
Other than that (and the Direct Admin thing) it is awesome. Best of luck to you.
Awesome! I'm subscribed to this thread so I'll check back often! Thanks again for your work. This is a really valuable addition to the RoundCube world.
I just finished the patch for 0.2.1. If you are using 0.2.1 please download version 2.0. For those of you using 0.2stable, please use 1.1
I have created a Development site to test new updates. If anyone wants to help find bugs for me it would be greatly appreciated.
Email Packrat Development Install (http://www.emailpackrat.com/dev/)
*CHANGE REPORT*[/COLOR]
- Moved to Umich Theme
- Change the login screen to look cleaner
- Removed the ability to change themes within preferences
*THINGS TO DO*[/COLOR]
- Add the password tab to the settings window (DONE)
- Adjust internal logo's (DONE)
- Create new install package
- Clean up CSS (DONE)
- Remove specialized folders from properties
this thread looks good, i should be be subscribing to it(http://photosnag.com/img/3347/n09x0302vnsn/clear.gif)
Quote from: fast1;18304this thread looks good, i should be be subscribing to it(http://photosnag.com/img/3347/n09x0302vnsn/clear.gif)
Sweet, I'm glad you are interested. if you have any suggestions please let me know. I'm always looking for improvements.
Thanks,
Chris
Can this be used with cpanel?
Im a noob!
Quote from: Pumxee;18360Can this be used with cpanel?
Im a noob!
There would be some minor modifications but yet. the direct admin patch was based on a cpanel patch. you just need to know what the API URL is and the requirements. once you've got that, you just modify the HTML within my script to follow that API order.
Hi,
This looks great and exactly what I what from RoundCube.
I am a complete beginner but would like to know if this will work with RoundCuke on LXAdmin which has it integrated, and if so how do I install it so that I can change the logo to my own domain and use your theme?
Thanks!
Quote from: IrishLad;18374Hi,
This looks great and exactly what I what from RoundCube.
I am a complete beginner but would like to know if this will work with RoundCuke on LXAdmin which has it integrated, and if so how do I install it so that I can change the logo to my own domain and use your theme?
Thanks!
If LXAdmin has api functions to create email addresses, then yes it can. Here's how it works with directadmin.
All this does is add variables for the following Directadmin API "CMD_API_POP"
http://domainname.com/CMD_API_POP&action=create&domain=domain.com&user=emailuser&passwd=password"a=10
Here is the reference from directadmin:
DirectAdmin Web Control API (http://www.directadmin.com/api.html#email)
If you can find the same create email API for LXAdmin, I will modify it for you to work. As for the images, they are included in the download in PSD format.
thanks,
Chris
P.S.
If your in need of another host, let me know :)
Wow, so many downloads but so few comments. Come on folks! give me your suggestions....
hmmm i did evrything how is told in tutorial. But somewhy i cant create new account because than i write data after i press confirm/ok button its like connecting to someone and after some time white screen. And also after i change password. Password stay the same like it was before ;/
My version: roundcube 2.1
Directadmin
Maybe its because my directadmin account have two domains but the jpa.lt is set as default.
(http://img10.imageshack.us/img10/2079/testjah.th.jpg) (http://img10.imageshack.us/img10/2079/testjah.jpg)
Quote from: DJManas;18711hmmm i did evrything how is told in tutorial. But somewhy i cant create new account because than i write data after i press confirm/ok button its like connecting to someone and after some time white screen. And also after i change password. Password stay the same like it was before ;/
My version: roundcube 2.1
Directadmin
Maybe its because my directadmin account have two domains but the jpa.lt is set as default.
(http://img10.imageshack.us/img10/2079/testjah.th.jpg) (http://img10.imageshack.us/img10/2079/testjah.jpg)
domain shouldn't matter. did you install the sql piece that i gave you? do you want me to take a look at your install and trouble shoot it?
Thanks,
Chris.
one more thing, what is your url? i will give it a look.
Quote from: HawtDogFlvrWtr;18737one more thing, what is your url? i will give it a look.
It would be nice if you would contact me in skype. My skype: djmanass
My roundcube url: Email Packrat :: Welcome to Email Packrat (http://fm.jpa.lt/roundcubemail/)
Test account:
username:
[email protected] password: test123
I tryed a lot of plugins with change password and auto signup and all have the same problem its after i write username password and other information its just loading something and after that white screen. And with changing pass its write password changed sucessfully but its stay the same as it was before.
Quote from: DJManas;18761It would be nice if you would contact me in skype. My skype: djmanass
My roundcube url: Email Packrat :: Welcome to Email Packrat (http://fm.jpa.lt/roundcubemail/)
Test account:
username: [email protected]
password: test123
I tryed a lot of plugins with change password and auto signup and all have the same problem its after i write username password and other information its just loading something and after that white screen. And with changing pass its write password changed sucessfully but its stay the same as it was before.
Do me a favor and open the following file and uncomment the debug line at line 85. This will tell you whats wrong with the password change function
program/steps/settings/password.inc
Ok i did that. But now where i can see what is wrong ;?
you removed the // infront of that line? I'm not seeing anything when i try to change the password. it's probably pointing to DirectAdmin wrong.
Quote from: HawtDogFlvrWtr;18770Try to change your password and look for error messages when you click save. It should give you an error message or something saying exactly what's wrong. I will take a look at it.
Strange but no error ;/ You can see it by using test account which i gave to you http://fm.jpa.lt/roundcubemail
username:
[email protected]password: test123
Quote from: HawtDogFlvrWtr;18770you removed the // infront of that line? I'm not seeing anything when i try to change the password. it's probably pointing to DirectAdmin wrong.
Yes i did and yea i think the same its the problem with Directadmin like i said before maybe its because my one admin account have three domains? Well the jpa.lt is set as default but stil maybe something because that ;/
My server has 5 domains and emailpackrat.com isn't the default domain. when creating the account it tells directadmin which domain to use to create the email address. I'm not around skype right now so I can't chat right now. are you availble to talk on skype in about 5 hours when i get off work?
Quote from: HawtDogFlvrWtr;18773My server has 5 domains and emailpackrat.com isn't the default domain. when creating the account it tells directadmin which domain to use to create the email address. I'm not around skype right now so I can't chat right now. are you availble to talk on skype in about 5 hours when i get off work?
Okey than its something else yea i will be availble in 5hours but for me it will be 10pm so I will be availble till 11pm =)
ok cool. I will try to get on earlier. I will ping you when i get in front of my home computer. We will get this worked out easily. :)
Quote from: HawtDogFlvrWtr;18775ok cool. I will try to get on earlier. I will ping you when i get in front of my home computer. We will get this worked out easily. :)
I hope so and thank you very much for your help =)
No problem. We will get it worked out.
Quote from: HawtDogFlvrWtr;18777No problem. We will get it worked out.
Btw in readme file it says
5. import the SQL file located in emsu/sql/ (This creates the tables needed for the signup)
But there is only one file rc_email_signup_useraccounts.sql
this file is enough? Because in some other plugin i saw two file there.
I am installing roundcube from start first roundcube than your plugin.
Yes, after you do the sql install for the roundcube install, the only other sql to import is the one listed in the readme. That install assumes that roundcube is completely installed and working properly.
Quote from: HawtDogFlvrWtr;18779Yes, after you do the sql install for the roundcube install, the only other sql to import is the one listed in the readme. That install assumes that roundcube is completely installed and working properly.
I made evrything from fresh start and now than i try to create new account i get error
Table 'email.cpanel' doesn't exist
And there is what logs i get after i try log in with test account change pass than logout and than login with changed pass and its show that password wrong.
[28-Apr-2009 19:32:41] PHP Warning: array_flip() [
function.array-flip]: The argument should be an array in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/func.inc on line 29
[28-Apr-2009 19:32:43] PHP Warning: include(program/include/cpanel.php) [
function.include]: failed to open stream: No such file or directory in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 19:32:43] PHP Warning: include() [
function.include]: Failed opening 'program/include/cpanel.php' for inclusion (include_path='/home/admin/domains/jpa.lt/public_html/fm/jpapastas/:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/lib:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/include:.:/usr/local/lib/php') in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 19:32:50] PHP Warning: include(program/include/cpanel.php) [
function.include]: failed to open stream: No such file or directory in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 19:32:50] PHP Warning: include() [
function.include]: Failed opening 'program/include/cpanel.php' for inclusion (include_path='/home/admin/domains/jpa.lt/public_html/fm/jpapastas/:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/lib:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/include:.:/usr/local/lib/php') in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 19:32:58 +0300] IMAP Error: Authentication for
[email protected] failed (LOGIN): "a001 NO Authentication failed." (POST /jpapastas/?_task=&_action=login)
i see an error in my code :) Here's the fix... on like 83 in the signup.php with emsu, goto comment out the following lines just like i did below and give it a try. .... one more thing... was the account that you gave me created within directadmin? if so, try creating an account with the front end of roundcube and see it it changes correctly... if you comment those lines below it should fix the email.cpanel error and continue :)
// Get Cpanel connection details from DB
//$result = mysql_query("SELECT username, password, ip, port FROM cpanel")
//or die(mysql_error());
//$row = mysql_fetch_array( $result );
Thanks for the help.
Okey i made that fix and now i am trying to create new account after i write data and press signup its loading something for a while and after that white screen here are the screenshots. Log file have no logs about this. And i tryed to change pass that still dont work ;/ But that error with cpanel gone =)
(http://img266.imageshack.us/img266/8350/testf.th.jpg) (http://img266.imageshack.us/my.php?image=testf.jpg)(http://img406.imageshack.us/img406/594/test1.th.jpg) (http://img406.imageshack.us/my.php?image=test1.jpg)
Btw new url for roundcube now: Email Packrat :: Welcome to Email Packrat (http://www.fm.jpa.lt/jpapastas)
Test account the same user:
[email protected] pass: test123
The logs after i log in with test account trying to change pass logout and trying to log in with new pass.
Quote[28-Apr-2009 21:16:07] PHP Warning: include(program/include/cpanel.php) [function.include]: failed to open stream: No such file or directory in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 21:16:07] PHP Warning: include() [function.include]: Failed opening 'program/include/cpanel.php' for inclusion (include_path='/home/admin/domains/jpa.lt/public_html/fm/jpapastas/:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/lib:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/include:.:/usr/local/lib/php') in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 21:16:15] PHP Warning: include(program/include/cpanel.php) [function.include]: failed to open stream: No such file or directory in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 21:16:15] PHP Warning: include() [function.include]: Failed opening 'program/include/cpanel.php' for inclusion (include_path='/home/admin/domains/jpa.lt/public_html/fm/jpapastas/:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/lib:/home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/include:.:/usr/local/lib/php') in /home/admin/domains/jpa.lt/public_html/fm/jpapastas/program/steps/settings/password.inc on line 27
[28-Apr-2009 21:16:24 +0300] IMAP Error: Authentication for [email protected] failed (LOGIN): "a001 NO Authentication failed." (POST /jpapastas/?_task=&_action=login)
i'm still caught at work and don't know when i will be able to leave. This would probably be easier to resolve tomorrow. are you ok with that? I just don't want to tell you i will be and not show up before you have to get some rest.
Quote from: HawtDogFlvrWtr;18791i'm still caught at work and don't know when i will be able to leave. This would probably be easier to resolve tomorrow. are you ok with that? I just don't want to tell you i will be and not show up before you have to get some rest.
Its ok for me see ya till tommorow =)
Thank you very much. You the best man on the earth =)
no problem. I'm glad we got it worked out. It's refreshing to see that people still trust others for help and are willing to temporarily give away the keys to the kingdom to get things fixed quickly.
Please Help I want use it in hostmonster
1. I can't find rc_email_signup_cpanel.sql
2. When change password is not working I don't because the rc_email_signup_cpanel.sql or something wrong, when I changed password in web mail it show successful but when I login I still have to use old password
I can't seem to get DA to create an account, it's written to the DB just fine. Could this possibly be a DA SSL issue? Http is redirected to ssl via DirectAdmin. Here is the DA error.log tail:
2009:05:10-21:38:08: Can't connect to ssl!
2009:05:10-21:38:08: -> A failure in the SSL library occurred, usually a protocol error.
2009:05:10-21:38:08: -> error:00000001:lib(0):func(0):reason(1)
Thanks for the hard work, by the way.
Sorry to bother, it was actually nothing to do with DA. I just needed to change the URL in the signup.php and all seems well.
I'm glad you got it working. I'm sorry for the delay in messaging... I thought i had reminders turned on for this forum entry but i never got an email saying someone replied. Let me know if you need any help in the future...
Quote from: slighpcs;18953I can't seem to get DA to create an account, it's written to the DB just fine. Could this possibly be a DA SSL issue? Http is redirected to ssl via DirectAdmin. Here is the DA error.log tail:
2009:05:10-21:38:08: Can't connect to ssl!
2009:05:10-21:38:08: -> A failure in the SSL library occurred, usually a protocol error.
2009:05:10-21:38:08: -> error:00000001:lib(0):func(0):reason(1)
Thanks for the hard work, by the way.
Sorry to bother, it was actually nothing to do with DA. I just needed to change the URL in the signup.php and all seems well.
ok, so yea, im a complete nub here so bear with me, i followed all your instructions as best i could to the letter, i still get the same message every time i try to register a new account, im using hostmonster, ran the two sql tables, everything was created to the best of my knowledge but i still get...
Warning: fopen(http://
[email protected]:2082/CMD_API_POP?action=create&user=test&domain=zakimus.com&passwd=test"a=10000) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zakimusc/public_html/mail/emsu/signup.php on line 93
Warning: feof(): supplied argument is not a valid stream resource in /home/zakimusc/public_html/mail/emsu/signup.php on line 103
Warning: fgets(): supplied argument is not a valid stream resource in /home/zakimusc/public_html/mail/emsu/signup.php on line 104
...with the last two lines repeating over and over, i know im far from an expert but i can't seem to figure this one out, lol, im running roundcube 0.2.1
rc_email_signup_cpanel.sql file is missing in both zip files uploaded by HawtDogFlvrWtr?:confused:
but i found one in rc_auto_email_signup_1_0.zip which was posted by tuney, i made the tables in Mysql DB, Now when fill up the registration form, the page get blank insted of showing done.php and also no changes hapen to DB, here are the log errors:
[08-Dec-2009 01:31:27] PHP Warning: include() [
function.include]: Unable to access program/include/cpanel.php in /customers/malgari.be/malgari.be/httpd.www/email/program/steps/settings/password.inc on line 27
[08-Dec-2009 01:31:27] PHP Warning: include(program/include/cpanel.php) [
function.include]: failed to open stream: No such file or directory in /customers/malgari.be/malgari.be/httpd.www/email/program/steps/settings/password.inc on line 27
[08-Dec-2009 01:31:27] PHP Warning: include() [
function.include]: Failed opening 'program/include/cpanel.php' for inclusion (include_path='/customers/malgari.be/malgari.be/httpd.www/email/:/customers/malgari.be/malgari.be/httpd.www/email/program:/customers/malgari.be/malgari.be/httpd.www/email/program/lib:/customers/malgari.be/malgari.be/httpd.www/email/program/include:.:/usr/share/php') in /customers/malgari.be/malgari.be/httpd.www/email/program/steps/settings/password.inc on line 27
please please help me!! link to login and sign up page (http://malgari.be/email/index.php)
Hey,
i didn't find an answer to my question in your entry post, so i just ask:
Which Mail-Server is your auto sign up plug in for? I guess I have to use Linux as OS on my rent Server, so hmail is not an option...
thx
malte
This is a old plugin for Directadmin, it connects to Directadmin to create the accounts and work work with any mail sever Directadmin works with.