LeGastronome

Active Member
Oct 21, 2010
35
1
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
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.
 

LeGastronome

Active Member
Oct 21, 2010
35
1
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.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
457
113
UK
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.
 

LeGastronome

Active Member
Oct 21, 2010
35
1
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
/usr/sbin/sendmail -> /usr/local/sbin/exim

(Symlink seems not right?)
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.
 

LeGastronome

Active Member
Oct 21, 2010
35
1
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
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
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.
 
Thread starter Similar threads Forum Replies Date
benito Email 6
Mauritz Email 2
V Email 2
S Email 16
R Email 7