Topic: changed the domain for my website and emails.. how to update iredmail?
==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mySQL
- Linux/BSD distribution name and version: Debian 7
- Related log if you're reporting an issue:
====
i freshly installed iredmail months ago, for use with a website (with .com domain) on a server that hosts both the website and iredmail.
recently i changed the domain name of the entire website and so needed to change the email settings too. i added the new domain and user accounts via iredadmin and mostly the situation is ok.
today though, i received some 'mail delivery failed' messages from aol and other email hosts, which included references to my old email domain - even though i am sending through the accounts created that reference the new domain.
as i search the files in the filesystem for instances of the old domain name, i see that these files contain it:
etc/postfix/main.cf
etc/postfix/aliases
etc/mail/default-auth-info
etc/resolv.conf
etc/mailname
etc/amavis/conf.d/50-user
plus some others that are not so relevant.
what is the correct approach for updating the iredmail files to reflect that i have changed the main domain name of the server?
can i just replace all the occurrences of the old domain in the files i listed here? or is there a more elegant approach?
i will not be sending emails from the email accounts created with the old domain name - however, i do wish to forward/alias the mails that the server receives, which are addressed to the accounts created with the old domain name to the equivalent accounts attached to the new domain name.
anyone know?
thanks
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.