Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
[root@jiaoyou ~]# sendmail -t< mail.txt 
[root@jiaoyou ~]# cat mail.txt 
MIME-Version: 1.0
Content-Type: multipart/alternative;
Subject: Test HTML e-mail.

This is a MIME-encapsulated message

Anything wrong here?

share|improve this question
How about the complete lack of details? Is your sendmail set up correctly? Are you relaying through your ISP, or sending directly to gmail? How do you know it failed? Logs? – Bill Weiss Aug 26 '09 at 15:28
I didn't receive the email from my gmail account. – abcgreen Aug 26 '09 at 15:33

Gmail won't forward mail. You can only send mail via gmail as an authenticated user.

share|improve this answer

Gmail will generally pop up a message in the from account asking you if you want to allow someone else to send mail from you. Once this is enabled it should go through.

Also, check your mailq.

share|improve this answer
Is there anything wrong with my usage of sendmail here? – abcgreen Aug 26 '09 at 15:34
Doesn't look that way. Its going to require logs from the server so, as Bill said, sendmail could be setup to not forward mail and it could be just sitting in your mailq. Run mailq, then check /var/log/ – Ryaner Aug 26 '09 at 19:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.