> are trying to install an internal mail network. This is for
> communicating between officers inside the office. Although I searched
> the net and read the manuals I could not comprehend them in full.
Mail is not an easy subject matter, and you seem to need a bit more
understanding of TCP/IP as well.
Quote:> Therefore can somebody tell me step by step what to do. I wish to
> know:
> 1. Can I give any name to my domain? I propose to give "ksinc.net"?
If there is *no* external connectivity whatsoever, yes you can. If even
one of the machines has at least a part-time Internet connection, you
should ensure that the name is not resolvable on the Internet. What I
use for my internal hosts is a bogus TLD: "ksinc.office" or "ksinc.lan"
for example.
That's a better plan for the future. Linux will make Internet connection
sharing much easier and safer, so eventually you might want to put this
network online. (You can also open up your mail server to provide real
Internet mail addresses.)
Quote:> What exactly the difference between "hosts " and domain"
A "host" is a machine, or more technically, a network interface on a
machine. (Every TCP/IP machine has a loopback interface called
"localhost" on IP 127.0.0.1; if it dials out to an ISP its modem would
become a PPP interface with a hostname as assigned by the ISP.)
A domain is a group of machines, typically networked together in some
form. Specifically their DNS resolution is handled by the same servers.
For example, the kernel.org domain includes servers all over the world,
but a client seeking the IP address of any of them would send its query
to one of these servers:
NS.VGER.kernel.org. 172800 IN A 209.116.70.75
NS1.kernel.org. 172800 IN A 63.209.29.2
NS2.GIMP.org. 172800 IN A 195.92.249.252
NS2.kernel.org. 172800 IN A 204.152.189.113
But as I say, typically a domain will be a network or group of networks
close together. Suppose you registered a domain name for your office
(ksinc.net is taken, BTW :) like "ksinc.net.in". You'd arrange for
hosting and DNS, either through an external provider or your own
servers. You could then assign hostnames under that domain for all the
machines under your control. If configured in the DNS server and these
machines are available on real Internet IP addresses, anyone in the
world could access your services by name.
Quote:> 2. the machine 192.168.1.1 is named as "cs" ( as host). The /etc/hosts
> file has the following entries:
> 192.168.1.1 cs
> 192.168.1.2 murali
> 192.168.1.3 maheswari, the last two entries being the names of windows
> machines with the IP no and name. (the balance machines are not added.
> is the entries are correct ?
You should leave in the default "localhost" line. Otherwise that's fine.
The /etc/hosts file (%WINBOOTDRIVE%:\%WINDIR%\hosts on Windows machines)
is a simple means of TCP/IP name resolution. I'd recommend using a fully
qualified domain name (FQDN) like this:
192.168.1.1 cs.ksinc.office cs
> 3. In the computer "cs" I added two users "raju" and "mnk", with
> passwords.
> 4. with this info. how can I set up the internal e-mail system. what
Set up the mail clients to use "cs" as the SMTP and POP3/IMAP server.
If they have similar hosts files, they can resolve "cs" to the IP
Again, make a FQDN as I suggested above, and use that.
Quote:> 5. Is it required to configure the "sendmail". or is it
> pre-configured? The smtp is running.
sendmail is VERY difficult. For this job I highly recommend postfix,
which I believe is included as an option in Red Hat.
You *do* need to configure the MTA to accept mail for a certain domain
name or names. Other than that (which is in one well-commented file for
postfix, probably /etc/postfix/main.cf) the default settings should
work.
Quote:> 6. for setting up an IMAP protocol e-mail what shall I do ? Is there
> any other simple solutions ?
You're most likely to trip on your default firewall. :) By default no
services are allowed in. Disable it if it's enabled.
You need to be running an IMAP server on cs. Typically this would run
from xinetd. Make sure you have such a server installed (Red Hat surely
includes one or more choices) and enabled. Check your Red Hat and/or
xinetd docs to find out how to do that.
And that's it! That's all you need to know to run an internal mail
server. The only difference between internal and external mail servers
is the matter of having an externally-resolvable hostname. Work on that
one next. :) Good luck.
--
or put "not-spam" or "/dev/rob0" in Subject header to reply