I installed mailx in my Linux webserver running CentOS 7. When I try to send a test email,
echo "Body test." | mail -r "fromemail@domain.com" -s "Subject Test" toemail@domain.com
I check my email and don't receive anything. However, if I use the mailq command, I get this:
postqueue: warning: Mail system is down -- accessing queue directly
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
7805D2DF 422 Wed Jan 11 15:00:40 fromemail@domain.com
toemail@domain.com