Roundcube (Webmail) "loosing" all user settings and contacts

(0 comments)

So I had been wondering why my roundcube had lost all the contacts and settings for my users (I changed DB host after  a server outage - see my older post).

Checked the DB and seen this:

roundcubemail=# select user_id, username, mail_host, created  from users;
 user_id | username | mail_host |            created
---------+----------+-----------+-------------------------------
       3 | User3    | localhost | 2016-04-06 14:32:28.637887+02
       2 | User2    | localhost | 2013-09-26 15:32:08.848301+02
       4 | User2    | 127.0.0.1 | 2019-06-17 14:21:18.059167+02
       5 | User1    | 127.0.0.1 | 2019-07-19 14:26:41.113583+02
       1 | User1    | localhost | 2013-08-29 10:39:47.995082+02
(5 rows)

(I changd the actual usernames to User1,2,3 ..

Turns out whlie I was changing stuff I had changed the config from

$config['default_host'] = 'localhost';

to

$config['default_host'] = '127.0.0.1';

Which resulted in roundcube thinking this is a different host - apparently it doesn't check/resolve hostnames to IP, but instead just assumes each is their own.

The solution was simple: changing it back to 'localhost' from '127.0.0.1' -- hope this maybe helps someone else too. Took me a bit to figure it out.

Currently unrated

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required

Recent Posts

Archive

2019
2018
2014
2012
2011
2010
2009
2008
2007

Categories

Authors

Feeds

RSS / Atom