Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
[root@jiaoyou ~]# sendmail -t< mail.txt 
[root@jiaoyou ~]# cat mail.txt 
From: abc@gmail.com
To: abc@gmail.com
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

2 Answers 2

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/mail.info –  Ryaner Aug 26 '09 at 19:19

Your Answer

 
discard

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.