1

Topic: Self Register Plugin?

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Not sure if this the correct place, but has anybody been able to get a hold of a self registartion plugin that will work with iRedmail and roundcube?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Self Register Plugin?

MyRoundcube team has a register plugin, but their team is gone, i'm not sure whether you can find this plugin anymore.
https://myroundcube.com

https://forum.myroundcube.com/topic/447 … till-down/

3

Re: Self Register Plugin?

ZhangHuangbin wrote:

MyRoundcube team has a register plugin, but their team is gone, i'm not sure whether you can find this plugin anymore.
https://myroundcube.com

https://forum.myroundcube.com/topic/447 … till-down/


Thank you for the feedback ZhangHuangbin...
I have looked everywhere and just cannot find anything out there.

[SOLVED]
I have resorted to spending some time to write my own register page outside of roundcube framework.. with captcha and availability check. With Roundcube's setting set to automatically create mailbox on first time login, I only had to programatically add the user to VMAIL.

This is working 100% now and saves me considerable time as I dont have to register manually anymore smile

Thanks

4

Re: Self Register Plugin?

Would you mind sharing your work with our community?

5 (edited by w1ldblu3 2015-11-18 15:05:26)

Re: Self Register Plugin?

As this took considerable time to put together, I am happy sell the whole php script...

but if you are well versed ...heres the sql to insert into vmail:

--just replace "email" with the username and 'example.com" with your domain
--also replace pasword 1234568 with a random or entered password
--Note the password is in plaintext, urging the user to change on first login, this is because i couldnt find the salt roundcube uses

use vmail;
insert into mailbox (username,password,name,language,storagebasedirectory,storagenode,maildir,quota,domain,transport,department,rank,employeeid,isadmin,isglobaladmin,enablesmtp,enablesmtpsecured,enablepop3,enablepop3secured,enableimap,enableimapsecured,enabledeliver,enablelda,enablemanagesieve,enablemanagesievesecured,enablesieve,enablesievesecured,enableinternal,enabledoveadm,`enablelib-storage`,`enableindexer-worker`,enablelmtp,enabledsync,allow_nets,lastlogindate,lastloginipv4,lastloginprotocol,disclaimer,allowedsenders,rejectedsenders,allowedrecipients,rejectedrecipients,settings,passwordlastchange,created,modified ,expired,active,local_part)
values ('email@example.com','{PLAIN}12345678','email','en_US','/var/vmail','vmail1',concat('example.com/',left('email',1),'/',substring('email',2,1),'/',substring('email',3,1),'/','email-',date_format(now(),'%Y.%m.%d.%H.%i.%s'),'/'),2,'example.com','','','normal','email',0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,NULL,'0000-00-00 00:00:00',0,'',NULL,NULL,NULL,NULL,NULL,NULL,'0000-00-00 00:00:00',now(),now(),'9999-12-31 00:00:00',1,'email');

insert into alias (address,goto,name,moderators,accesspolicy,domain,islist,created,modified,expired,active )
values ('email@example.com','email@example.com','',NULL,'','example.com',0,now(),'0000-00-00 00:00:00','9999-12-31 00:00:00',1);

6

Re: Self Register Plugin?

Thanks for sharing.