Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

disable main email account

Discussion in 'E-mail Discussion' started by cyberspirit, Nov 25, 2003.

  1. cyberspirit

    cyberspirit BANNED

    Jun 27, 2003
    Likes Received:
    Trophy Points:
    Is there a way to disable or block the main email account in cpanel?
    Most people create accounts and do not really care what their username or login is. So the main email account is mostly not used anyway but spamers still send stuff randomly there.
    So I am looking for a way to block all mail to the main users email account or blackhole it because the account is not really used.
    Any ideas?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. acenetryan

    acenetryan Well-Known Member PartnerNOC

    Aug 21, 2005
    Likes Received:
    Trophy Points:
    pico /etc/valiases/domainname.tld

    (obviously domainname.tld should be the domain name you wish to disable the default account for)

    It will probably look like this:

    *: username

    put this in place of it:

    *: :fail: No Such User Here

    You can also go into WHM->Tweak Settings and set Default Catch All/Default address behaviour to "fail" for new accounts. This effectively disables the default account. Not sure how to get it to stop showing in the client's cpanel, period.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice