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!

changed wwwacct in scripts

Discussion in 'General Discussion' started by dory36, Jun 4, 2004.

  1. dory36

    dory36 Well-Known Member

    Aug 30, 2003
    Likes Received:
    Trophy Points:
    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.)

    #1 dory36, Jun 4, 2004
    Last edited: Jun 4, 2004
  2. JackDcrack

    JackDcrack Well-Known Member

    Aug 9, 2002
    Likes Received:
    Trophy Points:
    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

    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 :
    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.

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