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.

Change "Default email address" for all accounts

Discussion in 'E-mail Discussions' started by Bradl3y, Jul 19, 2007.

  1. Bradl3y

    Bradl3y Member

    Joined:
    Nov 14, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I want to set every single account we have to fail rather than use the default username@domain for the catch-all account. The only way I have found to do this is to log in to each account's cpanel and set it manually, 1 by 1. We have a lot of accounts so this would be a very painful process.

    I know i can set the default in tweak settings. I have already done this, but the problem is i already have a ton of accounts already created with a catch-all account that nobody checks, causing quotas to fill.

    Anyone have any ideas? Where is this setting stored? If i knew which file it was stored in i could possible write a script to go through and update all of the config files associated with this setting.
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator

    /etc/valiases/*

    Look for items in the files such as:

    *: renegade ( default address forwarding to 'renegade')
    *: :fail: No Such User Here ( a default address that rejects - this is what you want)

    Mike
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  4. Bradl3y

    Bradl3y Member

    Joined:
    Nov 14, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page