mail problem: Server replied: 78 Can't execute command '/usr/sbin/sendmail

Discussion in 'Installation/Configuration' started by bizna, Aug 15, 2010.

  1. bizna

    bizna New Member

    postfix? sendmail? where does the problem come from?

    The following message appears in the SquirrelMail interface, when trying to send a message:
    Server replied: 78 Can't execute command '/usr/sbin/sendmail -i -t [email protected]'.

    ISPConfig 3.0.2.2 installed on CentOS 5.4 using this perfect server guide.

    Additionally, when doing a ehlo localhost from port 25, it gives:
    Code:
    ?Invalid command
    The sendmail service is stopped, and the postfix is started.

    Output of postconf -n is:
    Code:
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    html_directory = no
    inet_interfaces = all
    mail_owner = postfix
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = $myhostname, localhost.$mydomain, localhost
    newaliases_path = /usr/bin/newaliases.postfix
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    unknown_local_recipient_reject_code = 550
    I didn't touch any of the initial definitions, and did only what the guide ordered.

    Any clue?

    Thanks!
    Dotan
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you disable SELinux?
     
  3. bizna

    bizna New Member

    That's the 1st thing I do after installing a CentOS system :)

    Thanks Falko!

    Eventually, after hitting a solid brick wall with this issue, I've moved on to a different system.

    It seems weird to me, that after going through the guide, one step after the other, there are such basic things that don't work as-is. It's too bad, since I really liked the system.

    Thank you nonetheless!

    Dotan
     
  4. mjbarfoot

    mjbarfoot New Member

    too late for Dotan, but had a similar problem.

    Answer was to amend config.php to sendmail.postfix

    steps are :
    >cd /usr/share/squirrelmail/config
    >vi config.php
    :s/'/usr/sbin/sendmail'/'/usr/sbin/sendmail.postfix'/g

    I didn't replace syntax, but easy enough to go to line and amend setting in VI.

    maybe helps someone else if they hit this.
     

Share This Page