Author Topic: Auto User Email Creation  (Read 314341 times)

Offline indie

  • Jr. Member
  • **
  • Posts: 13
Re: Auto User Email Creation
« Reply #165 on: November 17, 2006, 07:24:08 PM »
Quote from: pablolagosm
Hello, I've seen this topic and I'm really interested in your script... 8)

¿How can I get it?

Regards,

Pablo Lagos M.

Wish people would read threads before asking stuff. The post here has the latest version attached. http://roundcubeforum.net/forum/index.php?topic=232.msg2456#msg2456

Offline doof92

  • Newbie
  • *
  • Posts: 3
Re: Auto User Email Creation
« Reply #166 on: November 21, 2006, 11:30:06 AM »
Hello,
Is it possible to use multiple domains with this script, i.e. a user can signup for either @domain1.com or @domain2.com?
If so, how is it done.
Thank you very much

Offline GuessEye

  • Newbie
  • *
  • Posts: 1
Re: Auto User Email Creation
« Reply #167 on: November 21, 2006, 08:32:48 PM »
Tuney,

I'm currently building a site in MODxCMS that intergrates into SMF. IMHO it would be great if you could add (preferably MODx) and/or SMF intergration support into a future release, I think it would be a great fit.

Nevertheless, I must say that your plug-in is a great addon to RC, thank you for all your hard work!
I'm really looking forward to the next release.  :)

Sincerely,
Will

Offline waltercool

  • Newbie
  • *
  • Posts: 4
Re: Auto User Email Creation
« Reply #168 on: November 21, 2006, 09:26:58 PM »
Hi there... i have this problem

Table '*****_webmail.useraccounts' doesn't exist

* is only a filter :P

What can i do?

In my version of roundcube (last) exist user table, no useraccounts :S

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,883
    • SKaero - Custom Roundcube development
Re: Auto User Email Creation
« Reply #169 on: November 22, 2006, 03:26:42 AM »
Quote from: waltercool
Hi there... i have this problem

Table '*****_webmail.useraccounts' doesn't exist

* is only a filter :P

What can i do?

In my version of roundcube (last) exist user table, no useraccounts :S
Well I think you forgot to add the new tables in your mysql db. Go into the sql and then add the files to you db.

Offline waltercool

  • Newbie
  • *
  • Posts: 4
Re: Auto User Email Creation
« Reply #170 on: November 22, 2006, 03:43:13 AM »
I was used that.

Offline indie

  • Jr. Member
  • **
  • Posts: 13
Re: Auto User Email Creation
« Reply #171 on: November 22, 2006, 04:40:27 AM »
Quote from: INSTALL.txt
Upload 'emsu' directory and all sub-directories into your roundcube directory.

Ensure emsu/includes is writtable. Permissions can be changed after installation.

