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.

Sendmail by command line in cPanel

Discussion in 'E-mail Discussions' started by Pputnik, Oct 6, 2016.

Tags:
  1. Pputnik

    Pputnik Member

    Joined:
    May 20, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hello,

    What should I do if there's no /bin/mail?

    # /bin/mail
    -bash: /bin/mail: No such file or directory

    the only 'mail' I found is /usr/local/cpanel/bin/admin/Cpanel/mail, but it does not answer either on --help or just attempt to start from shell.

    WHM 58.0 (build 31)

    Please advise.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you accessing the command line as the "root" user? If so, what's the output when you run the "whereis mail" command? It's located at /usr/bin/mail on a test system running CentOS 7.

    Thank you.
     
  3. Pputnik

    Pputnik Member

    Joined:
    May 20, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    hi Michael,

    yes

    mail: /etc/mail
    Also
    # mail
    -bash: mail: command not found

    # ll /usr/bin/mail

    Code:
    /bin/ls: cannot access /usr/bin/mail: No such file or directory
    
    # cat /etc/os-release
    NAME="Amazon Linux AMI"
    VERSION="2016.09"
    ID="amzn"
    ID_LIKE="rhel fedora"
    VERSION_ID="2016.09"
    PRETTY_NAME="Amazon Linux AMI 2016.09"
    ANSI_COLOR="0;33"
    CPE_NAME="cpe:/o:amazon:linux:2016.09:ga"
    HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
    
    AMAZON Enterprise 2016.09 x86_64 xenhvm – aw
    
    Thank you.
     
    #3 Pputnik, Oct 7, 2016
    Last edited by a moderator: Oct 7, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page