[SOLVED] Mail command not working on Fedora
by Felthorn3 from LinuxQuestions.org on (#5J88Q)
I'm working my way through "The Linux Bible" and reached a point where it talks about the mail command and gives examples of its usage. I tried it straightaway and it didn't work, talking about /usr/sbin/sendmail not existing. I install the sendmail package, try again doing the following command:
mail -s "Test Message" myemail@gmail.com
Message
Ctrl+D
I see "EOT" after pressing Ctrl+D and nothing ever shows up to my inbox. I then did a bit more research and determined that I didn't have an SMTP MTA listening on port 25, so I installed the Postfix package, started it, and verified it was listening using:
sudo lsof -i :25
Alright, this has to work. Try again and see "EOT" and nothing ends up at my inbox. Unsure of what could be the issue at this point. Any help is appreciated.
Also I'm very new and unfamiliar with email server setup/configuration.
Edit: I decided to check my spam folder and voila, the messages were there, lol. Sorry if you wasted your time reading this.
mail -s "Test Message" myemail@gmail.com
Message
Ctrl+D
I see "EOT" after pressing Ctrl+D and nothing ever shows up to my inbox. I then did a bit more research and determined that I didn't have an SMTP MTA listening on port 25, so I installed the Postfix package, started it, and verified it was listening using:
sudo lsof -i :25
Alright, this has to work. Try again and see "EOT" and nothing ends up at my inbox. Unsure of what could be the issue at this point. Any help is appreciated.
Also I'm very new and unfamiliar with email server setup/configuration.
Edit: I decided to check my spam folder and voila, the messages were there, lol. Sorry if you wasted your time reading this.