Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member dory36's Avatar
    Join Date
    Aug 2003
    Posts
    179

    Default changed wwwacct in scripts

    Where the default email routing was set in /scripts/wwwacct, it used to say:

    print VALIAS <<EOM;
    *: $user

    With the current RELEASE version (9.3.0-RELEASE_5
    ) it says:

    if ($CPCONF{'defaultmailaction'} eq "blackhole") {
    print VALIAS "*: :blackhole:\n";
    } elsif ($CPCONF{'defaultmailaction'} eq "fail") {
    print VALIAS "*: :fail: No Such User Here\n";
    } else {
    print VALIAS "*: ${user}\n";

    Looks great -- but where do we edit that configuration setting?

    (The other $CPCONF variables seem to be stored in /var/cpanel/cpanel.conf and it seems reasonable to add defaultmailaction there, but I was looking to see if I was missing something in WHM for setting the default. No luck.)

    Bill
    Last edited by dory36; 06-04-2004 at 06:24 AM.

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    52

    Default

    All you have to do is change a default setting in your cpanel.config file.

    It checks for a default variable: "defaultmailaction" in your cpanel config file.
    here are your options for defaultmailaction
    fail
    blackhole

    If you want it to default to user, than simply remove the defaultmailaction line alltogether.

    All you need to do is pico or vi /var/cpanel/cpanel.config
    and set :
    defaultmailaction=fail
    If there is no defaultmailaction in the file, simply add it to the bottom.

    Then simply restart your cpanel with the command:
    > service cpanel restart

    Thats it!

    (this will set all new accounts that are created to default to :fail: or :blackhole: ) You will still need to updated existing accounts.

Similar Threads & Tags
Similar threads

  1. /scripts/wwwacct errors
    By jefferyw18 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-03-2009, 08:44 PM
  2. /scripts/wwwacct modification problem
    By alexz in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 09-04-2005, 08:55 PM
  3. Apache /scripts/wwwacct
    By easyhoster1 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-26-2005, 06:35 AM
  4. /scripts/wwwacct / Modernbill
    By jackal in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-06-2003, 08:03 PM
  5. Modifying /scripts/wwwacct
    By nu-steve in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 07-25-2002, 03:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube