1 (edited by tayebbellal 2013-11-21 18:21:14)

Topic: Changing the Domain

Hello guys,

After installing and configuring iRedMail correctly, I wanted to change my virtual domain from x.y.z to only y.z, so I deleted the previous domain and created a new one, but the roundcube is forcing me each time to enter the full email (The after @ part), which was not the case with emails of previous domain, do I miss something?, rename some files?.

The contents of /etc/hosts are:  y.z  localhost localhost.localdomain       mail-server

The contents of /etc/hostname are:

Thank you in advance


Re: Changing the Domain

You need to update two files:

*) Roundcube config file (config/main.inc.php, parameter $rcmail_config['username_domain']).
*) Dovecot config file (dovecot.conf, parameter "auth_default_realm").

You see, if you don't tell me basic info of your iRedMail server, it's hard for me to show you absolute path of those config files. Please always show them in every new forum topic, so that we can help you out as soon as possible.

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:

3 (edited by tayebbellal 2013-11-21 18:37:01)

Re: Changing the Domain

Many thanks Zhang, i appreciate your help, you are right, next time i will include the required information in the post.
I used the "find / -name main.inc.php*" instruction and to find the first file, the result was:
i found the file.. 
For the second file there is an overloading on that name.
root@$:/usr/share/apache2/roundcubemail-0.9.2/config# find / -name dovecot.conf*::::

After testing every file i found the param in "/run/dovecot/dovecot.conf"..



Re: Changing the Domain

tayebbellal wrote:

After testing every file i found the param in "/run/dovecot/dovecot.conf"..

It must be a symbol link of /etc/dovecot/dovecot.conf.