TweetFollow Us on Twitter

A platform for protecting mail servers.

Volume Number: 20 (2004)
Issue Number: 6
Column Tag: Programming

RAE Internet's MPP

by Lon Baker

A platform for protecting mail servers.

Now I can sleep at night.

The joy of infected and unwanted e-mail

On May 3, 1978, the first spam message was received. In 1981 the Apple Viruses 1, 2, and 3 are seen "in the wild" on the Apple II operating system, spread through pirated computer games, and Texas A&M University. The first threat of email delivering a virus arrived in the form of the "Good Times" email hoax in 1994 with the "Melissa" virus, W97M/Melissa, delivering on the threat in 1999, executing a macro which forwarded itself to 50 people from a users address book. The genie was out of the bottle, and managing e-mail servers has never been the same.

With the growing sophistication of attacks today being the single largest headache for anyone running a mail server endures. The growing drain on time, and resources to battle this scourge has forced every administrator to develop an arsenal of tools and techniques. But how does an administrator manage the array of anti-virus and anti-spam scanners?

Building a e-mail filtering solution

Here at Speedymac, our clients, including technical support services, real estate appraisers, and business owners of all types, demand dependable e-mail with minimal impact from spam and viruses in order to conduct their business. Over time, we explored numerous scanning solution to meet our clients needs. Each solution called for a significant level of work to integrate with our mail server. We encountered daily challenges in managing virus definition updates, installing new filters, and numerous other administrative tasks.

The most time consuming aspect of deploying these solutions has always been determining the most dependable and efficient method for integrating each scanner with the mail server. In some cases a simple perl script was all that was required, while others called for homegrown code pieced together in spite of companies refusing to officially support Mac OS X.

We found this process took far too much development time in light of the evolving sophistication, and volume of the message payloads targeting our clients. We wanted to spend more time improving accuracy, and dependability of our service and less time gluing the pieces together.

RAE Internet has developed a product that fit the bill for what we needed. MPP (Message Processing Platform), a Unix daemon deployed on a mail server, or as a SMTP proxy that provides a platform for integrating a wide range of scanning solutions. Built around the concept of consolidating configuration and management tasks, MPP's architecture supports a wide range of mail servers with scanning tasks handled via dynamic scanning modules.

The mail servers supported by MPP include Communigate Pro, Postfix, Sendmail, SergeMail, and Qmail, and the dynamic scanning modules currently available for Mac OS X include Sophos Anti-Virus, Cybersoft's Pattern Authority, ClamAV open source anti-virus scanner, and the ubiquitous SpamAssassin.

A key point for us was that MPP offered a consistent, and stable platform to implement a wide array of scanning solutions on Mac OS X. We were able to quickly integrate a uniquely powerful solution for our clients through the blending of numerous scanning modules.

We have found that the use of multiple modules significantly enhanced the protection provided to our clients. Using several anti-virus modules, for example, helped catch new virus outbreaks faster than a single scanner, since each anti-virus vendor may have significantly different lag time between the initial outbreak of a virus, the necessary definition being published, and the updated definition reaching our servers.

When it comes to spam filtering, MPP offered us the opportunity to deploy Pattern Authority in addition to SpamAssassin. Obviously, any additional resource for preventing spam is a welcome addition to most server administrators.

What does MPP actually do?

MPP acts as the intermediary in the scanning process, taking messages from the MTA, preparing the message for scanning, then handing the message off to each active Dynamic Scanning Module for processing. When scanning is complete, MPP compares the results against the configuration before signaling the MTA with the correct action to take.

The architecture of MPP is based on a single Unix daemon managing numerous worker processes. The number of worker processes can be configured to handle different message volumes, with each additional worker process spawning any necessary processes needed for each active dynamic scanning module.


Figure 1.

The configuration of MPP is handled via a single text file. A Webmin module, to handle the majority of configuration tasks through a Web Browser, is included, though more advanced configuration options require manual editing via the command line.

A wide range of processing options can be configured based on the results from the scanners. A message may have headers added, be quarantined, rejected, deleted, or passed through based on these settings, as well as actions to take should a scanning error occur.

Messages flagged by the MPP configuration and scanning results can be quarantined, which is common for messages infected with a virus, and MPP provides for a disk-based quarantine for spam messages, in addition to infected messages.

