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.

configure what notices root is emailed

Discussion in 'E-mail Discussions' started by sexshun, Sep 28, 2005.

  1. sexshun

    sexshun Active Member

    Joined:
    Sep 28, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    How do I configure what notices root@myserverdomain.com receives? I just got a dedicated server setup and I'm receiving annoying emails of current cronjobs I didn't even set up so I presume they're there by default. (aol.pl in particular which apparantly fixes valiases...its running every hour and sending out emails to me...is this normal?)

    The only thing i found in whm relating to emailing the root email was this.
    What does everyone else normally do about this, surely they don't have all this mail forwarded to their primary email account. It's too much info.
     
    #1 sexshun, Sep 28, 2005
    Last edited: Sep 28, 2005
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should only be receiving essential emails to the root account about the status of the server unless you've forwarded other email to it (e.g. nobody's email). There's no such script aol.pl that is part of the root service, cron or otherwise, so if it is on your server it's been put there by someone manually and is something you'll have to investigate from the root shell.
     
  3. sexshun

    sexshun Active Member

    Joined:
    Sep 28, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    hm, I see... well as I stated earlier it runs fixvaliases which is found here. http://www.cpanel.net/docs/whm/Scripts.htm

    Here is the code from aol.pl
    Code:
    my @files = `grep -rl aol.com /etc/valiases`;
    
    foreach (@files) {
            chomp;
            print "creating $_.bak ...\n";
            system "grep -vw aol.com $_ > $_.bak";
            print "moving $_.bak to $_ ...";
            system "mv $_.bak  $_";
            print " Done \n";
    }
    
    system "/scripts/fixvaliases";
    
    I'll email my host about it cause I just setup this server today.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's not a cPanel provided script. /scripts/fixvaliases is, but that wrapper is not part of cPanel at all.
     
  5. sexshun

    sexshun Active Member

    Joined:
    Sep 28, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    ok thanks. You've been very helpful.
     
Loading...

Share This Page