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.

php mail() and whm nobody tewak settings

Discussion in 'E-mail Discussions' started by Radio_Head, Mar 28, 2003.

  1. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38
    php mail() and whm tweak settings (prevent nobody mail)

    Hello,

    when I started to use the "Prevent the user 'nobody' from sending out mail to remote addresses" option on whm tweak setting a lot of clients are experiencing problems with
    the php mail() function .

    What I have to do to send an email using
    the php mail() function when the ""Prevent the user 'nobody' "
    is enabled ?

    Thank you !!
     
    #1 Radio_Head, Mar 28, 2003
    Last edited: Mar 28, 2003
  2. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    This is just not working correctly at the moment, there are a couple of threads on the same topic.

    Just uncheck 'prevent nobody...' for now until CPanel has fixed this issue.
     
  3. cikul

    cikul Well-Known Member

    Joined:
    Nov 15, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    i have uncheck but, mail() still not working.... anyone can help me??
     
  4. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    What errors do you get after unchecking it?

    I had problems after unchecking it as well, mail was still not being delivered but i didn't get any bounced emails with the unroutable domain error.

    What I did is run /scripts/newexim and then after checking/unchecking a couple of more times things started working all of a sudden. (this was 10-15 minutes later)
    I really have no idea what caused things to suddenly work again, maybe it will do the same for you.
     
  5. joana

    joana Well-Known Member

    Joined:
    Sep 29, 2001
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    restart Exim
     
  6. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38
    uhm ...

    I tried to use mail() with a complete header , indicating
    "from" , "return to" and other parameters ..

    but ....nothing to do .. with "Prevent nobody" the email goes losed (don't reach destination..)

    I hope Brad will fixed this ... at this time "prevent nobody" is too much restrictive !

    Specifiing an header on mail() it should permit to send the message .
     
  7. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    18
    This did the trick for me. The weird thing is that the problem only started happening yesterday although I have that option ticked for a long time.

    When will Cpanel stop breaking our things and make it less buggy :(
     
  8. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    This isn't a bug, its doing exactly what the option says. php/httpd run as 'nobody' so its going to block to mail to remote domains from php scripts if you turn this on (unless you have phpsuexec installed)
     
  9. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    why does it not send when this option is unchecked?
    i use simple mailform.pl cgi script to parse forms and none of the mails are being sent.. any ideas?
     
  10. joana

    joana Well-Known Member

    Joined:
    Sep 29, 2001
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    phpsuexec? we have suexec but not phpsuexec.. where can we get this to install?
     
  11. Dathorn_ADT

    Dathorn_ADT Active Member

    Joined:
    Nov 16, 2002
    Messages:
    41
    Likes Received:
    1
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Is there going to be a fix for this issue any time soon? /scripts/newexim will fix it but after about 4 hours it wouldn't work again and I had to go and do it again. Gets kind of ridiculous.
     
  12. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    I just ran an update to: WHM 6.2.0 Cpanel 6.2.0-S49 (was at WHM 6.0.0 Cpanel 6.0.0-S109) and all seems to be working again.. (only time will tell for sure) might want to update and see what happens..
     
  13. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    where in tweak settings is this???

    what edge are you using to get this? I got WHM 6.2.0 Cpanel 6.2.0-E33
     
  14. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    doesn't say it's an edge release.. was latest in the stable tree..
     
  15. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    oh I see ...ok....so is there a working stable now? we tried last week and it would not upgrade and when we did upgrade with the edge and switched back to stable we lost the edge upgrade :rolleyes:
     
  16. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    yes it appears so.. no one announced anything i just happen to run the update today and it fixed most of my ongoing email (and hopefully bandwidth monitoring) problems.. but again as we all know only time will tell.. so far it's been some 6-7 hours and it's still working..
     
  17. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    just so I dont go thru all the motins again LOL

    which one is it you used

    Cpanel/WHM Updates: Automatic (STABLE tree) Automatic (RELEASE tree) Automatic (bleeding EDGE tree) Critical Updates Only (RELEASE tree) Manual Updates Only (STABLE tree) Manual Updates Only (RELEASE tree) Manual Updates Only (EDGE tree) Never Update



    thanks
     
  18. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    normally I use Automatic (STABLE tree) but I did a manual (stable) update... then set back to auto
     
  19. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    thanks
     
  20. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38

    Thank you but phpsuexec should be still an apache beta
    if I am not wrong .

    and if I can remember the first day you inserted the
    "prevent nobody mail" php mail was working fine
    specifing a full mail header ... (if I can remember it was enough to
    specify the "from" header )


    I want say ...if the client domain is "abc.net" and he send a php mail email with "from" info@abc.net and "return to" info@abc.net
    it SHOULD be able to send also if nobody .
    There is no reason to block it if the header is ok.

    At this time prevent nobody is too much restrictive with php mail().


    If you cannot do something working with exim, can you add phpsuexec in the next buildapache (also in the Beginner mode) ?
     
Loading...

Share This Page