Management of quarantined messages is also handled through the Webmin module. Allowing you to review, delete, forward, and resubmit quarantined messages. The latter is helpful in the event a message is falsely flagged for quarantine.

One of the most important aspects of any scanning solution is maintaining current virus definitions. In this area, MPP offers update scripts for the commercial scanning modules that can be manually controlled through the Webmin interface.

The choice RAE made to support multiple solutions through the use of dynamic scanning modules allows greater flexibility in bringing new engines to Mac OS X server administrators. This helps protect our investment, and encourage additional companies to support Mac OS X through a relationship with RAE potentially.

Deploying MPP

MPP can be deployed on your mail server, or as an SMTP proxy server. If MPP is deployed as an SMTP Proxy, a minimally configured mail server is required to handle the SMTP services, since MPP does not contain its own SMTP server. Some may view this as a drawback, but we believe that it is an advantage, since it allows MPP to focus on what does best.

RAE offers package installers for installing MPP on Mac OS X. Though the installers are quite handy, they are not without their occasional flaws, and it is highly recommended you do test installs on a machine not in production to insure that the installer does not overwrite the existing configuration or license files.

Installation of MPP can vary widely based on which dynamic scanning modules you intend to use. In the case of the commercial scanners, RAE provides native Mac OS X installer packages for both Sophos, and Pattern Authority, while the open source scanners, such as SpamAssassin, and ClamAV, require you to install these solutions separately on the server from their respective sources.

There are a few loose ends when deploying MPP. Automating virus definition updates requires manually creating crontab entries to call the provided update scripts. In the case of ClamAV, you will have to create or use an update script that is provided with the ClamAV source distribution.

Updating an existing MPP installation is fairly straightforward using a simple TAR archive. The one catch being that you must completely stop MPP, and kill any existing processes. This can leave you vulnerable to un-scanned messages passing through to end users while the update is in progress.

The support for a wide range of MTA's and platforms allows an administrator to mix and match as they see fit. In our case, we have our central mail servers running Communigate Pro using Mac OS X Server on collocated Xserves. Our backup mail servers run Postfix, and handle backup MX for our clients using less expensive equipment, and facilities.

Configuring and Managing MPP

Configuration and management of MPP is accomplished through the Webmin module included with the product. Through this tool, most configuration tasks are performed, though a few of the more advanced configuration options require manual editing of the configuration file. The Webmin module also provides a fully functional interface for managing quarantined spam, and infected messages.

MPP configuration options are broken into several distinct sections: anti-virus, anti-spam, and vendor specific options. The configuration of MPP is quite flexible, having both "Scan" and "Do No Scan" options, allowing you to customize which messages are scanned. The drawback is that these options are global, and apply to both anti-virus and anti-spam.

The anti-spam configuration options include basic whitelist and blacklist settings that allow you to designate e-mail addresses, and domains for each list. The main drawback of these configuration options is that they only apply to the "From:" and "To:" headers.

MPP does not manage the configuration of SpamAssassin, so you still have to manage your it's configuration separately. Since SpamAssassin configuration is a world in and of itself, this is not surprising or unwelcome.

When deploying MPP as an SMTP Proxy, the current version does not support managing the configurations of each proxy remotely. You are, therefore, in the position of syncing the configuration files either manually, or via a homegrown solution such as rsync.

MPP is a rapidly maturing product that offers a fundamental choice one has to make. Do you commit to utilizing the product to completely manage the email filtering? Or, do you simply allow it to "tag" messages for processing down stream? This decision is quickly being shaped by the legislative actions revolving around spam and privacy. But it is nice to have the option to determine the method of management depending on your environment.

Performance

As mentioned earlier, MPP is implemented as a native Unix daemon following a daemon/worker process model, which allows MPP to grow as your mail volume increases simply by adding more processes. If mail volume grows beyond the capabilities of a single server with MPP, multiple scanning servers can be deployed in the form of proxy servers. This scaling has the potential to significantly improve performance by distributing the load across numerous servers and networks.

Each active dynamic scanning module contributes to the overall performance, memory requirements, and scanning speed of MPP. As is to be expected, performance impact can vary significantly from module to module. We found that basic scanning functions performed by MPP are highly efficient, with overall performance significantly impacted by certain modules.