Point your browser to the install folder (eg.http://www.yourdomain.com/webmail/emsu/install/index.php)

That is from the install file. Running that installer script will add the necessary SQL tables to your database.

If you think you have already done this, do it again and be triple sure that the connection information you enter into the installer is correct.

Hope this helps.

Offline waltercool

  • Newbie
  • *
  • Posts: 4
Re: Auto User Email Creation
« Reply #172 on: November 22, 2006, 04:56:49 AM »
So... this error??

Invalid default value for 'activated'

Offline indie

  • Jr. Member
  • **
  • Posts: 13
Re: Auto User Email Creation
« Reply #173 on: November 22, 2006, 06:04:23 AM »
Worth a try...

OPEN: /emsu/install/do_install.php

FIND: (~line 96)

Code: [Select]
mysql_query("CREATE TABLE IF NOT EXISTS useraccounts ( id int(11) NOT NULL auto_increment, username varchar(20) NOT NULL default '', password varchar(20) NOT NULL default '', activated int(11) NOT NULL default '', altemail varchar(50) NOT NULL default '', fname varchar(20) NOT NULL default '', lname varchar(20) NOT NULL default '', securityquestion varchar(50) NOT NULL default '', securityanswer varchar(50) NOT NULL default '', ip varchar(16) NOT NULL default '', timestamp varchar(37) NOT NULL default '', quota int(11) NOT NULL default '', PRIMARY KEY (`id`))") or die(mysql_error());
REPLACE WITH:

Code: [Select]
mysql_query("CREATE TABLE IF NOT EXISTS useraccounts ( id int(11) NOT NULL auto_increment, username varchar(20) NOT NULL default '', password varchar(20) NOT NULL default '', activated int(11) NOT NULL default '0', altemail varchar(50) NOT NULL default '', fname varchar(20) NOT NULL default '', lname varchar(20) NOT NULL default '', securityquestion varchar(50) NOT NULL default '', securityanswer varchar(50) NOT NULL default '', ip varchar(16) NOT NULL default '', timestamp varchar(37) NOT NULL default '', quota int(11) NOT NULL default '0', PRIMARY KEY (`id`))") or die(mysql_error());

SAVE FILE

Try running the installer again and report back, if you still have problems can you post your server's versions of php and mysql?

gl

Offline waltercool

  • Newbie
  • *
  • Posts: 4
Re: Auto User Email Creation
« Reply #174 on: November 22, 2006, 10:15:57 AM »
Many thanks... works

I have MySQL 5.x

Offline doof92

  • Newbie
  • *
  • Posts: 3
Re: Auto User Email Creation
« Reply #175 on: November 24, 2006, 02:18:02 PM »
Anyone know? Thanks

Quote from: doof92
Hello,
Is it possible to use multiple domains with this script, i.e. a user can signup for either @domain1.com or @domain2.com?
If so, how is it done.
Thank you very much

Offline xopek

  • Newbie
  • *
  • Posts: 1
Re: Auto User Email Creation
« Reply #176 on: November 24, 2006, 08:10:47 PM »
Quote from: tuney
After the release I will mainly be working on RoundCube integration. Both with bulletin boards/forums and CMS's. Just a simple Auto signup/login type thing.

Please give me a shout if you need any volunteers to test roundcube/vbulletin integration!
If you can get them working together this would be increadible!!

Denis

Offline Tam2

  • Newbie
  • *
  • Posts: 2
Re: Auto User Email Creation
« Reply #177 on: November 26, 2006, 10:36:36 AM »
hey can someone mod this to work with direct admin,

The currrent script i use for direct admin is the following perl script:

Code: [Select]
#!/usr/bin/perl -w

# Read the standard input (sent by the form):
read(STDIN, $FormData, $ENV{'CONTENT_LENGTH'});
# Get the name and value for each form input:
@pairs = split(/&/, $FormData);
# Then for each name/value pair....
foreach $pair (@pairs) {
# Separate the name and value:
($name, $value) = split(/=/, $pair);
# Convert + signs to spaces:
$value =~ tr/+/ /;
# Convert hex pairs (%HH) to ASCII characters:
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
# Store values in a hash called %FORM:
$FORM{$name} = $value;
}

use HTTP::Request::Common qw(POST);
use LWP::UserAgent;

print "Content-type: text/html\n\n";

@QUERY_STRING = split (/\&/, $ENV{QUERY_STRING});
foreach $line (@QUERY_STRING) {
( $var, $val ) = split (/\=/,$line);
$val =~ s/(\@|\%40)/\\\@/g;
eval &quot;\$&quot; . $var . &quot; = \&quot;&quot; . $val . &quot;\&quot;\n&quot;; print &quot;<br />&quot;;
}
$browser = LWP::UserAgent->new();
$browser->agent('Mozilla/4.76 [en] (Win98; U)');
$browser->cookie_jar({});
push @{ $browser->requests_redirectable }, 'POST';

# change the username, password and ip address to your server information.
$url = '[url]http://USERNAME:PASSWORD@IP:PORT/CMD_EMAIL_POP?DOMAIN=DOMAIN_NAME';[/url]
$response = $browser->post( $url,
[
action => 'create',
add => 'Submit',
user => &quot;$FORM{'user'}&quot;,
passwd => &quot;$FORM{'passwd'}&quot;,
passwd2 =>&quot;$FORM{'passwd2'}&quot;,
quota => '$FORM{'quota}',
]
);

die &quot;Can't access admin tool -- &quot;, $response->status_line
unless $response->is_success;

print $response->content;


Offline the r3a! ne0

  • Newbie
  • *
  • Posts: 1
Re: Auto User Email Creation
« Reply #178 on: November 26, 2006, 11:37:55 AM »
Hi

I've got a problem...

on my server there isn't cpanel as control panel running...the hoster is kas-server.de

and i don't know either the cpanel's port nor the cpanel's ip...so i am not even able to test if the admin and the password script are running on this...

can anybody help me please?!?

thanks and please forgive my english, it's the germans' school english ;)...

vg the r3a! ne0

Offline Romka

  • Newbie
  • *
  • Posts: 2
Re: Auto User Email Creation
« Reply #179 on: December 09, 2006, 05:32:58 AM »
What about postfixadmin?
I have own server and don't use cPanel.
Using postfix+mysql+dovecot+postfixadmin+rouncube
I use postfixadmin for user creatation/password change/quota management, but want to integrate all administrative tools into roundcube and delete postfixadmin web part.
Does anybody have a solution for this? Maybe some patch for "rc signup&admin 2.1b" for use postfixadmin database?