Roundcube Community Forum

Release Support => Pending Issues => Topic started by: robertkwild on July 27, 2015, 05:55:27 PM

Title: login failure - cant login roundcube mail server
Post by: robertkwild on July 27, 2015, 05:55:27 PM
hi all,

i cant login roundcube

i attach a link of my attachment

http://www.filedropper.com/roundcubeconfig

i have tried

robert.wild and robert.wild@robina.ddns.net my full email address

any help much appreciated

thanks

rob
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 27, 2015, 06:09:43 PM
Most likely your imap_auth_type config options is wrong.
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 27, 2015, 06:23:52 PM
What config file do I need to change for that
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 27, 2015, 11:09:10 PM
The option can be set in the config.inc.php
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 28, 2015, 05:19:21 AM
awesome thank you SKaero i will try this tonight
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 28, 2015, 06:07:19 PM
having no luck at all

i have entered in two new lines under my IMAP section (see link, the last two lines)

http://www.filedropper.com/roundcubeconfig_1

i have used "check" "plain" "auth" "null" and "LOGIN" but when i used null i get the error "connection to imap server failed" all the others just say "login failure"

any help please

thanks

rob
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 28, 2015, 07:42:25 PM
If you remove that config line and enable imap_debug in the Roundcube config was does the log say?
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 28, 2015, 08:21:55 PM
what added line should i delete of the two?

is the enable imap debug line in the same config file as this file or is it somewhere else

after i enable it im guessing if i do a tail -f /var/www/html/rc/logs i will find the error

thanks in advanced for your help much appreciated
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 29, 2015, 12:50:42 PM
damn i think i know whats wrong

stupidly i unticked the box, "auto create users", so im guessing im going to have to go inot the config file and add it in there

also shall i add the line for "username_domain" and enter in my default domain name "robina.ddns.net" ?
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 29, 2015, 02:03:23 PM
You can remove $config['auto_create_user'] = false; from the config.inc.php and it should be enabled again.
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 29, 2015, 03:18:34 PM
i deleted it from the config file, and i could successfully log in on the web, your awesome SKaero

just out of interest where do the users get created on the roundcube database, where is the location?
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 29, 2015, 03:43:22 PM
mmm, i have noticed something (i attach link to picture)

http://www.filedropper.com/roundcubecantsend

my from box appears as robert.wild@localhost, instead of my domain @robina.ddns.net

how do i change this for all my users so its user@robina.ddns.net

i know i can change this in "edit identities" but i really want it as default to all my users
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 29, 2015, 04:46:47 PM
just out of interest where do the users get created on the roundcube database, where is the location?
The users are keep in the Roundcube data in the users table. The Roundcube user is needed for settings and contacts.

how do i change this for all my users so its user@robina.ddns.net
Change the username_domain config option to your domain.
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 29, 2015, 05:37:33 PM
so in the config file do i add a new line under the IMAP section

rcmail_config['username_domain'] = 'robina.ddns.net';
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 29, 2015, 05:48:30 PM
Yes.
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 29, 2015, 06:30:05 PM
i add that line in

$rcmail_config['username_domain'] = 'robina.ddns.net';

i get a login failure, as soon as i delete the line and write quit, i can log in again so its not working
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 29, 2015, 06:46:30 PM
ive read the instructions for "username_domain" and this is only for IMAP server logins so if you login as user@domain.com, it will just be user

my problem is when i send an email to someone the from field in roundcube says robert.wild@localhost instead of my actual email address which is robert.wild@robina.ddns.net
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 29, 2015, 08:54:30 PM
Sorry you should set mail_domain not username_domain.
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 30, 2015, 03:08:30 AM
Nice one i will try this tonight when I get back from work, what section do I put this under or doesn't it matter?
Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 30, 2015, 04:35:57 AM
You just need to put it in the config.inc.php.
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 30, 2015, 04:39:50 PM
ok so in my config file at the bottom i enter in a new line

$rcmail_config['mail_domain'] = 'robina.ddns.net';

write quite the file and go on my roundcube web mail and login but i still get the from field showing as locahost instead of robina.ddns.net
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 30, 2015, 04:56:16 PM
mmm do you think i should change my server hostname to be my public dns name to post.robina.ddns.net because atm it is post.robina.private, my internal dns name

and then change

$config['default_host'] = '%d';
$config['smtp_server'] = '%d';

i imagine the %d will be the robina.ddns.net or am i wrong?
Title: Re: login failure - cant login roundcube mail server
Post by: robertkwild on July 30, 2015, 05:50:59 PM
worked it out

all i did was edit my /etc/hosts file and add at the end "robina.ddns.net" for both lines 127.0.0.1 and ::1

once i did that i changed both my IMAP server and my SMTP server in config.inc.php to

IMAP
$config['default_host'] = 'robina.ddns.net';
SMTP
$config['smtp_server'] = 'robina.ddns.net';

now when i log in to roundcube web mail when i compose email the from field is robert.wild@robina.ddns.net

is this a good way of doing it or will i end up with problems in the long run

Title: Re: login failure - cant login roundcube mail server
Post by: SKaero on July 31, 2015, 12:50:58 AM
That a fine way of doing it. The reason why mail_domain config option didn't work is you used $rcmail_config instead of $config.