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.

Help with Exim

Discussion in 'General Discussion' started by cbingham, Aug 14, 2004.

  1. cbingham

    cbingham Active Member

    Joined:
    Aug 14, 2001
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Vancouver, BC, Canada
    This may seem like a stupid question but how can I set exim to allow email from PHP scripts running as nobody.

    I have a custom built script that is using the PHP mail function.

    I never get the emails if the "To:" field is set outside the domain that the script is running on..

    There is nothing but the default security set on Exim. I know that using Perl scripts you could never send outside the domain running the script, but until now I have had no problems with PHP scripts. Good SPAM preventer but not good for our forum verification emails or my custom script.

    Any one know a solution?

    Preferrably one that I can set this open relay function for our domain only.

    We are running RH Ent with CPanel 9.5.0 C-31
     
  2. OCX

    OCX Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    in WHM go to Tweak settings

    uncheck this box
    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.)

    scroll down..save..
     
  3. cbingham

    cbingham Active Member

    Joined:
    Aug 14, 2001
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Vancouver, BC, Canada
    It was never checked to begin with :) I have already looked at every setting I know of.
     
  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
    Do you get errors in /var/log/exim_mainlog when you attempt to send the email from the script? Those would help.
     
Loading...

Share This Page