Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#44141 - [hhvm] Sendmail path is not correctly configured

Attached to Project: Community Packages
Opened by Michael Taboada (lilmike) - Wednesday, 11 March 2015, 06:53 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Thursday, 12 March 2015, 14:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
In hhvm, as of approximately a month or so ago, the compiled binary guesses /usr/lib/sendmail -t -i as the sendmail path, where it guessed /usr/bin/sendmail -t -i before. This seems like a new problem, although I'm actually not sure if it's due to how its packaged. If this is a bug and it cannot be compiled in through the configuration then it would be easy enough to add :

hhvm.mail.mail_path = "/usr/bin/sendmail -t -i"

to the bottom of /etc/hhvm/php.ini. I figured it's a bug because the package abruptly changed this behavior as of about a month ago, and on the hhvm website it says it will attempt to guess the sendmail path at compile time.

Additional info:
* package version(s): hhvm 3.5.0-1
* config and/or log files etc.


Steps to reproduce:
1. Install hhvm from community.
2. Create a file test.php with the following contents:

<?php
$test = mail("user@example.com", "test mail", "just a test mail. Please ignore." "from:yourmail@mail.com", false);
echo $test;
?>


note to replace the relevant email address with appropriate ones for your situation.
3. Note that hhvm returns something like "/usr/lib/sendmail: no such file or directory." if you have your sendmail installed under /usr/bin/sendmail.
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Thursday, 12 March 2015, 14:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  hhvm-3.6.0-1
Comment by Massimiliano Torromeo (mtorromeo) - Thursday, 12 March 2015, 09:20 GMT
hhvm doesn't try to guess sendmail path. Until a while a go the hardcoded path was simply "sendmail -t -i" which worked because our sendmail is in /usr/bin/sendmail.
This changed when facebook accepted a PR to replace it with the hardcoded "/usr/lib/sendmail -t -i" and there is no configuration flag to change it at compile time.
I will build the next release with the fixed /usr/bin/sendmail path.

Loading...