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!

What is the correct permission to /usr/sbin/sendmail?

Discussion in 'E-mail Discussion' started by cokequai, Oct 19, 2009.

  1. cokequai

    cokequai Member

    Joined:
    Feb 15, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Chile, Santiago.
    What is the correct permission to /usr/sbin/sendmail

    Hello

    I have this error when the any script that will actually need to execute this binary:

    Could not execute /usr/sbin/sendmail
     
  2. cokequai

    cokequai Member

    Joined:
    Feb 15, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Chile, Santiago.
    #2 cokequai, Oct 19, 2009
    Last edited: Oct 19, 2009
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The following are correct for the specified binary:

    Path: /usr/sbin/sendmail
    User ownership: root
    Group ownership: mailtrap
    Access permission (octal): 2755
    Access permission (human-readable): -rwxr-sr-x

    You could use the following command to check the above information to determine if a correction is necessary:
    Code:
    # stat /usr/sbin/sendmail
    If a permissions or ownership correction is needed, the following two commands could be used to accomplish this:
    Code:
    # chmod -v 2755 /usr/sbin/sendmail
    # chown -v root:mailtrap /usr/sbin/sendmail
    On Linux (CentOS/RHEL) systems the sendmail binary is distributed with the Exim RPM that is installed by cPanel/WHM; to verify if your sendmail binary is one that came with the Exim RPM, you may use the following command:
    Code:
    # rpm -qf /usr/sbin/sendmail
    The above command should display something like the following (where the #'s represent a version number):
    exim-#.##-##.#_cpanel_maildir
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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