Author Topic: Roundcube will not auto add users  (Read 9891 times)

Offline philip14505

  • Newbie
  • *
  • Posts: 5
Roundcube will not auto add users
« on: March 18, 2014, 10:49:52 AM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Roundcube will not auto add users
« Reply #1 on: March 18, 2014, 02:59:23 PM »
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.

Offline philip14505

  • Newbie
  • *
  • Posts: 5
Re: Roundcube will not auto add users
« Reply #2 on: March 18, 2014, 03:14:20 PM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Roundcube will not auto add users
« Reply #3 on: March 18, 2014, 03:36:39 PM »
The Roundcube account is only a recored in the Roundcube database it doesn't create a actual mail account.

Offline philip14505

  • Newbie
  • *
  • Posts: 5
Re: Roundcube will not auto add users
« Reply #4 on: March 18, 2014, 05:24:16 PM »
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 "testuser@mydomain.com". 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.

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Roundcube will not auto add users
« Reply #5 on: March 18, 2014, 10:45:26 PM »
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

Offline philip14505

  • Newbie
  • *
  • Posts: 5
Re: Roundcube will not auto add users
« Reply #6 on: March 19, 2014, 07:47:57 AM »
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

Offline philip14505

  • Newbie
  • *
  • Posts: 5
Re: Roundcube will not auto add users
« Reply #7 on: March 19, 2014, 09:01:47 AM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Roundcube will not auto add users
« Reply #8 on: March 19, 2014, 10:24:06 AM »
Roundcube doesn't automatically IMAP accounts, PostFixAdmin on the other hand is designed to create IMAP accounts.