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:
127.0.0.1  y.z  localhost localhost.localdomain
127.0.1.1       mail-server

The contents of /etc/hostname are:
mail-server


Thank you in advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

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:
/usr/share/apache2/roundcubemail-0.9.2/config/main.inc.php.dist
/usr/share/apache2/roundcubemail-0.9.2/config/main.inc.php
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*::::
/usr/share/logwatch/default.conf/services/dovecot.conf
/usr/share/dovecot/dovecot.conf
/usr/share/doc/dovecot-core/dovecot/example-config/dovecot.conf
/run/dovecot/dovecot.conf
/etc/init/dovecot.conf
/etc/dovecot/dovecot.conf
/etc/dovecot/dovecot.conf.2013.11.17.16.01.15
/etc/fail2ban/filter.d/dovecot.conf



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

Thanks.

4

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.