#1 (permalink)  
Old 01-09-2004, 01:45 PM
Registered User
 
Join Date: May 2003
Location: India
Posts: 19
ankushdawar
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-09-2004, 09:36 PM
rix rix is offline
Registered User
 
Join Date: May 2003
Posts: 68
rix
I might be late to answer this, well you could modify your script to use PEAR::Mail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-09-2004, 11:53 PM
Registered User
 
Join Date: May 2003
Location: India
Posts: 19
ankushdawar
But....


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

Need a server wide solution.
__________________
Ankush Dawar

The Digital Media Designer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-10-2004, 12:14 AM
rix rix is offline
Registered User
 
Join Date: May 2003
Posts: 68
rix
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-10-2004, 09:38 AM
Registered User
 
Join Date: May 2003
Location: India
Posts: 19
ankushdawar
Hey Phantom ! ...

I have phpSuExec installed and compiled with php.

What next. Still mails are bouncing.
__________________
Ankush Dawar

The Digital Media Designer

Last edited by ankushdawar; 01-10-2004 at 10:48 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-11-2004, 11:27 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
draken78
I think what thephantom was referring to was to uncheck the 'nobody' option, with phpsuexec installed.

Hope that helps,
Jim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-11-2004, 12:00 PM
Registered User
 
Join Date: May 2003
Location: India
Posts: 19
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.
__________________
Ankush Dawar

The Digital Media Designer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-12-2004, 12:27 PM
Registered User
 
Join Date: Nov 2002
Posts: 1,755
anand is on a distinguished road
Quote:
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 ::
Authorised cpanel Partner NOC

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-12-2004, 12:30 PM
Registered User
 
Join Date: Nov 2002
Posts: 1,755
anand is on a distinguished road
Quote:
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 ::
Authorised cpanel Partner NOC

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-12-2004, 12:33 PM
Registered User
 
Join Date: Nov 2002
Posts: 1,755
anand is on a distinguished road
Re: Php Mail Function / As nobody

Quote:
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 ::
Authorised cpanel Partner NOC

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:08 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc