LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-31-2009, 04:43 PM   #1
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
E-Mail server discussion, to serve or not to serve?


Hello all,

I've come across a point in administering my system that I thought could use a little advice from the community. My company is looking at redoing our web hosting to improve our web presence and part of that will include a new slew of e-mail addresses in the package. While this is all well and good, I have a few things that I'm mulling over at the moment and would like some input on.

The email storage space on the server that will be doing our webhosting is limited (100MB total for up to 100 emails... yeeesh). It is accesible by POP3, so the way to get around it is obviously to store emails locally, where storage is cheap! The only thing left to decide is how to go about it. I'm debating between two options:

1) Create a sendmail server responsible for getting the emails from the web hosting service, keeping them locally on the server, and allowing the users to access them through outlook or thunderbird, or any other email client they so choose.

2) Simply use an email client on each client station and have each user responsible for storing their own emails on their own machines.

The second option seems much easier at first glance, at least to implement, but it leaves room for administrative nightmares. The first seems like a better option but could prove difficult to pull off. Has anyone reached this fork in the road before and could shed some light on the subject? My network is very small (<10 clients). I'd appreciate any help you can lend.
 
Old 07-31-2009, 07:33 PM   #2
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 108
Blog Entries: 1

Rep: Reputation: 25
I have worked with a similar situation in the past. The difference for me was 50 people hitting map all the time over our wan link was slow and the constant io caused by imap was slowing down the server. This was slightly different because it was a couple general purpose email accounts that were shared by an entire department.

At any rate I setup a caching server locally. Fetchmail was used to pull the remote mail locally. And imap was run to provide access to the mail.

As a solution for you I would reccommend setting up a caching server that also acts as a smarthost. A smarthost will relay the mail to your providers mail servers and they do the final delivery. You don't want to sent the email directly from your office in most cases because spam filters will likely trap the majority of your mail. Setup fetchmail to retrieve all of your users mail and serv it out locally with imap. I suggest imap because if you youse pop and people want that email backed up your doing it at the client side which is silly. I would also think it silly to configure pop to leave all mail on the server since that will make the remote user experience (webmail) suck as the client and server would not be in sync.

Now to provide remote webmail access just make sure you have either dynamic DNS or a static ip. And forward the web traffic to that caching server. Go ahead and install apache and setup squirrelmail it's super easy.

Now you have fast access to your mail. A central spot to back up from. Remot access for when people are outside the office. And your only storage limit is the disk space you can afford to buy. Terrabyte drives are cheap buy a couple and set them up in raid1.
 
Old 07-31-2009, 08:33 PM   #3
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Original Poster
Rep: Reputation: 35
Pretty much exactly what I was looking for. I'm still in the planning stages of everything, but I should be moving towards implementation sometime next week. I'll keep you posted on how things go. Thanks!!
 
Old 08-01-2009, 03:04 AM   #4
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 108
Blog Entries: 1

Rep: Reputation: 25
AlsAloeo I would suggest postfix over sendmail for your smarthost functionality
 
Old 08-03-2009, 12:51 PM   #5
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Original Poster
Rep: Reputation: 35
quick question cmdln:

how would I go about routing fetchmail into postfix? I imagine I would use fetchmail and just store messages locally like you said, then postfix would simply serve from the local email storage? how would I get postfix to do that? (I'm brand new to postfix, sorry).
 
Old 08-04-2009, 01:39 AM   #6
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 108
Blog Entries: 1

Rep: Reputation: 25
fetchmail wont run the mail "into" postfix it just fetches mail. You need something to serve the mail locally, thats where imap comes in. Imap can just server up the directories where you have downloaded the mail. Check out dovecot or courier. And rather than doing virtual users it might be easier for you to just use a unix account for each mail user. Kind of a pain but it migh tbe easier for you to sort in your head the first time around.
 
Old 08-04-2009, 10:10 AM   #7
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Original Poster
Rep: Reputation: 35
Right, I was thinking along the same lines. I have a small enough infrastructure to get away with that the first time. So then if I'm using fetchmail to get the mail, and dovecot/courier to serve it to people on the network, where does postfix come in?
 
Old 08-04-2009, 11:28 PM   #8
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 108
Blog Entries: 1

Rep: Reputation: 25
Postfix is used as a smarthost for sending mail so you don't have to configur smtp auth on eacch client. Just config postfix to relay for your local net.
 
Old 08-05-2009, 10:13 AM   #9
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Original Poster
Rep: Reputation: 35
got it. so far I've managed to get some semblance of a server up and running with the help of postfix and courier-maildrop. i've only created one account so far and when i telnet myself and send a message, it delivers just fine. i tried sending a message from outside the net however, and it wouldn't deliver it. it made it past my router/firewalls just fine, but the server itself wouldn't deliver it to the user. /var/log/maillog said
Code:
cei-server postfix/qmgr[31697]: EB57A3DCE7: from=<asaxplayinghorse@gmail.com>, size=388, nrcpt=1 (queue active)
cei-server postfix/error[32370]: EB57A3DCE7: to=<test@castorengineering.dyndns.org>, relay=none, delay=54503, delays=54503/0.01/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
 
  


Reply



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
Cam server can not serve video streams juiev Linux - Networking 0 07-03-2008 02:50 AM
tcp ---I just need a simple explaination what this means--going to install mail serve xstation Linux - Networking 1 12-25-2005 03:48 PM
Perl, script to serve files from another server Ctawp Programming 2 11-26-2004 09:07 PM
Apache Server won't serve up large files perrond Linux - Networking 4 06-21-2004 10:53 AM
Possible to retrieve e-mail from pop and serve it? hypexr Linux - Software 2 02-03-2004 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:31 AM.

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
Open Source Consulting | Domain Registration