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.

disable main email account

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

  1. cyberspirit

    cyberspirit BANNED

    Joined:
    Jun 27, 2003
    Messages:
    293
    Likes Received:
    0
    Trophy Points:
    0
    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?
     
  2. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
Loading...

Share This Page