Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Mar 22, 2011 11:50 pm 
Offline
Newbie

Joined: Tue Mar 22, 2011 11:34 pm
Posts: 2
Newbie question:

My friend set-up my Linode with LAMP using Ubuntu 10.04. But now, support from the script that I am using for my website has suggested my php sendmail path has to be configured. Specifically, they said,

"The sendmail path may be incorrectly configured (php.ini - sendmail_path). Consult with your host to insure that this directive has been set properly."

How can I configure correctly?

Thanks.


Top
   
 Post subject:
PostPosted: Wed Mar 23, 2011 3:54 am 
Offline
Senior Member

Joined: Sat Mar 12, 2011 3:43 am
Posts: 76
Location: Russia
What your friend told about that?

Try to write in php.ini:
Code:
sendmail_path =/usr/sbin/sendmail -t -i -fyourmail@example.com

Don't forget to change yourmail@example.com to your email.

Could be useful: http://library.linode.com/email/


Top
   
 Post subject:
PostPosted: Wed Mar 23, 2011 12:54 pm 
Offline
Senior Member

Joined: Wed Mar 03, 2010 2:04 pm
Posts: 111
OZ wrote:
Try to write in php.ini:
Code:
sendmail_path =/usr/sbin/sendmail -t -i -fyourmail@example.com



Wouldn't this cause an override of the "from" address from every php script on the Linode (potentially confusing with virtual hosts/multiple domains)? I would normally set that -f option on a per-site basis, either in the mailing script itself or a sitewide "include"; but maybe that's wrong.


Top
   
 Post subject:
PostPosted: Wed Mar 23, 2011 12:57 pm 
Offline
Senior Member

Joined: Sat Mar 12, 2011 3:43 am
Posts: 76
Location: Russia
It can be replaced in headers, passed to mail() function.


Top
   
 Post subject:
PostPosted: Wed Mar 23, 2011 1:11 pm 
Offline
Senior Member

Joined: Wed Mar 03, 2010 2:04 pm
Posts: 111
Ok, thanks. I thought -f overrode "From" in the headers passed to mail(). But it's useful to have a default since many servers will reject mail without a valid sender address.


Top
   
 Post subject:
PostPosted: Thu Mar 24, 2011 9:09 am 
Offline
Newbie

Joined: Tue Mar 22, 2011 11:34 pm
Posts: 2
Thanks for the help.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group