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.

Default emails when accounts created

Discussion in 'E-mail Discussions' started by gunmuse, May 10, 2004.

  1. gunmuse

    gunmuse Well-Known Member

    Joined:
    Jul 3, 2003
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New Mexico
    I am finding as customers come from other hosts you just don't know WHY they are moving. Some of these are moving because they joined a FFA or some other damn huge email system and their host was booting them for resource gobbling.

    I have a solution on my system and I would like it defaulted in cpanel or at least the option.

    All new accounts when setup have a default email of :blackhole: This prevents mail que saturation from those who don't pay attention and follow every lousy way to advertise their business.

    I have been doing this manually and the difference in loads on the server is outstanding. I hope this helps others and Cpanel will look at making it a default option on account creation to allevate my work for me.

    Thanks
     
  2. drm

    drm Member

    Joined:
    Dec 13, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I set blackhole as default for all new accounts using this solution I found posted on this forum:

    >>>>>>
    edit /scripts/wwwacct and arround line 1108 find *: $user and replace it with *: :blackhole:

    Find:
    1106 open(VALIAS,">/etc/valiases/$domain");
    1107 print VALIAS <<EOM;
    1108 *: $user
    1109 EOM
    1110 close(VALIAS);
    Edited:
    1106 open(VALIAS,">/etc/valiases/$domain");
    1107 print VALIAS <<EOM;
    1108 *: :blackhole:
    1109 EOM
    1110 close(VALIAS);


    then new accounts' default will be to discard mail to unknown users.

    you might find that wwwacct gets overwritten, so it is worth checking every once in a while. I just do grep blackhole /scripts/wwacct after any action that I suspect might update that file.
    <<<<<<

    It will save you doing it manually each time.
     
    #2 drm, May 10, 2004
    Last edited: May 10, 2004
  3. JackDcrack

    JackDcrack Well-Known Member

    Joined:
    Aug 9, 2002
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    THERE IS NO NEED TO EDIT THE WWWACCT SCRIPT!!

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

    http://forums.cpanel.net/showthread.php?p=133313#post133313

    Your setting for defaultmailaction is set to blackhole.
    here are your options for defaultmailaction
    fail
    blackhole

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

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

    Then do a:
    > service cpanel restart
     
Loading...

Share This Page