Skip to main content

Sendmail by command line in cPanel

Comments

3 comments

  • cPanelMichael
    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.
    0
  • Pputnik
    hi Michael, Are you accessing the command line as the "root" user?
    yes If so, what's the output when you run the "whereis mail" command?
    mail: /etc/mail Also # mail -bash: mail: command not found It's located at /usr/bin/mail on a test system running CentOS 7.
    # ll /usr/bin/mail
    /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.
    0
  • cPanelMichael
    You can try manually installing the package with a command such as:
    yum install mailx
    Thank you.
    0

Please sign in to leave a comment.