The anti-virus modules tend to consume more resources, with Pattern Authority being the most resource intensive. This is to be expected, since Pattern Authority straddles the roles of anti-virus, and anti-spam, unlike other modules.

The performance of SpamAssassin varies greatly, along with accuracy, based on the configuration of SpamAssassin. In our highly customized SpamAssassin installation, we have in excess of 20,000 custom rules, 6 individual RBL checks, and customized SpamCop URI checks on the body of each message. Even with all these checks, we see processing time of just a few seconds in the most drastic situations.

MPP also helped solved a problem we often encountered prior to deploying MPP regarding improperly formed e-mail messages. MPP parses each message while gathering the relevant information to apply the configuration to the scanning modules results. This allows MPP to prevent improperly formed messages from being handed off to the scanning modules. Which before MPP could cause enormous problems, resulting in a simple delay in processing, or in a worst case, crashing a scanner.

Managing Results

With MPP configured, deployed, and scanning messages, there are a number of choices for managing results. As mentioned earlier, the flagged messages can be quarantined on the mail server, rejected, deleted, or flagged for routing further down stream.

For messages infected with a virus, you will most likely want them quarantined on the server, or deleted completely. But for messages flagged as spam, we chose to flag them for processing down stream, either by the client, or the receiving mail server. Managing the spam quarantine in the current version of MPP is highly useful and effective, but in our environment, did not fit the needs of our clients.

The first issue we encountered with the current version of MPP is that SpamAssassin results are not injected into messages. This can make reviewing, and improving SpamAssassin rules more difficult in that you must review mail logs for the results. RAE has promised this issue will be resolved in an update in the near future.

Another minor issue results from the lack of a centralized configuration option, or management of quarantined messages across multiple servers. With two main production servers, and two backup servers, while still more efficient than our previous homegrown system, it still leaves us with four server configurations, and quarantine areas to manage.

RAE is working on a solution to part of this issue that we have tested. This summer, version 2.0 will introduce a quarantine area stored in a MySQL database. We hope that RAE considers storing configuration information in a MySQL database as well, which would help in managing multiple MPP installations across an enterprise.

Support

RAE Internet is a growing company, and in our experience has exhibited both enthusiastic support, as well as their fair share of growing pains. Overall, RAE's support for Mac OS X has been very good, unlike a fair number of far larger companies. RAE's primary support method is e-mail, though it is not difficult to get the refreshingly helpful, and honest staff on the phone if an issue calls for it.

One area that is sorely lacking, and an obvious result of their rapid growth, is the minimal documentation included with MPP, which is currently limited to the Read Me file, comments in the configuration file, and an online FAQ. RAE needs to focus on detailed technical documentation for MPP. As it stands now, learning the more advanced configuration options requires an exchange on the mailing list, or with technical support.

As an early adopter of MPP, in addition to receiving great support, it's been a pleasant surprise to see how responsive RAE has been to feature requests, and how rapidly those requests were made available to customers.

Is MPP worth it?

MPP is a rapidly maturing product that offers a good answer to a fundamental question an administrator has to ask. Do you commit to utilizing a single product to manage the majority of your email filtering, or do you spend the time, and effort piecing together a solution on your own?

The cost of MPP is determined based on which commercial scanning modules you choose, as well as the number of users. Since MPP is the management platform for the scanning solutions, the majority of licensing fees go towards the various commercial scanning modules they offer. However, MPP can be purchased to integrate with existing licenses for supported scanning products, like Sophos or Pattern Authority.

While Mac OS X is our platform of choice, MPP's license is not restricted by platform. If a company "outgrows" an existing platform, or requires larger servers, the investment in MPP is protected. The only restriction is that MPP is only supported on Unix operating systems.

With Mac OS X gaining traction in the enterprise market, MPP offers a significant value for those looking for an easily installed and managed solution for deploying anti-virus and anti-spam filtering.


Lon Baker is the founder of Speedymac LLC, a developer of e-mail services, and web applications. Speedymac has been providing e-mail centric solutions to businesses of all sizes for over 5 years. Lon has been succumbing to his Mac addiction for over 15 years.

 
AAPL
$98.15
Apple Inc.
-0.23
MSFT
$43.58
Microsoft Corpora
-0.31
GOOG
$587.42
Google Inc.
+1.81

