Operating System - Linux
1748253 Members
3944 Online
108760 Solutions
New Discussion юеВ

sendmail automatically goes to dead.letter

 
Andrew Kaplan
Super Advisor

sendmail automatically goes to dead.letter

Hi there --

I have sendmail installed on one of systems, and am in the process of configuring it. I notice that whenever I try to send anything it immediately goes to the dead.letter file. I am not sure what I need to reconfigure in the sendmail.cf or other file(s) to correct this. Can someone lend some insight? Thanks.
A Journey In The Quest Of Knowledge
7 REPLIES 7
Ivan Ferreira
Honored Contributor

Re: sendmail automatically goes to dead.letter

How are you writing your mail?

A dead.letter is generated when you do not finish your mail, are you using CTRL+D to send the message, or end with a dot.

Also, try using

mail -s "subject" user < /etc/hosts


Normally, you configure sendmail using the sendmail.mc file, then generate the cf file using:

m4 sendmail.mc > sendmail.cf

On redhat, basically you should command out (dnl) the line DAEMON_OPTIONS, and configure the MASQUERADE_AS. That's all.

Then, you have to enable the imap/pop3 protocols if you want.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Andrew Kaplan
Super Advisor

Re: sendmail automatically goes to dead.letter

Hi there --

I made several changes and I notice that messages are now getting a lookup deferred error message.
A Journey In The Quest Of Knowledge
Ivan Ferreira
Honored Contributor

Re: sendmail automatically goes to dead.letter

Your DNS setup is incorrect.

Are you using DNS?

You need a MX record for your domain in your DNS server.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
VEL_1
Valued Contributor

Re: sendmail automatically goes to dead.letter


Check the following link:

http://lists.freebsd.org/pipermail/freebsd-questions/2004-December/068576.html

It may be NXDOMAIN problem. Check ur DNS setup
VEL_1
Valued Contributor

Re: sendmail automatically goes to dead.letter

Muthukumar_5
Honored Contributor

Re: sendmail automatically goes to dead.letter

It may be because of hostname and domainname lookup problem.

Try as,

echo hi | sendmail -q @domainname

what r u getting.

Post your /etc/nsswitch.conf, /etc/resolv.conf and /etc/hosts file entries.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: sendmail automatically goes to dead.letter

It may be because of hostname and domainname lookup problem.

Try as,

echo hi | sendmail -v @domainname

what r u getting.

Post your /etc/nsswitch.conf, /etc/resolv.conf and /etc/hosts file entries.

hth.
Easy to suggest when don't know about the problem!