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.

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:
    6
    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...
     
  2. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    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.)"
     
  3. fenixer

    fenixer Well-Known Member

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

    Is this possible?
     
  4. markhard

    markhard Well-Known Member

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

    fenixer Well-Known Member

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

     
  6. markhard

    markhard Well-Known Member

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

     
  7. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    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..
     
Loading...

Share This Page