[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 A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

One thought on “[Solved] mail: command not found on cPanel server

  1. I’m getting a return of “Loaded plugins: versionlock” – “No package mailx available.” – “Error: Nothing to do” after running yum install mailx (as root)

Leave a Reply

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