Results 1 to 7 of 7

Thread: SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

  1. #1
    helper is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    12

    Default SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

    System:
    • Red Hat Linux Enterprise 5
    • Email: Exim
    • Webmail: Horde (SSL)
    • Control Panel: WHM 11.11.0/Cpanel 11.15.0
    • Path to sendmail (verified): /usr/sbin/sendmail
    • Web Server: Apache 2.2 w/SSL
    • PHP: 5.2.4 (with IMAP)
    • mySQL: 5.0.45
    • SugarCRM: Community Edition - SugarOS patch 4.5.1f 2007-10-05 10:32


    I have attempted all settings in the admin config and account settings for email. No matter what I do SugarCRM will NOT send emails. Error in the SugarCRM log: "SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail"

    All other email routines work (even a short script I wrote to test sendmail through PHP), all clients (for example, horde, Outlook, etc.) can send email without any issue. SugarCRM receives email okay.

    Questions:
    1. Does SugarCRM need to be a member of the wheel for sendmail?
    2. I see most folks with email issues are in the Windows platform, did anybody else run into this issue on Linux?
    3. Looking for work-arounds or solutions??

  2. #2
    andringa is offline Junior Member
    Join Date
    Feb 2008
    Posts
    2

    Default Re: SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

    Hi

    Did you ever solve this problem? I am having the same issue. I am also on CPanel and I can send email using sendmail but not for SugarCRM. I wonder if it has anything to do with Exim as this handles the email on our server?

    Thanks

    Paul

  3. #3
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

    Seeing that sendmail is in /usr/sbin I am thinking that you are having a permission problem. What are the permissions on sendmail, also is that sendmail simply a link to the /usr/sbin/exim executable (as I see you are using exim as your email server)? I am not sure SugarCRM is 100% compatible with exim.

    You could simply set up a pop3 account on your email server and use that to send the email with as well, at least as a workaround until you solve the sendmail issue.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  4. #4
    boorey is offline Junior Member
    Join Date
    May 2008
    Posts
    3

    Question Re: SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

    Did anyone ever resolve this problem? I have the same issue: Receiving email via IMAP works fine, but sending email gives me the error message

    "Error emailing:Could not execute: /usr/sbin/sendmail"

    I tested the mail() function in a little script and it worked fine. Why can't sugar use it?

    I tried to use an SMTP server instead of sendmail but unfortunately my host has disabled fsockopen() and so this is not an option either.

    Thankful for any help.

  5. #5
    longpt is offline Junior Member
    Join Date
    Sep 2007
    Posts
    2

    Default Re: SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

    I am now using sugar 5.0.f and have the same problem.
    I also can not using gmail like a external email

  6. #6
    pingtone is offline Member
    Join Date
    May 2007
    Posts
    12

    Default Re: SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

    this is a long old dead thread but just incase it saves someones day.


    even with SELINUX turned off, i saw this


    root# getsebool httpd_can_sendmail
    httpd_can_sendmail --> off


    root# setsebool httpd_can_sendmail 1
    root# getsebool httpd_can_sendmail
    httpd_can_sendmail --> on


    fixed my problem

  7. #7
    pingtone is offline Member
    Join Date
    May 2007
    Posts
    12

    Default Re: SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail

    found selinux still ruining my life.

    setsebool httpd_can_sendmail 1
    root# getsebool httpd_can_sendmail
    httpd_can_sendmail --> on


    fixed problem

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assignment notification isnt working!
    By ichow in forum Help
    Replies: 14
    Last Post: 2008-10-26, 03:02 AM
  2. Problems with email notification
    By albmaz in forum Help
    Replies: 3
    Last Post: 2007-02-26, 01:44 AM
  3. Assignment Notification - Not Sent
    By absando in forum General Discussion
    Replies: 5
    Last Post: 2007-02-21, 07:42 AM
  4. Replies: 0
    Last Post: 2006-10-10, 06:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •