LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 05-18-2006, 12:52 AM   #1
amfony
LQ Newbie
 
Registered: May 2006
Posts: 16

Rep: Reputation: 0
Newbie, ofcourse. Setting up an internal mail server , for now.


Hello everyone,

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.

Anthony. Peace.
 
Old 05-18-2006, 02:19 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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
to configure.
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.
 
Old 05-18-2006, 05:05 AM   #3
amfony
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
thanks for the heads up and game plan timmeke, means alot to me. Seeing as postfix seems to be the more user friendly system, would u know where a tutorial or how to would be?

And just to clarify, when i say 'email server' i do mean MTA.

your response, whilst quite vague, is a great plan of attack for me to get my system running. However i am sure i will return with the nitty gritty details very soon.
 
Old 05-18-2006, 05:23 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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.
 
Old 05-18-2006, 05:41 AM   #5
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
Yup: http://www.postfix.org/
 
Old 05-18-2006, 10:07 PM   #6
amfony
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
i cant link to other sites until i make 3 posts. so heres number 2.
 
Old 05-18-2006, 10:08 PM   #7
amfony
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
hey guys,

having a bit of stick with this simple process.

I follwed this http://www.postfix.org/STANDARD_CONF...#local_network, but didnt get any love from my outlook mail clients.

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?

thanks again

Last edited by amfony; 05-18-2006 at 10:24 PM.
 
Old 05-20-2006, 08:44 PM   #8
amfony
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
ummm ... can anyone help me?

If any one can translate that gentoo wiki tute then ill be fine.
 
Old 05-21-2006, 07:01 AM   #9
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
You are talking about this link: http://gentoo-wiki.com/HOWTO_Small_E...ith_POP3_(TLS)
What do you mean 'translate'?
 
Old 05-21-2006, 08:16 PM   #10
amfony
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
sorry muha,

Quote:
... 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.

for example:

1)Emerge
2)# echo "mail-mta/postfix -mysql -imap libwww maildir -sasl ssl" >> /etc/portage/package.use (portage is a gentoo specific thing isnt it?)
3)rc-update

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.

thanks
 
Old 05-22-2006, 12:53 AM   #11
amfony
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
sorry , i couldnt get any go with that setup or ideal. I found howtoforge insttead and used their perfect debian setup 3.1.

I am jettisoning this thread, and starting another regarding new issues with that setup.

Thanks for all the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal/External Mail Server Aeiedil Linux - Software 27 10-13-2009 09:16 AM
forward mail to internal mail server suse 9.2 brian1978 Linux - Security 1 02-22-2006 02:25 PM
SUSE as an internal mail server Sarcha SUSE / openSUSE 2 11-29-2005 08:51 AM
Internal Mail Server Question Breezwell Linux - Software 4 01-24-2004 07:25 PM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM


All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration