LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Local mail not sending (https://www.linuxquestions.org/questions/linux-server-73/local-mail-not-sending-698489/)

rfleming 01-19-2009 08:35 PM

Local mail not sending
 
Hello,
I am trying to get mail to work between users on a local machine. I am running Fedora 10. Normally this is set up on install but currently it is not working on a fresh install. When I try to send I either get the letter being saved into dead.letter or no message at all. When I run "mail -v 9 UserName" I get the output
Code:

mail -v 9 Ryan
Subject: Test
Test
EOT
Ryan,9... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.3/8.14.3; Mon, 19 Jan 2009 21:33:36 -0500
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<Ryan@localhost.localdomain> SIZE=203
250 2.1.0 <Ryan@localhost.localdomain>... Sender ok
>>> RCPT To:<Ryan@localhost.localdomain>
>>> RCPT To:<9@localhost.localdomain>
>>> DATA
550 5.1.1 <Ryan@localhost.localdomain>... User unknown
550 5.1.1 <9@localhost.localdomain>... User unknown
503 5.0.0 Need RCPT (recipient)
>>> RSET
250 2.0.0 Reset state
/home/Ryan/dead.letter... Saved message in /home/Ryan/dead.letter
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection

I do not know why the user is unknown as it is the same user sending it. Any ideas on this why the user is unknown?

datopdog 01-21-2009 01:41 AM

Have you checked the case, Ryan is not the same as ryan on *nix

repo 01-21-2009 03:14 AM

try
mail -v Ryan

whu does it give:
via relay

rfleming 01-21-2009 08:35 PM

Quote:

Originally Posted by datopdog (Post 3415831)
Have you checked the case, Ryan is not the same as ryan on *nix

First thing I check as I have done that on past systems :D

Quote:

Originally Posted by repo
try
mail -v Ryan

whu does it give:
via relay

And the result of mail -v Ryan
Code:

mail -v Ryan
Subject: Test
Test
EOT
Ryan... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.3/8.14.3; Wed, 21 Jan 2009 21:32:53 -0500
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<Ryan@localhost.localdomain> SIZE=200
250 2.1.0 <Ryan@localhost.localdomain>... Sender ok
>>> RCPT To:<Ryan@localhost.localdomain>
>>> DATA
550 5.1.1 <Ryan@localhost.localdomain>... User unknown
503 5.0.0 Need RCPT (recipient)
>>> RSET
250 2.0.0 Reset state
/home/Ryan/dead.letter... Saved message in /home/Ryan/dead.letter
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection


datopdog 01-22-2009 01:29 AM

Did you modify your sendmail cf ? It is also possible you do not have an entry for localhost.localdomain in your /etc/hosts file.

Check and see how sendmail is trying to handle the mail by

Code:

sendmail -bv Ryan

rfleming 01-22-2009 03:38 PM

Quote:

Originally Posted by datopdog (Post 3417027)
Did you modify your sendmail cf ? It is also possible you do not have an entry for localhost.localdomain in your /etc/hosts file.

Check and see how sendmail is trying to handle the mail by

I have not touch anything with sendmail at all. Here is the localhost line from my hosts file
Code:

127.0.0.1              localhost.localdomain localhost Atlas

Quote:

Originally Posted by datopdog (Post 3417027)
Code:

sendmail -bv Ryan

It returns "Ryan... User unknown"

datopdog 01-23-2009 12:21 AM

what is the output of
Code:

id Ryan

rfleming 01-23-2009 07:41 AM

Quote:

Originally Posted by datopdog (Post 3418239)
what is the output of
Code:

id Ryan

Code:

uid=500(Ryan) gid=500(Ryan) groups=500(Ryan)


All times are GMT -5. The time now is 01:37 AM.