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.

Everything was worked fine but someday sendmail stop working on me.

I'am trying the following command line:

echo "Body text" | mail -s "Some subject" example@somemail.com

And got:

/home/<username>/dead.letter... Saved message in /home/<username>/dead.letter
Can't send mail: sendmail process failed with error code 67

How to fix that?

share|improve this question
1  
Try using mailx over mail. –  mdpc Dec 19 '12 at 5:18
    
@mdpc can you explain what does it mean please? –  FelikZ Dec 20 '12 at 16:01
1  
can you cut'n'paste the output from command "echo TEST|sendmail -v address@domain.com" –  Mel_Burslan Dec 20 '12 at 16:45
    
@silencedhaven it looks like so: pastebin.com/tt0GDMNi –  FelikZ Dec 21 '12 at 17:34
add comment

1 Answer

Your local MTA thinks that mail for whatever domain you tried to send to should be sent to the local machine, but there is no user with that username on the local machine. Ensure that the server's hostname is not the same as the domain name you are trying to deliver to, and that sendmail is not configured to deliver mail for that domain locally.

share|improve this answer
    
Actually, I'm trying to send some logs into my gmail account. And my hostname not a gmail. Also I checked /etc/hosts file and there system defaults, so there no alias to gmail too. Thank you. –  FelikZ Dec 19 '12 at 8:21
add comment

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.