From: Chong Yu Meng email@example.com
If you want mail services to be up and running on your network real quick, this Step-by-Step is for you.
Also, I have not included
instructions on uploading and downloading mail to an ISP
or external mail server on the Internet. Why ? Because I
don't know how !
Tested on COL2.3
This configuration uses
1. Check that you have sendmail installed.
# rpm -q sendmail
2. If you have sendmail installed, you should get a message :
3. If you don't have
sendmail installed, then you'll have to download and
configure it. In most of the installation options for
COL2.3, Sendmail will be pre-installed with your
operating system. If you need sendmail installation
4. If you already have sendmail installed, chances are, it already has been correctly configured. Congratulations ! To create a mail account, simply create a user account with COAS.
5. Download Qpopper from
the following URL :
6. Untar the file
7. Run the following as
8. You should have a directory called /usr/local/lib in your system. If not, just create it. Then copy the file "popper" from the directory where you executed the "make" into /usr/local/lib.
9. Edit /etc/inetd.conf. Look for the lines that begin with "pop", and add the following line :
pop3 stream tcp nowait root /usr/local/lib/popper popper -s
10. Edit /etc/services.
Look for the line that begins "pop3" and include the
following line :
11. Restart inetd. Or, if you are like me and have no clue how to do this, just reboot your system.
12. If you are not running DNS on your network, you will need a hosts file on each of the systems sending and receiving mail from the mail server. Inside the hosts file, you will need to specify the hostname and the IPaddress.
For example, in Windows,
you will find a hosts.sam file in your Windows directory.
Assuming that your mail server's name is
Oh, and don't forget to rename "hosts.sam" to "hosts"
13. Recall that earlier you setup user accounts for your mail. These email accounts are of the following format : <username>@<hostname>.
So, for example, on my system, user "chong" would have a mail account like this :
14. Next, just setup your mail clients, like Netscape, or Outlook Express with the following information :
Again, assuming that your
mail server is
SMTP server :
POP3 server :
15. Try to send mail to different user accounts. If there are no errors, then congratulations ! You have a mail server for internal mail. Pretty neat, huh ? And you didn't even need to edit sendmail.cf or anything !!
1. If you tried to send mail to root, you will not be able to pop the mail as root ! Qpopper will disallow any mail sent to root to be popped. This is not a bug, it's a feature !
2. If you're not sure about whether your POP server is running, just use telnet like this :
[chong@daviaardell chong]$ telnet 127.0.0.1 110
You will get the following message :
You will need to login so, for me, I would type:
Now, you will need to enter your password.
Note that your password needs to be typed in plain text ! So you don't want people looking over your shoulder when you type this !
Well, that's about all. When I have time later, I will put up Les Bell's most excellent explanation of how mail gets delivered.Something that proved invaluable to me in understanding mail architectures !!
Good Luck and