LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-14-2011, 11:01 AM   #1
tibberous
Member
 
Registered: Oct 2004
Posts: 56

Rep: Reputation: 15
Best, cheap, solution for a medium-load, dedicated email server


I'm looking to setup a server just for email. It is going to need to handle about 3000 email accounts, from about 500 different domains.

The domains are on a shared server now, but the server is getting overloaded and filled with spam.

Is CentOS / Postfix / Dovecot / Clam a good setup? What about qmail?

If I can get a Barracuda firewall used, will it work, or do I have to pay for updates (I'm hoping someone knows, because Barracuda's site only wants you to contact sales)
 
Old 01-14-2011, 11:28 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You didn't mention using spamassassain. Most folks that do their own use that to mitigate spam.
 
Old 01-14-2011, 02:30 PM   #3
tibberous
Member
 
Registered: Oct 2004
Posts: 56

Original Poster
Rep: Reputation: 15
We use spamassassain on the server we have now, and it seems to do a pretty bad job. Maybe we don't have it configured right?

I'd love to use what gmail uses - that thing is accurate as shit - though to be fair, a lot of that comes from me marking / unmarking emails as spam.
 
Old 01-14-2011, 11:31 PM   #4
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
Configuring SpamAssassin is going to depend on the nature of your email addresses. If you have a bunch of wallflowers who don't share their email address with everyone, then you don't have to be very tight about it. If all your users spam their email all over their websites on myspace then you are screwed. It is highly adjustable.

I set up a mail stack on my web server a few years ago and it's running CentOS 5, Postfix, Dovecot, AmavisD, ClamAV, and SpamAssassin. I recall that it was pretty confusing but I found this tutorial to be at least informative (although sadly not complete).

The basic idea is that mail arrives on your server and postfix (I think its postfix) puts the mail somewhere such that AmavisD (a high-performance daemon to shuttle stuff between Mail Transfer Agent and content checkers) will check each incoming message with both SpamAssassin and ClamAV before they mail gets put into people's mailboxes. Once the mail has been delivered to a mailbox, Dovecot handles POP and IMAP requests from your users.
 
Old 01-14-2011, 11:35 PM   #5
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
Another option that just occurred to me is using google apps for mail. I've seen it work really really well. It's availability is excellent, you only see ads if you check using the gmail interface they offer, and you can set up pretty much any device to check your mail via IMAP. They have mail filters, all kinds of flexibility, encrypted mail transfer, and best-in-class spam filtering. The only reason not to use it is privacy really.
 
Old 01-14-2011, 11:44 PM   #6
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Quote:
Originally Posted by tibberous View Post
I'm looking to setup a server just for email. It is going to need to handle about 3000 email accounts, from about 500 different domains.
CentOS, Postfix and Dovecot sound very sensible. I haven't used Clam, but it should be a good choice too. Qmail is efficient, but Postfix is easier to manage.

I must recommend using the Maildir format for mailboxes, with local filesystems optimized for many small files; ext4 should do for < 16TB storage. Postfix and Dovecot have full support for Maildir. With 3000 accounts, even with spam filtering, CPU power is not an issue, but disk access is usually a bottleneck. Because each message must be written to disk, they cannot be safely cached in RAM. Thus, you don't need that much of RAM either, something like 4 to 8 GB should be enough.

If you can, I'd also recommend getting two identical physical servers at once, connected via a direct gigabit ethernet. This way you can do updates and upgrades with minimum service interruptions, and you have a backup machine when hardware failure occurs. Basically, you set up the slave first, then migrate the service to the other machine. It is also possible to keep the data on the slave machine constantly up to date, but that generates a lot of network traffic, and is a bit of a pain to set up correctly. I'd still use either software RAID0 or RAID10, or hardware RAID 5 or RAID 6 over a number of SATA disks, locally on each server, plus at least a daily backup to remote storage. RAID does not a backup make.

I don't really want to recommend any products, but if you have a rack, or can rent suitable rack space, I'd look at the 2U servers with support for 4 to 8 hotswap 3.5" SATA drives, and buy either Samsung (cheaper) or Western Digital (long warranty) drives separately. You should be able to get a suitable rack server for 1500 € to 3000 €, depending on your needs, location and sales contacts. Make sure you have an IP-based KVM module on the server, it makes troubleshooting remote hardware problems much easier. If you house the servers in an office-like environment without a rack, you can build a reliable, efficient and quiet real server machine for about the same price, if you are careful. If you choose the parts carefully, you can get an average five year lifespan. Just be always prepared for at least one hard drive failure, having a couple of spare drives always at hand is important. Buying two servers should also get you (a small) discount.

Buying complete (or at least partially configured) servers is a good idea, but knowing the hardware components makes it easier to decide which one suits your needs best. If you want to delve into the details, contact me via e-mail; I've built Linux servers and workstations as a hobby for over a decade now.
Nominal Animal

Last edited by Nominal Animal; 03-21-2011 at 03:11 AM.
 
  


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
Email server - solution - encrypted email filesystem dlugasx Linux - Server 1 02-12-2010 11:02 PM
Email Server Solution dzollinger Linux - Software 1 12-29-2007 02:24 AM
Recommendation of dedicated email blasting server? StevenO General 4 09-28-2007 02:08 AM
Free / Cheap VirusScan Solution for Mail Server... Vince0000 Linux - General 3 08-18-2004 10:22 AM

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

All times are GMT -5. The time now is 11:07 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