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!

Trying to prevent Spam sending from nobody automatically

Discussion in 'General Discussion' started by fenixer, Feb 5, 2008.

  1. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    156
    Hello:

    I wish to config a cronjob, running each 5 minutes, and doing:

    - executes "exim -bpc"
    - if emails in queue are more than a limit (by example 2000), it will be not normal situation, so:
    - prevent outgoing emails through nobody@hostname for 3rd external SMTP servers..
    - Send to me an email to check a possible problem of Spam.

    Well, I know, I can do easy at bash:

    replace "nobodyspam=0" "nobodyspam=1" -- /var/cpanel/cpanel.config

    So outgoing nobody emails will stop, but... it does not run automatically.

    If I do it through tweak settings, I get:

    My question is: what does WHM scripts to configure exim just to prohibit outgoing nobody emails when doing it through tweak settings???

    It would be great I can manage this through bash scripts at cron...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    166
    it is on the Tweak Setting page.

    look for "Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    156
    Yes... I already know... the problem is I want to turn this on from a bash script, not manually...

    Is this possible?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    166
    why do you want to do it in bash script if there is an easier way to do it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    156
    mmmmmmmmm............... ARE YOU JOKING ME?? did you read my Post?

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    166
    oh my mistake, sorry.. i was look at your question only:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    156
    No matter ;)

    The question is just because I want to make it through a bash script...

    I do not know what the hell do WHM when saving tweak settings to apply those changes. The ideal would be just editing something..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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