/usr/sbin/sendmail not exist ! no notification send,

mehrana

Registered
Jan 14, 2013
4
0
1
cPanel Access Level
Root Administrator
Hello people,
I have a problem with one of my server,

in one of my server /usr/sbin/sendmail is existed but in wrong way think:

sendmail -> /etc/alternatives/mta
and no notification send via server!
could any one help please?
Also LFD log said: Unable to send SENDMAIL alert via [/usr/sbin/sendmail]: No such file or directory

but in another server every thing work fine: root mailtrap 11671 Mar 20 18:36 sendmail



Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

It's possible that sendmail was replaced on your server at some point. Does "/etc/alternatives/mta" exist? You can check with a command such as:

Code:
# stat /etc/alternatives/mta
This will sometimes link back to a sendmail binary. If not, you can reinstall sendmail via:

Code:
# yum install sendmail
Thank you.
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
Yeah that doesn't look right, should be something like

Code:
whereis sendmail
sendmail: /usr/sbin/sendmail /usr/lib/sendmail
It looks from what you've provided like the alternatives system might be activated.

What is the output of

Code:
rpm -q --whatprovides /usr/sbin/sendmail
It should be something like exim-4.80-6.cp1136

There are details on how to check the cPanel installed rpms at check_cpanel_rpms script
 

mehrana

Registered
Jan 14, 2013
4
0
1
cPanel Access Level
Root Administrator
Yes, You right:


Code:
rpm -q --whatprovides /usr/sbin/sendmail
exim-4.80-6.cp1136.x86_64
also:

Code:
whereis sendmail
sendmail: /usr/sbin/sendmail /usr/lib/sendmail
I changed LFD setting like this:

SENDMAIL = /usr/sbin/exim

and now I receive email from LFD,
But I''m still not receiving email from cPanel !

What should I do?
 

mehrana

Registered
Jan 14, 2013
4
0
1
cPanel Access Level
Root Administrator
I've just run script that you suggested and it seems everything is working fine now:

Code:
/usr/local/cpanel/scripts/check_cpanel_rpms --fix

Thanks All