mutt unix command not successlly send an email

failed to send an email by unix command line

echo "hello" | mutt -s "test" abc@XXXX.com

it does not show any message, but in my email , cannot get the email.

any idea?

thanks
SayYou_SayMeAsked:
Who is Participating?
 
svsCommented:
mutt is  a MUA (mail user agent) and normally doesn't send mail itself -- it uses an MTA for this task.

you should check whether any MTA is running on local machine and what, if any, error messages are present in its logs.

MTA is  short for "mail transfer agent" -- it may be sendmail, postfix, qmail or exim.
0
 
AmolCommented:
chk if this can help,

http://www.fefe.de/muttfaq/faq.html
0
 
KlaasdezwartCommented:
from command line type

sendmail  user@domain.com
body text bla bla
.

note end with a singl . [dot] on a single line
0
 
SayYou_SayMeAuthor Commented:
i login another machine , can send email!
maybe that machine is not availble to send email

0
 
pawwaCommented:
As svs said:

1. Check whether a mail service is running

# netstat -lnt | grep :25

2. Then check the mail log, because it could help you solve the problem

Mail logs reside in a file /var/log/maillog or /var/log/mail.log or /var/log/mail/maillog. So, from a terminal window to see last 25 lines of a mail log file, type for example:

# tail -20 /var/log/maillog
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.