Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173507 - dev-lang/php - set default sendmail_path to /usr/sbin/sendmail
Summary: dev-lang/php - set default sendmail_path to /usr/sbin/sendmail
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High trivial
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 21:39 UTC by Alex Wait
Modified: 2007-04-05 22:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Wait 2007-04-05 21:39:19 UTC
I suddenly had a mail function call in php stop working. 
The mail() function kept returning null. That told me that it wasn't my parameters, but the link to the actual script that sends mail.

I went into and looked at phpinfo() and the default for sendmail path was:
"/usr/sbin/sendmail -t -i".
Apparently the t is not supported and the i option is not needed.

Once I removed those, I was able to use my mail() function once again. :)

I am fairly certain that -t -i is a default for php if there is no entry (there was none for mine). I think that a path of /usr/sbin/sendmail should be used to make sure this works correctly w/o having to troubleshoot.

Thanks!


Reproducible: Always

Steps to Reproduce:
1.Install PHP with sendmail install.
2. Try to use mail().
3. See that it fails. ;) etc etc

Actual Results:  
Mail() does not work.

Expected Results:  
See description.

none really.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-05 22:33:26 UTC
As said, this is upstream default and it's clearly noted as such in php.ini
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2007-04-05 22:49:08 UTC
Agreed, this is upstream default and won't be changed. It works, unless you're using some strange MTA that doesn't like that, can only think of SSMTP, and that one isn't a real server-grade MTA, and the path to sendmail is correct. Just specifying the path to sendmail w/o any parameters would probably break lots of other stuff, so we won't do that.
Best regards, CHTEKK.