Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have been following a tutorial I found online recently about how to setup a webserver running Linux CentOS 5. So far I have downloaded the ISO and installed CentOS as a server with the GNOME desktop environment. I am still pretty new to Linux, and although I don't totally understand everything in the tutorial, I think I managed to follow most of the directions pretty well. Here is the link if anybody is curious:
I have already tested and made sure that Apache, MySQL, and PHP are all working, but I don't know where to go from there. The tutorial mentioned setting up some mail server software & POP3/IMAP software as well, but I'm not sure how to test if it's working or not. After that I would ideally like to see how to setup nameservers for it and tie a domain name to it. I know this probably sounds like a lot, but if anybody can help me figure out how to approach configuring this server I would really appreciate the help.
Also, to see if your local whatever pop program is running try
and if you get a reply it probably means your pop email process is running.
To see if your local SMTP process is running try
and if you get a reply it probably means it is running... Hope this helps?
After that I would ideally like to see how to setup nameservers for it and tie a domain name to it. I know this probably sounds like a lot, but if anybody can help me figure out how to approach configuring this server I would really appreciate the help.
I don't think you need to setup anything yourself to get an internet DNS server to point to your machine - you need to ask an ISP to do it for you. It should be as easy as giving them the static IP of your machine, and the name you want... (Apparently possible to do this yourself too - obviously - but never needed to...)
On the DNS front, look at service like zoneedit.com that provides free DNS for a limited number of zones. There are others as well, but this is one I use and I know a few others here do too.
If you can't test a a mail server, why do you want it?
To test, if you have a user, say ascendancy, send a message with
mail -s test ascendancy@localhost < /dev/null
That should turn up in your mailbox. To see it, you shopuld be able to set up a mail client (Evolution, Thunderbird) to have an imap account on the local machine.
The DNS info is good to know, I'll keep that in the back of my mind for later.
As for the e-mail setup I do not know how to test it, but that's why I'm trying to learn because I'm very interested in setting up a Linux Web / mail server, so this is more like a learning experience. I tried running your code, and the response from the command line said "bash: ]mail: command not found". I'm guessing this might mean that there is no mail software installed?
@rylan76, I know my Apache is working as I've set up a few websites and Apache aliases already, I am just trying to get the mail server working now.