1 (edited by Rashef 2018-01-12 15:48:05)

Topic: Alias domain with MySQL backend

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version:  Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Not yet
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

I cannot find anything about adding an alias domain with mysql backend.

Example:
My server has hostname: mail.whatever.com
And hosts mails for the following domains:
@whatever.com (same as the host name)
@wherever.com

I need to create alias domains such as:

@somedomain.com -> @whatever.com
@anotherdomain.com -> @wherever.com

So that any email sent to test@somedomain.com is forwarded to test@whatever.com, and same for the other aliases.

And so on...

Is it that simple as doing:

sql> USE vmail;
sql> INSERT INTO alias_domain (alias_domain, target_domain) VALUES ('some domain.com', 'whatever.com');

?

----

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

2

Re: Alias domain with MySQL backend

Rashef wrote:

Is it that simple as doing:

YES.

== UPDATE ==

I created a short tutorial here:
https://docs.iredmail.org/sql.add.alias.domain.html