I'm trying to set up a type of notification system that will alert me when my website is down using crontab
and mailx
. I went ahead and installed mailx
on my server and then tried to send a simple test email by doing: mail -s "Testing" myemail.com < /dev/null
, but I receive nothing in my inbox. The only message I see after entering that command is mailx
saying that the body is null, which is completely fine for this situation.
I started looking online and noticed that for mailx
to work I need to setup an MTA
using something like mutt
or postfix
, but my server is already configured with postfix
so I would think that this would have gave me an error upon sending the email.
I really don't know much about mailx
or postfix
for that matter so it's a little difficult for me to debug this issue when there aren't any errors occurring. If anyone knows why this would be happening, I would greatly appreciate it. Thanks!