Results 1 to 4 of 4

Thread: Change "Default email address" for all accounts

  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    16

    Default Change "Default email address" for all accounts

    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. #2
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    1,100
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by Bradl3y View Post
    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.

    /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. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    I wrote a script to do this some time back (searching...) Ah, here it is
    http://forums.cpanel.net/showthread.php?t=30987
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    16

    Default

    Quote Originally Posted by chirpy View Post
    I wrote a script to do this some time back (searching...) Ah, here it is
    http://forums.cpanel.net/showthread.php?t=30987
    This worked perfectly, thank you.

Similar Threads

  1. Default address in horde giving "no valid sender in header" error
    By noimad1 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-10-2008, 01:43 AM
  2. /webmail asks users for "username" not "email address"... why?
    By ryno267 in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 08-07-2006, 09:22 AM
  3. CPanel "default address" not accepting email for "main account"
    By nsdesign in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-08-2005, 05:48 AM
  4. Default Mail Accounts "Unrouteable address"?
    By Shiekron2 in forum cPanel & WHM Discussions
    Replies: 30
    Last Post: 09-17-2004, 03:09 AM
  5. Change Log in text to "Full Email Address"
    By d-woo in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-11-2004, 11:30 PM