Question : Linux sendmail always going localhost?

Im running fedora 10.   Dns works fine, but when i run :

i can telnet out of port 25 to any smtp server..so its not a port 25 issue

echo hello |sendmail -v [email protected]

or
mail -vv [email protected]

THer mail never gets delivered and here is what i get (its as if it trys my own email server, instead of going out to finding cox's).



Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
[root@localhost config]# echo hello |sendmail -v [email protected]
[email protected]... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.3/8.14.3; Fri, 13 Feb 2009 13:25:52 -0600
>>> 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-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From: SIZE=6 [email protected]
250 2.1.0 ... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 n1DJPqwp005392 Message accepted for delivery
[email protected]... Sent (n1DJPqwp005392 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
Open in New Window Select All

Answer : Linux sendmail always going localhost?

Ok all the log you sent all its trying to sent email to localhost.

but i want to see log when its showing email outside


Open 2 window, in one windows execute this command

tail -f /var/log/maillog   : this command will show realtime log

and from another window, execute this command

cat /etc/hosts | mail -s "test" [email protected]   : its sent /etc/hosts file to your [email protected]

now you will have to show me the log for sending email to [email protected]

does it make sense  ??

Random Solutions  
 
programming4us programming4us