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.

Disable /usr/local/cpanel/scripts/upcp --cron mails ?

Discussion in 'E-mail Discussions' started by postcd, Jun 29, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    Hello,

    how i can disable sending mails with subject:
    "Cron <root@MyHostname> /usr/local/cpanel/scripts/upcp --cron"

    from my WHM server?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The email is sent by cron. To prevent the email you'll need to instruct cron to not send email. You can do this by adding
    Code:
    MAILTO=""
    
    at the top of the crontab. Please be advised that this will prevent ANY cron job in that crontab from sending email. More information on preventing cron from sending email is available from a simple google search: https://www.google.com/search?q=prevent+cron+from+sending+email
     
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    i remember i enabled somewhere in WHM that root emails are forwarded to my mail address, and that is it probably.
    // it is there: Home »Server Contacts »Edit System Mail Preferences

    what is recommended setting for roots, nobodys, cpanels mail?
     
    #3 postcd, Jun 30, 2014
    Last edited: Jun 30, 2014
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,461
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    These should all be set to an off server email address.
     
  5. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    So i need to send these 3 to my mailbox and automatically save it, not read them. I assume reading them is not necessary?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,461
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You assume incorrectly. I'm not even sure what your question means exactly. Did you read whats on that page at all?

     
  7. wibleh

    wibleh Registered

    Joined:
    Aug 26, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    If you edit the crontab "crontab -e" and add " > /dev/null" to that particular entry, does that not stop that email?
     
Loading...

Share This Page