Build a Low-Cost Mail Server, Part 2 - InformationWeek
IoT
IoT
Feature
News
6/12/2006
08:47 AM
50%
50%
RELATED EVENTS
WANTED: Data Analysts, but are there enough?
Mar 08, 2017
As the internet and availability of data has disrupted many industries, one career field that cont ...Read More>>

Build a Low-Cost Mail Server, Part 2

Expand a basic FreeBSD e-mail server with virus protection, spam detection, and Webmail access.

In Part 1of this TechBuilder Recipe, I showed you how to create a secure, basic e-mail server for your SMB customers by using open source software, specifically FreeBSD, Postfix, and Dovecot. Now in Part 2, you'll learn how to extend the functionality of that basic system by adding virus protection, spam detection, and Webmail access.

The system we built in Part 1 of this Recipe used only free, open-source software. Same with Part 2. All the programs you'll need are free, open-source software. They are all included in the FreeBSD ports and packages system, as discussed in Part 1.

Today, any mail server that lacks protection again spam and viruses is considered incomplete. To provide these functions, I recommend the following freeware:

  • amavisd-new, a high-performance interface between mailer and content checkers, will serve as your content filter.
  • ClamAV, short for Clam Anti-Virus, will filter out viruses.
  • SpamAssassin, an open-source spam filter from the Apache Project, will filter out junk e-mail. (Amavisd-new is a Perl script and actually integrates SpamAssassin, which will save time and effort.)

In this Recipe, I will instruct you to install both the ClamAV and amavisd-new packages from the FreeBSD packages system. So you won't need to manually download them. Also, since SpamAssassin is part of amavisd-new, you won't need to download that separately, either.

Most mail servers now let users send and receive e-mail by using a Webmail interface through a browser-- not just by using a client like Outlook or Eudora. One of the best Webmail packages available is SquirrelMail, a standards-based package written in PHP4. It which renders pages in pure HTML 4.0 with no requirement for Javascript.

As I did in Part 1 of this Recipe, I'll use

Courier font
for highlighting commands or filenames, and a percentage sign (%) to represent the command prompt. I'll also continue installing applications using the pre-compiled packages system.

You may remember from Part 1 that we installed our base system from a CD. Assuming your system has Internet access, changing your installation source to one of the FreeBSD FTP mirror servers will let you add packages without needing to swap CD discs. This is extremely handy when working remotely.

Previous
1 of 3
Next
Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
How Enterprises Are Attacking the IT Security Enterprise
How Enterprises Are Attacking the IT Security Enterprise
To learn more about what organizations are doing to tackle attacks and threats we surveyed a group of 300 IT and infosec professionals to find out what their biggest IT security challenges are and what they're doing to defend against today's threats. Download the report to see what they're saying.
Register for InformationWeek Newsletters
White Papers
Current Issue
IT Success = Storage & Data Center Performance
Balancing legacy infrastructure with emerging technologies requires laying a solid foundation that delivers flexibility, scalability, and efficiency. Learn what the most pressing issues are, how to incorporate advances like software-defined storage, and strategies for streamlining the data center.
Video
Slideshows
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
Join us for a roundup of the top stories on InformationWeek.com for the week of November 6, 2016. We'll be talking with the InformationWeek.com editors and correspondents who brought you the top stories of the week to get the "story behind the story."
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.
Flash Poll