Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Originally posted by tszhim i am setting up a mail server....but i know i need to edit the conf in /etc/hosts....
Not necesarily, it depends what services you want to provide and how you set them up.
Quote:
Originally posted by tszhim What should the file include if i want to setup a mail server that for providing account for other people?
What services do you want to provide? your hosts file is the least of your problems.
Quote:
Originally posted by tszhim i have not registered any domain (like abcd.com), so need i register one in order to get a domain name?
Only if you wnat to receive e-mail. Otherwise delivery would be impossible.
Quote:
Originally posted by tszhim Also.... i am not very clear about setting up the mail server (I am going to use the whole PC for doing only the mail server job)
I would reccommed the following server software...
MTA: Qmail
IMAP: courier-imap
AUTH: openldap
HTTPD: apache
WEBMAIL: Squirrelmail
Originally posted by david_ross
quote:Originally posted by tszhim
i have not registered any domain (like abcd.com), so need i register one in order to get a domain name? Only if you want to receive e-mail. Otherwise delivery would be impossible.
The legal mail address can be also in the form
my_name@[xxx.yyy.zzz.vvv]
where xxx.yyy.zzz.vvv is numerical IP address
so domain name registration is not really required (static IP is enough).
This way you can send & receive mails (and whatever you want).
Something else to consider, if you're going to register a domain and go with a full blown email server, is DNSing. You'll either have provide your own DNSing, which means setting up and running a DNS server like Bind, or rely on someone else to do it. There are some free ones like dyndns.org around. But the main point here is, is your IP static or dynamic. If it's dynamic, then running an email server from a box with a dynamic IP is not adviseable. If the IP doesn't change very often, like once in a blue moon, then sure you can get away with it. However keep in mind that everytime it changes it takes time for the DNS roots to catch up, sometimes a couple days (assuming you change it at your registar). That means during that time any email being sent to your hostname will instead be sent to your old IP, or even worse to someone else's email server whom has aquried your old IP. It also means that any of the people trying to connect to your server remotely to check their email will be unable to do so.
There are a few things:
1) Register a domain
2) Point the domain to your IP address preferably a static one - see DaHammer's post
3) Set up server software to receive incomming mail
4) Set up retreival software so users can download mail
5) Create you user accounts
I gave a list of my reccomended server software in my first post.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.