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!

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

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

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    689
    Likes Received:
    14
    Trophy Points:
    68
    Hello,

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

    from my WHM server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    689
    Likes Received:
    14
    Trophy Points:
    68
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #3 postcd, Jun 30, 2014
    Last edited: Jun 30, 2014
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,242
    Likes Received:
    385
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    These should all be set to an off server email address.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    689
    Likes Received:
    14
    Trophy Points:
    68
    So i need to send these 3 to my mailbox and automatically save it, not read them. I assume reading them is not necessary?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,242
    Likes Received:
    385
    Trophy Points:
    583
    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?

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  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