[Solved] mail: command not found on cPanel server

Hey! here is the solution for the below pasted error while you are trying to send emails by using a script.  You can simply fix this issue by installing the package mailx.

Error details:

mail: command not found

Solution:

yum install mailx
service postfix start
chkconfig postfix on

That’s it!

Post navigation

Arunlal Ashok

Cloud Infrastructure / DevOps Engineer. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

Leave a Reply

Your email address will not be published. Required fields are marked *