Author Topic: login failure - cant login roundcube mail server  (Read 11407 times)

Offline robertkwild

  • Jr. Member
  • **
  • Posts: 23
Re: login failure - cant login roundcube mail server
« Reply #15 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

Offline robertkwild

  • Jr. Member
  • **
  • Posts: 23
Re: login failure - cant login roundcube mail server
« Reply #16 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: login failure - cant login roundcube mail server
« Reply #17 on: July 29, 2015, 08:54:30 PM »
Sorry you should set mail_domain not username_domain.

Offline robertkwild

  • Jr. Member
  • **
  • Posts: 23
Re: login failure - cant login roundcube mail server
« Reply #18 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?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: login failure - cant login roundcube mail server
« Reply #19 on: July 30, 2015, 04:35:57 AM »
You just need to put it in the config.inc.php.

Offline robertkwild

  • Jr. Member
  • **
  • Posts: 23
Re: login failure - cant login roundcube mail server
« Reply #20 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

Offline robertkwild

  • Jr. Member
  • **
  • Posts: 23
Re: login failure - cant login roundcube mail server
« Reply #21 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?

Offline robertkwild

  • Jr. Member
  • **
  • Posts: 23
Re: login failure - cant login roundcube mail server
« Reply #22 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


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: login failure - cant login roundcube mail server
« Reply #23 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.