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.

changed wwwacct in scripts

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

  1. dory36

    dory36 Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    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
     
    #1 dory36, Jun 4, 2004
    Last edited: Jun 4, 2004
  2. JackDcrack

    JackDcrack Well-Known Member

    Joined:
    Aug 9, 2002
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...

Share This Page