Newbie, ofcourse. Setting up an internal mail server , for now.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Newbie, ofcourse. Setting up an internal mail server , for now.
I am anthony, newbie, yes, a dirty dirty newbie.
I just installed a relatvley old debian iso i had, looking to install and maintain an internal mail server for my small company. Yes, the story is the same, to move away from exchange server running at the moment.
I have minimal idea on how to get this done, but im all perseverance and excited at the idea.
In the header i stated that this server will hopefully, behind my loveley ipcop box and hardware firewall, serve as my email server to the internet. (I own my domain name and the rest of it already, but web and mail is hosted at ISP).
In my quest to have a functioning intneral mail server, do i need to think specifically for expansion to the internet? Or even scratch the whole server and start again at that point in time.
As far as what email server, i am not very sure. I hear names such as sendmail, postfix, exim thrown around. ( i think exim is on debian?) Which is superior? Firstly i should say what are my requirments.
Internal email, perhaps distrobution lists, filtering, logging and message copying (IE maintaing copies of all emails that traverse the server). Multiple mail boxes are a must, which seems to be a redundant point to make.
Thanks for all the information you guys are going to shovel on me, i appreciate it alot.
Well, if you ask for opinions, you'll probably get plenty.
Sendmail is very flexible and the de facto standard on most systems. However, in my opinion, it is quite hard
Postfix is a drop-in replacement that is much more easy and straight-forward.
QMail is also often used.
Personnally, I haven't worked with exim yet, so I can't help you with that.
When you say "mail server", you mean MTA (Mail Transport Agent - a program responsible for routing mails on your network). Extending it to the internet shouldn't be too difficult, but you'll need to keep some basic security rules in mind (like no relay-ing for mails coming in from the internet). A good o'Reilly book can get you a long way. Or some tutorials.
Basically, you'll need to configure an MTA (like sendmail, postfix or qmail) and run it as a "service" (daemon). This MTA will always listen to port 25 (SMTP protocol) for incoming mails. However, by default, most MTAs listen to port 25 on the localhost network interface, so they aren't usable from other machines (ie they only provide the possibility to send out mails from one machine). So, you'll need to make the MTA listen to your regular network interface. For an internal mail server, the IP address of this interface should be "behind" the firewall - ie port 25 (and other ports) not reachable from the internet.
Once you connect it to the internet, you'll need to get a network interface with a public IP address or provide some other kind of routing (through firewall) between mail server and internet.
As for mail clients, or MUAs (Mail User Agents), they can work with different protocols for retrieving mails from the server, like IMAP and POP3. Make sure you enable these (and their resp. ports) on the mail server too. POP3 is basic and fast, IMAP may require additional overhead but has more features. Your exchange box probably provides both.
To configure postfix, just go (as root) into the configuration directory
(somewhere in /etc). Then open up the main.cf and master.cf files.
The comments in there should pretty much explain each setting.
If you still need more info, try using Google to get a tutorial. I don't really have one handy. The Linux documentation project (http://www.tldp.org) has a nice website with a bunch of Linux docs. Maybe it has a tutorial for postfix too.
I did change these configs to my situation, i used the same domain name as my AD forest (i know, big difference) but i need it to work in conjeunction with that. I added an MX record in my "mybusiness.local" domain pointing to my mail server.
I cant find any help to setup pop3 or imap4 simply. IE i dont want to make a databse to my new users, simple flat file is good enough for me for now.
I thought i struck gold when i found this site ... http://gentoo-wiki.com/HOWTO_Small_E...with_POP3_(TLS) as this IS EXSACTLY what i want to achieve, however since i am running postfix on debian not on gentoo, and i lack the neccesary experience and knowldge to understad what the relevant commands are, i am at a loss.
If anyone could translate this gentool guide, i would be able to do what i want no?
All i want is an internal email server (MTA) to send emails within my lan. simple as that.
Thanks alot for help, and just taking the time to read this.
PS: I am fairly sure that postfix isnt listening on anyport (ie not running) as i used a port scanner to interogate the debian box, i recieve SSH port openm but nothing else.
PSS: also , i am not to sure how to create new 'mailboxes'/user stores. I created new users, and aliases, the ran the newaliases line, but does this create the new user store?
... as this IS EXSACTLY what i want to achieve, however since i am running postfix on DEBIAN not on gentoo, and i lack the neccesary experience and knowldge to understad what the relevant commands are, i am at a loss.
So what i am saying is things that are not in debian, and are gentoo specific is where i fall over.
2)# echo "mail-mta/postfix -mysql -imap libwww maildir -sasl ssl" >> /etc/portage/package.use (portage is a gentoo specific thing isnt it?)
These examples highlight my lack of experience in linux, as i DONT know what the relevant debian commands/locations are. Please if i am wrong let me know, i want to and need to learn.