Article 5J88Q [SOLVED] Mail command not working on Fedora

[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.latest?d=yIl2AUoC8zA latest?i=mqnNRB3fHzo:vk7FOsYxXmU:F7zBnMy latest?i=mqnNRB3fHzo:vk7FOsYxXmU:V_sGLiP latest?d=qj6IDK7rITs latest?i=mqnNRB3fHzo:vk7FOsYxXmU:gIN9vFwmqnNRB3fHzo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments