Sendmail newbie
Hello all,
I have questions about sendmail, I have successly installed sendmail on my linux machine (redhat 9). I have not done any configurations to any files becuase I don't really know what/how to congifure the files that are needed to be configured. I have successfully tried sending email internally to users on the box using: [root@timedb mail]# telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 localhost.localdomain ESMTP Sendmail 8.12.8/8.12.8; Wed, 3 Dec 2003 09:51:04 -0600 helo root 250 localhost.localdomain Hello timedb [127.0.0.1], pleased to meet you mail from: root@localhost 250 2.1.0 root@localhost... Sender ok rcpt to: trantv@localhost 250 2.1.5 trantv@localhost... Recipient ok data 354 Enter mail, end with "." on a line by itself Subject: Mail Test! Do not reply, This is a Test! . 250 2.0.0 hB3Fp4gl027015 Message accepted for delivery quit 221 2.0.0 localhost.localdomain closing connection Connection closed by foreign host. You have new mail in /var/spool/mail/trantv CHECKING RECIEVED MAIL ========================== [root@timedb mail]# mail Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/trantv": 6 messages 6 new >N 1 root@localhost.local Tue Dec 2 14:39 14/514 "Mail Test" N 2 trantv@localhost.loc Tue Dec 2 15:04 12/433 "Test!!!!" N 3 root@localhost.local Tue Dec 2 15:52 14/514 "Mail Test" N 6 root@localhost.local Wed Dec 3 08:44 14/521 "Mail Test" N 7 root@localhost.local Wed Dec 3 08:45 14/521 "Mail Test" N 8 root@localhost.local Wed Dec 3 09:52 12/458 "Mail Test!" & 8 Message 8: From root@localhost.localdomain Wed Dec 3 09:52:41 2003 Date: Wed, 3 Dec 2003 09:51:04 -0600 From: root <root@localhost.localdomain> Subject: Mail Test! Do not reply, This is a Test! =========================== Finally my question is how do I send mail externally? I have tried using the same steps shown above using rcpt to: trantv826@yahoo.com and I mail gets put into the mailq with a message saying: [root@timedb mail]# mail Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/trantv": 8 messages 8 new >N 1 root@localhost.local Tue Dec 2 14:39 14/514 "Mail Test" N 2 trantv@localhost.loc Tue Dec 2 15:04 12/433 "Test!!!!" N 3 root@localhost.local Tue Dec 2 15:52 14/514 "Mail Test" N 4 root@localhost.local Wed Dec 3 08:44 14/521 "Mail Test" N 5 root@localhost.local Wed Dec 3 08:45 14/521 "Mail Test" N 6 root@localhost.local Wed Dec 3 09:52 12/458 "Mail Test!" & 6 Message 6: From root@localhost.localdomain Wed Dec 3 09:52:41 2003 Date: Wed, 3 Dec 2003 09:51:04 -0600 From: root <root@localhost.localdomain> Subject: Mail Test! Do not reply, This is a Test! ============================== My question is when I try to send email externally to say "me@yahoo.com". My mail then stays in the mailq and displays the message below: [root@timedb mail]# mailq /var/spool/mqueue (1 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- hB3F1Pgl026968 15 Wed Dec 3 09:02 root@localhost.localdomain (Deferred: mx4.mail.yahoo.com.: Network is unreachable) trantv826@yahoo.com Total requests: 1 I have no clue as to what to do next......The server does not have a domain name. Do I need one before I can send mail out externally to other mail servers? I am just trying to send anywhere that accepts my mail so I can verify that it is working properly. I would be very appreciative of any inputs that yall can suggests to me. Sorry for the long message..tried to make it descriptive. :) THANKS! |
[root@timedb mail]# mailq
/var/spool/mqueue (1 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- hB3F1Pgl026968 15 Wed Dec 3 09:02 root@localhost.localdomain (Deferred: mx4.mail.yahoo.com.: Network is unreachable) trantv826@yahoo.com Total requests: 1 Well it says: network is unreachable. here is your problem. Try pinging mx4.mail.yahoo.com |
I tried to ping mx4.mail.yahoo.com and it gave me:
connect: Network is unreachable What are you thinking? vr tt |
Then I think you have a working sendmail, but a network problem.
|
I believe our network administrator has disabled pinging to the outside world. I can ping from within our network. So does this mean there is still a network problem?
Thanks for hope on saying I should have a working sendmail :) :) :) vr tt |
try
telnet relais.videotron.ca 25 or telnet smtp.mail.yahoo.com 25 Do you have an answer? If you can ping your inside network, this is probably a gateway problem. Do you have a fixed IP? How looks your /etc/sysconfig/network ? |
I tried telneting the two sites you gave me and it said:
RELAIS.VIDEOTRON.CA =========================== telnet: relais.videdotron.ca: Name or service not known SMTP.MAIL.YAHOO.COM =========================== Trying 216.136.173.18... telnet: connect to address 216.136.173.18: Network is unreachable Yes the server is on a fixed IP. in my etc/sysconfig/network is says: NETWORKING=yes HOSTNAME="servername" |
you're lacking your gateway in your /etc/sysconfig/network
(you made a typo in videotron, hence the error) just add GATEWAY=192.168.100.1 to it, replacing 192.168.100.1 by your gateway's address |
Sorry for the typo, but I still get:
telnet relais.videotron.ca 25 ======================================= Trying 24.201.245.36... telnet: connect to address 24.201.245.36: Network is unreachable As for lacking a gateway, what do you mean? I should add GATEWAY=192.168.0.01 on the bottom of my network file? Thanks! |
a gateway is the next router between your server and the internet.
get this info from your network admin. it this is a small network, it is usually the firewall. |
Sorry,
The network admin is unavailable, I cannot get the gateway info by using any commands on the command line? |
No.
Go to a machine that has access to the internet. if windows, open a command line and type tracert www.google.com if unix/linux type traceroute www.google.com you'll see the path. this should help you. |
|
can you become root?
if you can't, try to find traceroute... it is /usr/sbin/traceroute |
I am currently root:
I looked up /usr/sbin/traceroute and I found the following: traceroute and traceroute6 I am not assuming that you don't, but do you have a working sendmail? just curious :) r, TT |
All times are GMT -5. The time now is 10:13 AM. |