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

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"

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
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
can you cut'n'paste the output from command "echo TEST|sendmail -v" – MelBurslan Dec 20 '12 at 16:45
@silencedhaven it looks like so: – FelikZ Dec 21 '12 at 17:34

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

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.