Roundcube Community Forum

 

login failure - cant login roundcube mail server

Started by robertkwild, July 27, 2015, 05:55:27 PM

Previous topic - Next topic

robertkwild

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

robertkwild

ive read the instructions for "username_domain" and this is only for IMAP server logins so if you login as [email protected], 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 [email protected]

SKaero

Sorry you should set mail_domain not username_domain.

robertkwild

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?

SKaero

You just need to put it in the config.inc.php.

robertkwild

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

robertkwild

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?

robertkwild

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 [email protected]

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


SKaero

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.