CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • sendmail - works from SSH, but not CiviCRM
Pages: [1]

Author Topic: sendmail - works from SSH, but not CiviCRM  (Read 1151 times)

blee

  • Guest
sendmail - works from SSH, but not CiviCRM
September 30, 2009, 04:08:29 pm
From the web UI I get:
Failed to open sendmail [/usr/sbin/sendmail] for execution.

But I can SSH and "/usr/sbin/sendmail i- me@mail.com" and successfully receive email.

Does this have something to do with the acct that is trying to exec sendmail?  Is it the user that Apache runs under?

Thanks for any input.
--blee

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: sendmail - works from SSH, but not CiviCRM
September 30, 2009, 06:48:31 pm

i'd suspect that is the case (the apache user does not have execute privilegs on sendmail)

you can verify that by writing a small php script which just tries to do that

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

blee

  • Guest
Re: sendmail - works from SSH, but not CiviCRM
October 05, 2009, 10:38:01 pm
For anyone interested, I had to alter my php.ini:
remove options for disable_functions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • sendmail - works from SSH, but not CiviCRM

This forum was archived on 2017-11-26.