The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

catchall email for wildcard subdomain

Discussion in 'E-mail Discussions' started by Daniel Ahern, Sep 6, 2016.

  1. Daniel Ahern

    Daniel Ahern Registered

    Joined:
    Sep 6, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seoul
    cPanel Access Level:
    Root Administrator
    It is possible to use a subdomain in an email address, like so:
    catchall@sub.domain.com

    Let's say there are two emails sent to my server, to a domain with a wildcard domain name. The emails do not exist, so I want them to go to the catchall:
    admin1@company.domain.com
    employee@corp.domain.com

    I'd like both those emails, which are not specifically created, to forward to a catchall, which would then pipe to a script. Is that possible?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Yes, you can use your catchall@sub.domain.com email account as cache all mail account. Please try to setup that and let us know if you are getting any issues with the.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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

    Thank you.
     
    Daniel Ahern likes this.
Loading...

Share This Page