Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'E-mail Discussion' started by mehrana, May 17, 2013.

  1. mehrana

    mehrana Registered

    Joined:
    Jan 14, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,344
    Likes Received:
    1,854
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    352
    Likes Received:
    7
    Trophy Points:
    168
    Location:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mehrana

    mehrana Registered

    Joined:
    Jan 14, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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?
     
  5. mehrana

    mehrana Registered

    Joined:
    Jan 14, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice