LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-15-2005, 07:21 PM   #1
linuxpp
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
Please help me to setup FTP and Mail server


I have linux box using RH 7.1. I can use it as HTTP server but am unable to use it as mail or ftp server. I have installed sendmail and ftp server in my initial installation. FTP client from xp cannot connect to server. How and where should I start? I use windows xp as a client. Could anyone help me in this?

And also sendmail takes about 10 minutes to load during boot. What could be the problem?
 
Old 03-15-2005, 08:01 PM   #2
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
hmm, where to start.

ps -A

will list all the programs running on your machine - verify that the services you want are running (ie sendmail). next, are you using a router? firewall? you may need to open the ports you need to use (cat /etc/services | grep ftp) or log in to your router (type 192.168.1.1 into firefox/ie explorer) and enable port forwarding. what else...

netstat -anp

will verify that sendmail (or whatever) is in fact listening on the proper port. hmm. ah, please tell us how you configured sendmail and your ftp service. did you edit any files? have you set them up at all? finally:

Quote:
And also sendmail takes about 10 minutes to load during boot. What could be the problem?
do you get any error messages? does it say anything when this happens? (run dmesg if you're not sure, or look through /var/log/maillog).
 
Old 03-17-2005, 08:06 PM   #3
linuxpp
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks mcd for your reply. Atleast someone cared to help me. Appreciate that.

I think I am confusing everyone asking too many questions at a time. So I decided to go one at a time. I found sendmail running by checking with ps -A. I fixed the slow boot time by fixing host name in /etc/hosts. Now it is booting alright with no error message.

Now, how can I use sendmail? How can I name the mail server? Is it possible to have its(mail server's) name different than the hostname? I tried to open mail box from netscape but give me error messages like the "your name is not added or something"

Could you please help me step by step? I will try FTP server once I see mail server started and working.
 
Old 03-17-2005, 09:43 PM   #4
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
well, you'd be best off with a guide tailored to your distro. google around for one, i'm sure it's out there. i use slackware, so i followed shilo's guide. you could probably use it too, but some things might be slightly different (i believe RH uses system v init, so instead of /etc/rc.d/rc.inet1 you'd type /etc/rc.net/rc.inet1 or something, i don't know exactly). check out in particular the sections labelled "Get Yourself a Net Presence" and "Email is Good."

the one thing he doesn't cover is that by default sendmail is configured with relaying off. that means you can only use sendmail to send mail from the local machine. to ammend this, edit /etc/mail/access and add whichever ip addresses you want to access smtp from. for example, i want to use my mail server at home as an smtp server for any computer on my local network, and from my computer at work. so my /etc/mail/access file looks like this:

192.168.1 RELAY
63.201.98.110 RELAY

when you're done, save it, then type

make

and then restart sendmail. there are a lot of options, so google /etc/mail/access for more info. but make sure to read shilo's guide first. remember, www.google.com/linux is your best friend, and if you need help, post up!
 
Old 03-17-2005, 09:47 PM   #5
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
hmm, thinking about it more, i'm not sure shilo's guide will help you. i still recommend that you read it though. i've just configured my mail server, but it's my first, so i can try to help you but i don't know that much. all my advice is going to be command-line based, because that's how i did mine. if you have xterm installed, use that. i ssh into my server, but it sounds like you have local keyboard access, so if you're in xterm it's the same thing.

if you type

netconfig

in a terminal, does it work? that's a great tool, but i'm not sure if it's slackware only... basically, i need to know your

hostname
domainname
ifconfig
route -n
cat /etc/resolv.conf
nmap localhost

i need to know whether you're running a firewall. have you forwarded ports from your router? which computer were you trying to use netscape from? did you register your IP with a domain name?

that's probably enough to get started. for any command (ifconfig, route, nmap, etc) you can type

man nmap

to get more information about what it is and how it can be used.

Last edited by mcd; 03-17-2005 at 10:04 PM.
 
  


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
redhat as webserver, ftp server, Mail server, firewall ineth Linux - Newbie 1 09-10-2005 08:14 AM
setup mailserver/web server/ftp server hariiyer Linux - Networking 1 11-27-2004 01:16 AM
mail server and mail client setup issues htm Linux - General 1 03-16-2004 09:32 AM
Setup DNS, WEB, FTP, and Mail Server Help! dcdjservices Linux - Networking 42 08-28-2003 03:57 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM

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

All times are GMT -5. The time now is 05:40 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