Web Hosting Talk







View Full Version : PHP mail()


embsupafly
08-24-2004, 05:17 PM
Hi,

I am using the php mail() function to send email to a list of recipients. It does send an email to the email addresses that are being hosted on the server, but if that email belongs to an address hosted on another server, it gets bounced back. The mail only gets to the recipients who are being hosted on the server where the script resides.

The error i get when it bounces back is "unroutable mail domain"

Any body know why? is it a setting in php.ini?

Thanks,

Eric

Doh004
08-24-2004, 05:39 PM
May we see your source code?

embsupafly
08-24-2004, 05:49 PM
Actually, I found the fix. In WHM the following option was checked:

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 unchecked it and it works now. My question is now, how do I set up or install phpsuexec in CPANEL/WHM. SuExec is installed, but since this this a php script, I need to activate phpsuexec. Anyone know how to do this in CPANEL/WHM?

Thanks,

Eric

phearablelsvtec
08-25-2004, 01:44 AM
I would stay away from phpsuexec :-/

xerohosting
08-25-2004, 04:29 PM
I would stay away from phpsuexec :-/


why do you say that phearablelsvetc?

We've got phpsuexec set up on all servers and it prevents many permissions problems.

Anyone know how to do this in CPANEL/WHM?


you can set this up through WHM if you don't want to go through easyapache. go to update apache and just tick the phpsuexec box.

CretaForce
08-26-2004, 06:56 PM
embsupafly: Maybe your host needs to put your domain to /etc/generics-domains

Just an idea.

coupon
08-27-2004, 12:05 AM
Originally posted by CretaForce
embsupafly: Maybe your host needs to put your domain to /etc/generics-domains

Just an idea.

That's my guess as well.