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.

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

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

  1. cokequai

    cokequai Member

    Joined:
    Feb 15, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    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,557
    Likes Received:
    7
    Trophy Points:
    38
    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
     
Loading...

Share This Page