The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sendmail corrupted

Discussion in 'E-mail Discussions' started by LeGastronome, May 9, 2017.

  1. LeGastronome

    LeGastronome Active Member

    Joined:
    Oct 21, 2010
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    58
    Hello

    It seems that send mail is corrupted

    I get this error when i log as root ans use mail command
    /usr/sbin/sendmail: Exec format error

    Sendmail is an empty file, seems strange

    How to force reinstall?

    Thanks
     
  2. Sydney Barrett

    Sydney Barrett Registered

    Joined:
    May 5, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Heyy, did you try that code on different page?
     
  3. LeGastronome

    LeGastronome Active Member

    Joined:
    Oct 21, 2010
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    58
    Different page?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,186
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Please post the output from the following commands:

    Code:
    cat /usr/local/cpanel/version
    ls -al /usr/sbin/sendmail
    lsattr /usr/sbin/sendmail
    Thank you.
     
  5. LeGastronome

    LeGastronome Active Member

    Joined:
    Oct 21, 2010
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    58
    Command isn't good

    # cat /usr/local/cpanel/version ls -al /usr/sbin/sendmail lsattr /usr/sbin/sendmail
    cat: invalid option -- 'a'
    Try 'cat --help' for more information.
     
  6. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    261
    Likes Received:
    77
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I think Michael intended you to run those three lines as three separate commands :)

    Try
    Code:
    cat /usr/local/cpanel/version
    and then
    Code:
    ls -al /usr/sbin/sendmail
    and then
    Code:
    lsattr /usr/sbin/sendmail
    and paste the output of each command into your answer here.
     
  7. LeGastronome

    LeGastronome Active Member

    Joined:
    Oct 21, 2010
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    58
    Yes of course my mistake ! I am on mobile

    11.62.0.22

    root root 20 May 10 10:58

    /usr/sbin/sendmail -> /usr/local/sbin/exim

    (Symlink seems not right?)

    # lsattr /usr/sbin/sendmail
    lsattr: Operation not supported While reading flags on /usr/sbin/sendmail

    Thank you
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,186
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That's not a standard configuration. You can remove the symbolic link and then run the following command to correct this:

    Code:
    /scripts/check_cpanel_rpms
    Thank you.
     
  9. LeGastronome

    LeGastronome Active Member

    Joined:
    Oct 21, 2010
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    58
    Great this has fix the issue

    thank you
     
    cPanelMichael likes this.
  10. LeGastronome

    LeGastronome Active Member

    Joined:
    Oct 21, 2010
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    58
    I discover it's the manual installation of Xdebug that cause this issue.

    may be phpize ?
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,186
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you rephrase this question? For instance, what steps or commands are you using to install the software?

    Thank you.
     
  12. LeGastronome

    LeGastronome Active Member

    Joined:
    Oct 21, 2010
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    58
    We use this wizard :
    xdebug.org/wizard.php

    after following the installation steps, exim symlinks seems corrupted, we need to fix it with the cpanel script
     
    #12 LeGastronome, Jun 7, 2017
    Last edited by a moderator: Jun 7, 2017
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,186
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    If the installation of that third-party application is overwriting the sendmail binary, then you'd need to report this to the developer of the script to determine if any workarounds are available to allow for the installation without making that modification.

    Thank you.
     
Loading...

Share This Page