| Linode Forum https://forum.linode.com/ |
|
| Sendmail_path configuration https://forum.linode.com/viewtopic.php?f=11&t=6854 |
Page 1 of 1 |
| Author: | Tgruv [ Tue Mar 22, 2011 11:50 pm ] |
| Post subject: | 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. |
|
| Author: | OZ [ Wed Mar 23, 2011 3:54 am ] |
| Post subject: | |
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/ |
|
| Author: | haus [ Wed Mar 23, 2011 12:54 pm ] |
| Post subject: | |
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. |
|
| Author: | OZ [ Wed Mar 23, 2011 12:57 pm ] |
| Post subject: | |
It can be replaced in headers, passed to mail() function. |
|
| Author: | haus [ Wed Mar 23, 2011 1:11 pm ] |
| Post subject: | |
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. |
|
| Author: | Tgruv [ Thu Mar 24, 2011 9:09 am ] |
| Post subject: | |
Thanks for the help. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|