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.

nobody email problem

Discussion in 'E-mail Discussions' started by bonjurkes, Dec 20, 2007.

  1. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I have a question about tweak settings.

    I installed suPHP and i choose the enable it, so the aim was php scripts wont run as nobody. And after that i made the change at tweak settings for preventing nobody to send mail, because of spam issues.

    But now my mail is full of discarded mails says that,


    This message was created automatically by mail delivery software.

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:

    x@hotmail.com
    Mail sent by user nobody being discarded due to sender restrictions in WHM->Tweak Settings

    ------ This is a copy of the message, including all the headers. ------

    Return-path: <nobody@server.x.com>
    Received: from nobody by server.x.com with local (Exim 4.68)
    (envelope-from <nobody@server.x.com>)
    id 1J5J6z-0001gv-21
    for x@hotmail.com; Thu, 20 Dec 2007 12:58:45 +0200



    Vbulletin script is sending those mails but i have 2 questions, is there a way to find for this problem? Users can be able to send mail from vbulletin but it wont send as nobody,

    or what is the best way to solve this problem?

    Thanks
     
  2. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Europe
    usually, the software itself has the necessary options that allows them to send emails as an existing user/email.

    for example, they should do proper SMTP authentication and the From: should contain a valid email address.
     
  3. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    yes but the thing i am asking for , if php is not running as nobody why mails are sending as nobody@server.x.com ?
     
  4. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Europe
    what if its not sending emails via PHP's mail(), but via a Perl script or a custom SMTP client implementation?
     
  5. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    the thing is, there is plenty of websites that uses nhobody@ for sending emails. I didn't know that there was that much of mails. Because i started to get hundreds of mail to my inbox saying that mail is discarded.

    So the only option is forcing everyone to use smtp option for sending mails?
     
  6. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    #6 darren.nolan, Dec 20, 2007
    Last edited: Dec 20, 2007
  7. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Europe
    well, all my software use SMTP to send emails and all of them use SMTP authentication and a real email address.

    sometimes, i create an email like forum_noreply@ and then :fail: all incoming emails.

    as a result, my outgoing emails are perfectly valid and Sender Verification succeeds every time, and the inbox of that email is always zero because anything sent to it is accepted but deleted.
     
  8. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    That's the safest idea.

    bonjurkes - can you please check suPHP is setup for that username/domain in httpd.conf
    You've chopped a bit of the header off the email - does the "reply-to" and from: bits in your header get filled correct?

    It's just the return-path right?
     
  9. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    This message was created automatically by mail delivery software.

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:

    x@hotmail.com
    Mail sent by user nobody being discarded due to sender restrictions in WHM->Tweak Settings

    ------ This is a copy of the message, including all the headers. ------

    Return-path: <nobody@server.x.com>
    Received: from nobody by server.x.com with local (Exim 4.68)
    (envelope-from <nobody@server.x.com>)
    id 1J5Job-0005v5-Tl
    for x@hotmail.com; Thu, 20 Dec 2007 13:43:49 +0200
    To: x@hotmail.com
    Subject: =?
    X-PHP-Script: www.x.com/showthread.php for xx.xx.xx.xx
    From: site title= <x@gmail.com>
    Auto-Submitted: auto-generated
    Message-ID: <200712201149.ec7e4d956495@www.x.com>
    MIME-Version: 1.0
    Content-Type: text/plain; charset="ISO-8859-9"
    Content-Transfer-Encoding: 8bit
    X-Priority: 3
    X-Mailer: vBulletin Mail via PHP
    Date: Thu, 20 Dec 2007 13:43:49 +0200

    this is the full header

    at httpd.conf

    <IfModule mod_suphp.c>
    suPHP_UserGroup username username
    </IfModule>


    this ifmodule is available for every domain, but the username part changes for every domain's login.

    Is it the info you want?
     
    #9 bonjurkes, Dec 20, 2007
    Last edited: Dec 20, 2007
  10. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Yeap - cheers. Let me do some checking against my settings - and see what different, everything there is what my system uses (and sends from username@hostname.com) which is your desired result right? I'll be back.
     
  11. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    The return path will be the server's default if PHP is running as a module - rather than CGI. Ensure that under WHM - Service Configuration - Configure PHP & SuExec - the PHP 4/5 handler is absolutely (no doubt) suphp.

    If that is, open up php.ini and search for sendmail_path - in my php.ini sendmail_path is commented out
    ;sendmail_path
    And as a result - defaults to "sendmail -t -i"

    Cheers,
     
  12. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    my bad,

    php 5 handler is still dso, i forgot to change it to suphp,

    php 4 handler is none as there is no other option.

    when i set it as suphp, after few seconds all php sites start to give

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, xx and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
     
    #12 bonjurkes, Dec 20, 2007
    Last edited: Dec 20, 2007
  13. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    ok,

    noob question. Where can i find those logs? It`s pretty long time passed when i used cpanel :D
     
  14. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Hurray for a new problem now! lol

    Okay - I assume your default php version is 5 - and then when it's set to suphp that's when things start to go bad.

    Follow your suphp log and apache log for some clues as to why the errors happen. Maybe mismatched permissions on files, httpd.conf with the modules isn't set right - hey, apache might need a recompile maybe.

    But check your logs first.
     
  15. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    ok, there is some time differences :)

    anyway, let me ask again,

    where can i find suphp log or apache log?

    I guess i know apache log place but where is suphp log?
     
  16. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Same place sir.

    tail -f /usr/local/apache/logs/suphp_log

    and start try to browse the websites that are failing - that in conjunction should give some indication where the new problems lies.

    Hate to do it to you sir - but I'm off to sleep (fancy that). Will be back in about 4-6hours.
    Wish you luck.
     
  17. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    ok, here is the results i get from suphp_log

    [Thu Dec 20 18:51:29 2007] [warn] Mismatch between target GID (32006) and GID (10001) of file "/home/osman/public_html/lastrss/bridge.php"
    [Thu Dec 20 18:51:31 2007] [warn] Mismatch between target GID (32006) and GID (10001) of file "/home/osman/public_html/showthread.php"
    [Thu Dec 20 18:51:31 2007] [warn] Mismatch between target GID (32006) and GID (10001) of file "/home/osman/public_html/showthread.php"
    [Thu Dec 20 18:51:34 2007] [warn] Mismatch between target GID (32019) and GID (10001) of file "/home/footpic/public_html/details.php"
    [Thu Dec 20 18:51:34 2007] [warn] Mismatch between target GID (32019) and GID (10001) of file "/home/footpic/public_html/details.php"
    [Thu Dec 20 18:51:35 2007] [warn] Mismatch between target UID (32006) and UID (10040) of file "/home/ersen/public_html/futbol-resimleri/details.php"
    [Thu Dec 20 18:51:36 2007] [warn] Mismatch between target GID (32006) and GID (10001) of file "/home/osman/public_html/lastrss/bridge.php"
    [Thu Dec 20 18:51:36 2007] [warn] Mismatch between target GID (32006) and GID (10001) of file "/home/osman/public_html/lastrss/bridge.php"
    [Thu Dec 20 18:51:36 2007] [warn] Mismatch between target GID (32019) and GID (10001) of file "/home/footpic/public_html/details.php"
    [Thu Dec 20 18:51:36 2007] [warn] Mismatch between target GID (32006) and GID (10001) of file "/home/osman/public_html/vbshout.php"


    It just continues like that, same error appears at apache error log also.

    p.s : does it matter if suexec is on or off? It is on now, i tried the same but still giving error
     
  18. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Everything I can find on this shows a recompile of apache fixes the problem.

    Try using EA3 to recompile apache with suphp and see if that helps.

    Edit: Might want to update cPanel before you use EA3... Safest bet also
     
    #18 darren.nolan, Dec 20, 2007
    Last edited: Dec 20, 2007
  19. bonjurkes

    bonjurkes Member

    Joined:
    Jul 3, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1

    i am already using ea3,

    i start to have pretty many problems with suhosin, suphp, imagemagick, horde vs. and i am pretty pissed off.

    I recompiled apache without suphp now, i have p4 3.2 with 2 gb ram box so i read like it will use pretty much system usage.

    And i get some recommends like, i don't really need to use suphp.

    Let's see what happens after recompile.
     
  20. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    What version of Apache & PHP are you compiling to?

    I don't use suhostin - I've never really saw a point.

    Someone care to enlighten me?
     
Loading...

Share This Page