Jump to content

Archived

This topic is now archived and is closed to further replies.

gsurface

PHP Mail() Error

Recommended Posts

I am getting an error using my board when sending mail using the sendmail in PHP. I submitted a trouble ticket to my hosting company. I have root access to the server. This is the responce they gave me:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
It seems in php.ini the file specified is
/usr/sbin/sendmail -t -i but this is calling /usr/sbin/sendmail.real which cannot be found in the sbin.

root@www [/var/log]# /usr/sbin/sendmail -t -i
cannot open /usr/sbin/sendmail.real: No such file or directoryn at /usr/sbin/sendmail line 23.

to resolve this issue you will need a valid path in

my $mailprog =

located in /usr/sbin/sendmail
[/quote]
I searched in that directory and I don't have that sendmail.real file. My question is how do I fix this problem? Do I just make my own sendmail.real file, if so, how? Thanks for your help guys.

UPDATE: This is the responce I got from the tech support:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]It appears that you have corrected the issues with sendmail's symbolic link but it does not have the correct permissions and ownership right now. You will need to set this files mode to 2755 and the ownership to root:mailtrap.[/quote]

My responce:
How would I go about setting the file modes to 2755 and which files do I set to this value?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.