I am using Fedora 13, and postfix is running. I want to sent email to my yahoo or gmail account by using mailx. I tried this but I could not receive any mail.
subject = "Hello"
to = "firstname.lastname@example.org"
message = "/tmp/message.txt"
echo "This is an test email message"> $message
/bin/mailx -s "$subject" "$to"
I also tried by running sendmail but still same problem.