Control Web Panel

WebPanel => E-Mail => Topic started by: deleonbe on February 27, 2019, 03:30:26 PM

Title: Forwarding All Email for a Domain
Post by: deleonbe on February 27, 2019, 03:30:26 PM
Hello everybody,

We are moving from using one domain name to another domain. 

Is there a way to create a domain level forwarder that will forward all new emails going to the old domain to the new one without having to create aliases for each user?

Example:
john@domain1 forward to john@domain2
jane@domain1 forward to jane@domain2
etc.
Title: Re: Forwarding All Email for a Domain
Post by: pandroso on March 03, 2019, 09:21:45 PM
i'm looking for something similar. in whm it is called "default email address", but i cant find a solution on cwp
Title: Re: Forwarding All Email for a Domain
Post by: Netino on March 03, 2019, 09:51:33 PM
Access CWP, menu "Email" >> "Email Aliases/Forwarders" >> "Add New Alias", select the user of your domain, and fill in fields:
Email Address: *
Forward To: [The final E-mail Adress destiny here]

The order of aliases creation seems important.
In my case was important the order of alias creation.
Fisrt I created the "catch-all", after some other specific address. It was sending all mails to catch-all although created a specific other alias.

So, If you have another specific alias to coexist with you catch-all address, you must try to create it before the catch-all address.

Regards,
Netino
Title: Re: Forwarding All Email for a Domain
Post by: deleonbe on March 06, 2019, 08:02:55 PM
If you have root access to the database server, you can manually add an entry in the postfix -> alias table as follows

address:   @current.domain
goto: @new.domain
domain: current.domain
created: now()
modified: now()
active: 1

It looks like it needs to be added as a feature update