Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    May 2003
    Location
    India
    Posts
    19

    Default Php Mail Function / As nobody

    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.)
    ------------------------------
    I have enabled this option.
    -----------------------------

    Then mail sent through the server : php mail function.

    Gets Bounced messages.

    theman@AOL.COM
    unrouteable mail domain "aol.com"
    Return-path: <input@abc.com.com>
    Received: from nobody by server145.xuz.com with local (Exim 4.24)
    id 1AegQW-0006Pp-Mm
    for theman@AOL.COM; Thu, 08 Jan 2004 15:06:44 -0500
    To: theman@AOL.COM
    Subject: ActivaciСn de cuenta de usuario nuevo.

    Anyone with a solution. ???
    Ankush Dawar

    The Digital Media Designer

  2. #2
    rix
    rix is offline
    Member
    Join Date
    May 2003
    Posts
    68

    Default

    I might be late to answer this, well you could modify your script to use PEAR::Mail

  3. #3
    Member
    Join Date
    May 2003
    Location
    India
    Posts
    19

    Default

    But....


    I have 5 Cpanel Servers.
    Cant edit all scripts ... for all clients ....

    Need a server wide solution.
    Ankush Dawar

    The Digital Media Designer

  4. #4
    rix
    rix is offline
    Member
    Join Date
    May 2003
    Posts
    68

    Default

    im sure some of them running a forum that support smtp to sendmail instead of mail(). Theres no server wide solution into it if u dont want to edit their script.

    since you've disabled uesr nobody from sending email, that means the other option is to send email using a script that communicates with localhost port 25. That means? Script editing the only way to overcome this problem

  5. #5
    Member
    Join Date
    May 2003
    Location
    India
    Posts
    19

    Default

    Hey Phantom ! ...

    I have phpSuExec installed and compiled with php.

    What next. Still mails are bouncing.
    Last edited by ankushdawar; 01-10-2004 at 11:48 AM.
    Ankush Dawar

    The Digital Media Designer

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    6

    Default

    I think what thephantom was referring to was to uncheck the 'nobody' option, with phpsuexec installed.

    Hope that helps,
    Jim

  7. #7
    Member
    Join Date
    May 2003
    Location
    India
    Posts
    19

    Default

    No ... If I uncheck ...

    Then my own clients try to spam others by using scripts.

    And It becomes a spamming issue at Spamcop.net and heavy loads on the box.
    Ankush Dawar

    The Digital Media Designer

  8. #8
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Originally posted by draken78
    I think what thephantom was referring to was to uncheck the 'nobody' option, with phpsuexec installed.

    Hope that helps,
    Jim
    Nope hes not referring to that. You don't have the uncheck nobody with phpsuexec installed, whole idea is lost then.

    With phpsuexec installed, the username gets used for executing any php / cgi scripts on the server. You mite need to setup permissions at times for scripts (i had this probs on a box, setting proper permissions on php scripts worked).
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  9. #9
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Originally posted by ankushdawar
    No ... If I uncheck ...

    Then my own clients try to spam others by using scripts.

    And It becomes a spamming issue at Spamcop.net and heavy loads on the box.
    Even then it can still become an issue. Even if you use phpsuexec, with nobody unchecked, anyone can make a script (which gets executed as his user id) and start to spam the world. You need to keep a check on the mail traffic / queue for monitoring if someone is spamming or not. Or probably use some scripts to maintain db of the mails being send by users outside the network. We do that on some boxes at present. Whm has this feature of monitoring which users are relaying from the user and how many and to whom they are sending mails. Though i think it only shows you for that particular day (not sure).

    My 2 cents.
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  10. #10
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Php Mail Function / As nobody

    Originally posted by ankushdawar
    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.)
    ------------------------------
    I have enabled this option.
    -----------------------------

    Then mail sent through the server : php mail function.

    Gets Bounced messages.

    theman@AOL.COM
    unrouteable mail domain "aol.com"
    Return-path: <input@abc.com.com>
    Received: from nobody by server145.xuz.com with local (Exim 4.24)
    id 1AegQW-0006Pp-Mm
    for theman@AOL.COM; Thu, 08 Jan 2004 15:06:44 -0500
    To: theman@AOL.COM
    Subject: ActivaciСn de cuenta de usuario nuevo.

    Anyone with a solution. ???
    I should have answered it more sequentially, neways.

    Try this on the shell

    dig aol.com
    ping aol.com

    It should resolve and provide you with ips (just for the heck of it)

    Now lets test the mail part. On shell type the following:

    mail -v theman@aol.com
    Complete the mail and let it send it. Check if the mail is delivered or not. If not, paste the entire contents here.
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

Similar Threads & Tags
Similar threads

  1. php mail function?
    By kobeeightjp in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-28-2010, 01:36 AM
  2. E-mail not going on same server sites using php mail() function
    By muzaffar in forum E-mail Discussions
    Replies: 1
    Last Post: 06-29-2009, 01:48 PM
  3. PHP(mail) Function
    By nichollsd in forum New User Questions
    Replies: 10
    Last Post: 10-13-2006, 04:44 PM
  4. PHP and mail() function
    By Jontxu40 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-11-2003, 02:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube