Sendmail by command line in cPanel
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.
-
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 -
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 -
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.
Comments
3 comments