Roundcube Community Forum

 

Roundcube will not auto add users

Started by philip14505, March 18, 2014, 10:49:52 AM

Previous topic - Next topic

philip14505

I am running my own Centos6.5 server for Roundcube 0.9.5. I have this setting in main.inc.php;
             $rcmail_config['auto_create_user'] = true;
I think my issue is with IMAP but do not understand how new accounts are auto created in roundcube. When I add a new Linux user account, a roundcube account is not automatically created when they first login. Does anyone have anything about how to configure this on Centos6.5? I am self hosted so am not using a shared environment like CPANEL.

SKaero

When auto_create_user is set to true a roundcube account is automatically created when they first login, if it is set to false then they wont be able to login if they don't already have an account.

philip14505

Thank you. I understand what you replied. What is supposed to automatically create the Roundcube account when a new user logs in? That is not working for me and there are no errors in the Roundcube log.

SKaero

The Roundcube account is only a recored in the Roundcube database it doesn't create a actual mail account.

philip14505

I crate a user named "testuser" on my linux server. I then go to the roundcube mail webpage, I canot log in as "testuser" or as "[email protected]". If I putty to the Linux server, I can log in as "testuser" into the command line. Whatever is supposed to automatically create a roundcube mail user account in the database is not creating it.
This is a standalone Centos server so the user is being added by the "useradd" command on the command line. This is not CPANEL or any other type of Linux server. Everything in this forum seems to indicate that most people add users using CPANEL which may be doing something different than the generic useradd script.

ABerglund

My guess is that the login attempt with the new user account is failing, and that if the login is not successful the RC account is not created. Check the IMAP logs for authentication errors. What IMAP server do you have running on the CentOS box, dovecot?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

philip14505

Correct. I have dovecot. I see dovecot entries in maillog but nothing for my test user account. Does dovecot log elsewhere? Maybe I have the dovecot configuration incorrect to work with roundcube?

[root@webmail1 ~]# ps -ef|grep -i dove
root      2487     1  0 Mar18 ?        00:00:01 /usr/sbin/dovecot
dovecot   2489  2487  0 Mar18 ?        00:00:00 dovecot/anvil
root      2490  2487  0 Mar18 ?        00:00:00 dovecot/log
root     12753  2487  0 07:40 ?        00:00:00 dovecot/config
dovecot  12773  2487  0 07:42 ?        00:00:00 dovecot/dict
root     12809 12782  0 07:44 pts/0    00:00:00 grep -i dove

philip14505

I have found some references to using postfixadmin instead to manage user accounts. I am going to not worry about the auto creation of users for now and take a look at implementing postfixadmin. Thanks for all the information.

SKaero

Roundcube doesn't automatically IMAP accounts, PostFixAdmin on the other hand is designed to create IMAP accounts.