Sendmail_path configuration

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.

5 Replies

What your friend told about that?

Try to write in php.ini:

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/

@OZ:

Try to write in php.ini:

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.

It can be replaced in headers, passed to mail() function.

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct