[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


yum install mailx
service postfix start
chkconfig postfix on

That’s it!

Post navigation

Arunlal Ashok

DevOps Engineer II at Zeta Suite. Linux lover. Traveller. Father of two princesses.

Always happy for an open discussion! Write to arun ((@)) crybit ((dot)) com.
LinkedIn: https://www.linkedin.com/in/arunlal-a-18037773/

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 *