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.

Stop mail going out as Nobody

Discussion in 'E-mail Discussions' started by Dub, Dec 16, 2005.

  1. Dub

    Dub Member

    Joined:
    Sep 11, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I need to stop my mail server sending out mail as nobody from the forums i host as all the emails to aol are being rejected


    how do i go about changing it from nobody to somthing else ?

    Any help much appreciated

    Dub
     
  2. paint

    paint Well-Known Member

    Joined:
    Nov 10, 2002
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Either use phpsuexec or do a loop back with AOL.
     
  3. Dub

    Dub Member

    Joined:
    Sep 11, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Izzee i tryed that and every site went down with a 500 error and i had searched the forums to find more info as you said i thaught i had the correct info but i couldent get it to work.

    So ive build again without phpsuexec and all is back to normal gunna read more into it me thinks :)
     
  4. Dub

    Dub Member

    Joined:
    Sep 11, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    thanks alot i will try this in the morning :)
     
  5. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    This is great, I tink only one part is missing or I did not see it:

    if you had PHP values in the .htacces file, they where recursive. This means they where also valid for the subdirectories. If you use now a php.ini file, they are only valid for this directory where you place the file, but not in the subdirectory.

    Michael
     
  6. fred123123

    fred123123 Well-Known Member

    Joined:
    Jul 23, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    won't it be less complex to just change the name from which apache is run ? Change the nobody user to something else... !!
     
  7. Secret Agent

    Secret Agent Guest

    I enabled phpsuexec on php 4.4.2 but now many sites show a popup dialog "save file as".

    What could cause this?

    I ran /scripts/chownpublichtmls and still getting

    500 error
    403 forbidden
    save file as popups
     
    #7 Secret Agent, Mar 17, 2006
    Last edited by a moderator: Mar 17, 2006
  8. Secret Agent

    Secret Agent Guest

    I was successful on ANOTHER server but I got one client with this complaint

    Sites down that use, User Defined Mime Types
    Instead of executing a HTML as PHP I get a 500 error

    What should I do in this case?
     
  9. weblord

    weblord Member

    Joined:
    Mar 16, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    can someone tell me is there a way to monitor email messages (well not the actual email messages but only headers) of who sent to whom?
    i just use this command:
    tail -100 /var/log/maillog
    but can tail offer more options as in indicating a particular email address to monitor something like in the format username@domain.com ? pls. advise.

    i posted on this thread for i don't see any thing related to spam suspects or avoidance of it.
     
  10. Secret Agent

    Secret Agent Guest

    I got a little confict as shown below from a copy/paste message from a client

    PHP code inside of html pages will only work if the file is named with a php file extension (filename.php and not filename.html). You will have to edit other pages that link to filename.html to reflect the php extension change.

    Example code for this issue:
    <html>
    <head>
    <title>PHP Inside HTML Test</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    </head>
    <body>
    <?php print( "Hello" ); ?>
    </body>
    </html>
    Save the code as test.html will display a blank page.
    Save the code as test.php will display Hello on the page.

    ----------------------

    This means a complete rebuild of all of my websites with a change between .HTML and .PHP extentions + this change will KILL all of my results in search engines, is there no way around this?

    I have worked very hard to promote www.mysite.com – it uses HTML files with PHP syntax in them and right now I do not know what to do. (I repeat: changing of the filenames will make all the promotion work I’ve done and all the money spend on a complete waste, that is not good)

    -----------------------


    What can be done in this case if phpsuexec support is enabled?
     
  11. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    to run html pages with php embedded into them put these commands into the .htaccess file in the public_html folder for the site

    and then go into the cpanel for the site and then into the apache handlers section and add .htm and .html as server-parsed

    this will enable you to use embedded php inside .htm and .html files while using phpsuexec
     
  12. Secret Agent

    Secret Agent Guest

    Thanks what about this?

    Client gets an error 500

    All I can see in the error log is

    [Mon Mar 20 09:13:47 2006] [error] [client 68.142.xxx.xxx] Premature end of
    script headers: /home/client/public_html/client/index.php

    and index.php is a symlink 2 levels deep.


    I had alrady ran all the commands for chmodding

    There is no htaccess file in public_html
    php.ini is there with

    memory_limit = 128M
    upload_max_filesize = 10M
    default_charset = UTF-8
    safe_mode = Off
    mbstring.internal_encoding = UTF-8
    mbstring.encoding_translation = 1
    mbstring.http_output = UTF-8
    allow_url_fopen = 1
     
  13. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    check for any .htaccess files in the web and make sure they do not have any php directives in them as phpsuexec will error out

    also make sure no directories or files are 0777 permissions

    beyond that without a lot more specific detail its going to be hard to tell

    also check your /usr/local/apache/logs/suexec_log for any errors
     
  14. Secret Agent

    Secret Agent Guest

    Another problem:
    (quoting client)

    Since the security upgrade on server4 this morning, I am no longer able to access the mailing list archives.

    This URL is encountering the error code 500 that your note warned about, however the script is not contained in my home directory. I assume that you have aliased this to point to a server-wide installation.

    and

    Existing symbolic links are no longer working. Is there a work around for this?

    The index.html file is simply a symbolic link to passwordmaker.html, which is simply an HTML page with permissions of 644. I am not sure why this is now giving me an HTTP error code of 500


    drwxr-xr-x 2 dmorlitz dmorlitz 4.0K Feb 14 19:34 password/
     
    #14 Secret Agent, Mar 20, 2006
    Last edited by a moderator: Mar 20, 2006
  15. Secret Agent

    Secret Agent Guest

    As for the other problem with the 500

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@client.com.es 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.

    I tailed /usr/local/apache/logs/suexec_log

    [2006-03-20 12:20:24]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: index.php
    [2006-03-20 12:20:24]: error: cannot stat program: (index.php)

    [2006-03-20 12:20:29]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: viewtopic.php

    [2006-03-20 12:20:57]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: viewforum.php
    [2006-03-20 12:20:57]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: demo.php


    htacess

    <Limit GET HEAD POST>
    order allow,deny
    deny from cogentco.com
    deny from anonymizer.com
    deny from wideopenwest.com
    deny from proxad.net
    deny from sexnet24.tv
    deny from frb.org
    deny from 38.113.234.
    allow from all
    </LIMIT>

    # BLOCK blank referrer -AND- UA except for HEAD
    RewriteCond %{REQUEST_METHOD} !^HEAD$
    RewriteCond %{HTTP_REFERER} ^$
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule .* bad_referrer.php [L]

    # BLOCK *Faked* blank referer -OR- UA
    RewriteCond %{HTTP_REFERER} ^-$ [OR]
    RewriteCond %{HTTP_USER_AGENT} ^-$
    RewriteRule .* bad_referrer.php [L]
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>


    htaccess.org

    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName www.client.com
    AuthUserFile /home/client/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/client/public_html/_vti_pvt/service.grp
     
    #15 Secret Agent, Mar 20, 2006
    Last edited by a moderator: Mar 20, 2006
Loading...

Share This Page