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.

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

Discussion in 'E-mail Discussions' 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:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
  3. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    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
     
  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...
Similar Threads - usr sbin sendmail
  1. zuronam
    Replies:
    2
    Views:
    184

Share This Page