LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2003, 10:03 AM   #1
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Rep: Reputation: 15
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!

Last edited by tt826; 12-03-2003 at 10:12 AM.
 
Old 12-05-2003, 12:35 AM   #2
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
[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
 
Old 12-05-2003, 08:08 AM   #3
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
I tried to ping mx4.mail.yahoo.com and it gave me:

connect: Network is unreachable

What are you thinking?


vr
tt

Last edited by tt826; 12-05-2003 at 08:32 AM.
 
Old 12-05-2003, 08:12 AM   #4
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
Then I think you have a working sendmail, but a network problem.
 
Old 12-05-2003, 08:30 AM   #5
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
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
 
Old 12-05-2003, 08:38 AM   #6
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
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 ?
 
Old 12-05-2003, 08:46 AM   #7
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
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"

Last edited by tt826; 12-05-2003 at 08:48 AM.
 
Old 12-05-2003, 08:51 AM   #8
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
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
 
Old 12-05-2003, 08:56 AM   #9
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
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!
 
Old 12-05-2003, 09:00 AM   #10
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
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.
 
Old 12-05-2003, 09:05 AM   #11
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Sorry,

The network admin is unavailable, I cannot get the gateway info by using
any commands on the command line?
 
Old 12-05-2003, 09:08 AM   #12
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
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.
 
Old 12-05-2003, 09:15 AM   #13
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Using traceroute www.google.com on a linux box says:

bash: traceroute: command not found


r,
TT
 
Old 12-05-2003, 09:20 AM   #14
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
can you become root?

if you can't, try to find traceroute... it is /usr/sbin/traceroute
 
Old 12-05-2003, 09:26 AM   #15
tt826
Member
 
Registered: Dec 2003
Location: Florida
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
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

Last edited by tt826; 12-05-2003 at 09:30 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail configuration problem (newbie) mastyle Linux - Software 3 03-11-2005 04:52 PM
Help to Sendmail newbie mycsbox Linux - Newbie 3 07-06-2004 06:39 AM
Sendmail newbie jhayes Linux - Software 1 03-31-2004 02:02 PM
sendmail setup newbie complus Linux - Software 4 11-12-2003 10:07 PM
newbie sendmail linowes Linux - Networking 6 02-18-2003 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration