Catch-all email of wildcard subdomain

hassan777

Registered
Sep 19, 2017
1
0
1
Malaysia
cPanel Access Level
Website Owner
I need your help to default email address to forward to [email protected]. This means that any messages sent to an address that does not exist at domain.com will be forwarded to this email's inbox.
I need to include any subdomains (wildcard) as well that a user attempts to send to that are not valid.
e.g. anything@anything.domain.com

I found this post
email to wildcard subdomains not working

And it's a great solution but it going to pipe to a program. what I need is to catch all emails and forward it to [email protected].

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello,

You can configure the behavior for messages sent to non-existent email accounts by using the "Default Address" option in cPanel. It's documented at:

Default Address - Documentation - cPanel Documentation

However, you can only configure this behavior for domain names and subdomains added to the account. If you wanted all unrouted email to that domain name forwarded elsewhere, you would add custom Exim configuration rules, like referenced on this third-party URL:

email to wildcard subdomains not working

Note this would require root access, and your access level only shows as "Website Owner".

Thank you.