MacTech Search:
Community Search:

Software Updates via MacUpdate

Knock 1.1.7 - Unlock your Mac by knockin...
Knock is a faster, safer way to sign in. You keep your iPhone with you all the time. Now you can use it as a password. You never have to open the app -- just knock on your phone twice, even when it's... Read more
Mellel 3.3.6 - Powerful word processor w...
Mellel is the leading word processor for OS X and has been widely considered the industry standard since its inception. Mellel focuses on writers and scholars for technical writing and multilingual... Read more
LibreOffice 4.3.0.4 - Free Open Source o...
LibreOffice is an office suite (word processor, spreadsheet, presentations, drawing tool) compatible with other major office suites. The Document Foundation is coordinating development and... Read more
Freeway Pro 7.0 - Drag-and-drop Web desi...
Freeway Pro lets you build websites with speed and precision... without writing a line of code! With it's user-oriented drag-and-drop interface, Freeway Pro helps you piece together the website of... Read more
Drive Genius 3.2.4 - Powerful system uti...
Drive Genius is an OS X utility designed to provide unsurpassed storage management. Featuring an easy-to-use interface, Drive Genius is packed with powerful tools such as a drive optimizer, a... Read more
Vitamin-R 2.15 - Personal productivity t...
Vitamin-R creates the optimal conditions for your brain to work at its best by structuring your work into short bursts of distraction-free, highly focused activity alternating with opportunities for... Read more
Toast Titanium 12.0 - The ultimate media...
Toast Titanium goes way beyond the very basic burning in the Mac OS and iLife software, and sets the standard for burning CDs, DVDs, and now Blu-ray discs on the Mac. Create superior sounding audio... Read more
OS X Yosemite Wallpaper 1.0 - Desktop im...
OS X Yosemite Wallpaper is the gorgeous new background image for Apple's upcoming OS X 10.10 Yosemite. This wallpaper is available for all screen resolutions with a source file that measures 5,418... Read more
Acorn 4.4 - Bitmap image editor. (Demo)
Acorn is a new image editor built with one goal in mind - simplicity. Fast, easy, and fluid, Acorn provides the options you'll need without any overhead. Acorn feels right, and won't drain your bank... Read more
Bartender 1.2.20 - Organize your menu ba...
Bartender lets you organize your menu bar apps. Features: Lets you tidy your menu bar apps how you want. See your menu bar apps when you want. Hide the apps you need to run, but do not need to... Read more

Latest Forum Discussions

See All

Empire Manager (Games)
Empire Manager 1.0 Device: iOS iPhone Category: Games Price: $3.99, Version: 1.0 (iTunes) Description: Become ruler of an empire. Manage your economy, develop technology, hire an army and conquer the world in this addictive turn-... | Read more »
Empire Manager HD (Games)
Empire Manager HD 1.0 Device: iOS Universal Category: Games Price: $7.99, Version: 1.0 (iTunes) Description: Become ruler of an empire. Manage your economy, develop technology, hire an army and conquer the world in this addictive... | Read more »
Star Admiral Review
Star Admiral Review By Rob Thomas on July 30th, 2014 Our Rating: :: ADMIRABLE ADMIRALSUniversal App - Designed for iPhone and iPad While this new digital CCG may feel a bit familiar, Star Admiral offers a sci-fi twist and galaxy’s... | Read more »
Zap! Pow! Become a Badass Wizard in Phan...
Zap! Pow! | Read more »
Urban Trial Freestyle Review
Urban Trial Freestyle Review By Blake Grundman on July 30th, 2014 Our Rating: :: RIDIN' DIRTYUniversal App - Designed for iPhone and iPad A rough ride that has trouble keeping its wheels on the track.   | Read more »
Take Note! Noteshelf Has Recieved a Big...
Take Note! Noteshelf Has Recieved a Big Update. Posted by Jessica Fisher on July 30th, 2014 [ permalink ] iPad Only App - Designed for the iPad | Read more »
Cubama Review
Cubama Review By Nadia Oxford on July 30th, 2014 Our Rating: :: TETRIIIIIS IIIIIN SPAAAAACE!Universal App - Designed for iPhone and iPad With its addictive challenge and interesting premise, Cubama is frantic screen-tapping fun.   | Read more »
Become a Guardians of Galactic Peace Wit...
Become a Guardians of Galactic Peace With the New Spacefaring Sim, Kairobotica. Posted by Jessica Fisher on July 30th, 2014 [ permalink ] | Read more »
Soul Guardians: Age of Midgard Review
Soul Guardians: Age of Midgard Review By George Fagundes on July 30th, 2014 Our Rating: :: SO MUCH GRIND IT CRUNCHESUniversal App - Designed for iPhone and iPad Swords and trading cards are fun, right? So is Soul Guardians: Age of... | Read more »
NFL Fantasy Football App Redesigned Ahea...
NFL Fantasy Football App Redesigned Ahead of Upcoming 2014 Season Posted by Ellis Spice on July 30th, 2014 [ permalink ] | Read more »

