1

Topic: email forwarding, howto

better make this a new post......

I have now 2 scenarios

1- How can I then create a single entry to forward: ALL_USERS@domain1.tld to user@domains2.tld

like user1@domain1 to user1@domain2
user2@domain1 to user3@domain2

and if user in domain1 does not exist in domain2 bounce the message.
I see a table "alias_domain" perhaps that is where we enter this info? and the syntax?
alias_domain        target_domain
*@domain1.tld      *@domain2.tld

2- the other scenario would be to forward all email coming into a domain to a single user on another domain.




==== 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:
====

----

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

2

Re: email forwarding, howto

1: alias domain is used for forward emails sent to the same username on another domain. e.g. emails sent to 'zhb@alias_domain.com' will be delivered to mailbox of 'zhb@primary.com'. Note, the username parts of email addresses are always the same.

2: I guess you need per-domain BCC, so that you can forward all incoming or outgoing emails sent to this domain to a single email address.