Price Scanner via MacPrices.net

Save $50 on the 2.5GHz Mac mini, plus free sh...
B&H Photo has the 2.5GHz Mac mini on sale for $549.99 including free shipping. That’s $50 off MSRP, and B&H will also include a free copy of Parallels Desktop software. NY sales tax only. Read more
Save up to $140 on an iPad Air with Apple ref...
Apple is offering Certified Refurbished iPad Airs for up to $140 off MSRP. Apple’s one-year warranty is included with each model, and shipping is free. Stock tends to come and go with some of these... Read more
$250 price drop on leftover 15-inch Retina Ma...
B&H Photo has dropped prices on 2013 15″ Retina MacBook Pros by $250 off original MSRP. Shipping is free, and B&H charges NY sales tax only: - 15″ 2.3GHz Retina MacBook Pro: $2249, $250 off... Read more
More iPad Upgrade Musings – The ‘Book Mystiqu...
Much discussed recently, what with Apple reporting iPad sales shrinkage over two consecutive quarters, is that it had apparently been widely assumed that tablet users would follow a two-year hardware... Read more
13-inch 2.5GHz MacBook Pro on sale for $999,...
Best Buy has the 13″ 2.5GHz MacBook Pro available for $999.99 on their online store. Choose free shipping or free instant local store pickup (if available). Their price is $100 off MSRP. Price is... Read more
Save up to $300 on an iMac with Apple refurbi...
The Apple Store has Apple Certified Refurbished iMacs available for up to $300 off the cost of new models. Apple’s one-year warranty is standard, and shipping is free. These are the best prices on... Read more
WaterField Unveils 15″ Outback Solo & 13″...
Hard on the heels of Apple’s refreshed MacBook Pro Retina laptops announcement, WaterField Designs has unveiled a 15-inch version of the waxed-canvas and leather Outback Solo and a 13-inch version of... Read more
New Roxio Toast 12 Delivers Digital Media Pow...
Roxio Toast 12 is a hub for sharing digital media to virtually any platform or device. has introduced two new additions to its Roxio Toast product family – Roxio Toast 12 Titanium and Roxio Toast 12... Read more
The lowest prices on leftover Retina MacBook...
Best Buy has dropped prices on leftover 13″ and 15″ Retina MacBook Pros by up to $300 off original MSRP on their online store for a limited time. Choose free local store pickup (if available) or free... Read more
Apple Updates MacBook Pro with Retina Display...
Apple today updated its MacBook Pro with Retina display with faster processors and double the amount of memory in both entry-level configurations. MacBook Pro with Retina display features a Retina... Read more

Jobs Board

Sr Software Lead Engineer, *Apple* Online S...
Sr Software Lead Engineer, Apple Online Store Publishing Systems Keywords: Company: Apple Job Code: E3PCAK8MgYYkw Location (City or ZIP): Santa Clara Status: Full Read more
Sr Software Lead Engineer, *Apple* Online S...
Sr Software Lead Engineer, Apple Online Store Publishing Systems Keywords: Company: Apple Job Code: E3PCAK8MgYYkw Location (City or ZIP): Santa Clara Status: Full Read more
*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
Sr. Product Leader, *Apple* Store Apps - Ap...
**Job Summary** Imagine what you could do here. At Apple , great ideas have a way of becoming great products, services, and customer experiences very quickly. Bring Read more
*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.