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.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links... | Read more »
Price of Glory unleashes its 1.4 Alpha u...
As much as we all probably dislike Maths as a subject, we do have to hand it to geometry for giving us the good old Hexgrid, home of some of the best strategy games. One such example, Price of Glory, has dropped its 1.4 Alpha update, stocked full... | Read more »
The SLC 2025 kicks off this month to cro...
Ever since the Solo Leveling: Arise Championship 2025 was announced, I have been looking forward to it. The promotional clip they released a month or two back showed crowds going absolutely nuts for the previous competitions, so imagine the... | Read more »
Dive into some early Magicpunk fun as Cr...
Excellent news for fans of steampunk and magic; the Precursor Test for Magicpunk MMORPG Crystal of Atlan opens today. This rather fancy way of saying beta test will remain open until March 5th and is available for PC - boo - and Android devices -... | Read more »
Prepare to get your mind melted as Evang...
If you are a fan of sci-fi shooters and incredibly weird, mind-bending anime series, then you are in for a treat, as Goddess of Victory: Nikke is gearing up for its second collaboration with Evangelion. We were also treated to an upcoming... | Read more »
Square Enix gives with one hand and slap...
We have something of a mixed bag coming over from Square Enix HQ today. Two of their mobile games are revelling in life with new events keeping them alive, whilst another has been thrown onto the ever-growing discard pile Square is building. I... | Read more »
Let the world burn as you have some fest...
It is time to leave the world burning once again as you take a much-needed break from that whole “hero” lark and enjoy some celebrations in Genshin Impact. Version 5.4, Moonlight Amidst Dreams, will see you in Inazuma to attend the Mikawa Flower... | Read more »
Full Moon Over the Abyssal Sea lands on...
Aether Gazer has announced its latest major update, and it is one of the loveliest event names I have ever heard. Full Moon Over the Abyssal Sea is an amazing name, and it comes loaded with two side stories, a new S-grade Modifier, and some fancy... | Read more »
Open your own eatery for all the forest...
Very important question; when you read the title Zoo Restaurant, do you also immediately think of running a restaurant in which you cook Zoo animals as the course? I will just assume yes. Anyway, come June 23rd we will all be able to start up our... | Read more »
Crystal of Atlan opens registration for...
Nuverse was prominently featured in the last month for all the wrong reasons with the USA TikTok debacle, but now it is putting all that behind it and preparing for the Crystal of Atlan beta test. Taking place between February 18th and March 5th,... | Read more »

Price Scanner via MacPrices.net

AT&T is offering a 65% discount on the ne...
AT&T is offering the new iPhone 16e for up to 65% off their monthly finance fee with 36-months of service. No trade-in is required. Discount is applied via monthly bill credits over the 36 month... Read more
Use this code to get a free iPhone 13 at Visi...
For a limited time, use code SWEETDEAL to get a free 128GB iPhone 13 Visible, Verizon’s low-cost wireless cell service, Visible. Deal is valid when you purchase the Visible+ annual plan. Free... Read more
M4 Mac minis on sale for $50-$80 off MSRP at...
B&H Photo has M4 Mac minis in stock and on sale right now for $50 to $80 off Apple’s MSRP, each including free 1-2 day shipping to most US addresses: – M4 Mac mini (16GB/256GB): $549, $50 off... Read more
Buy an iPhone 16 at Boost Mobile and get one...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering one year of free Unlimited service with the purchase of any iPhone 16. Purchase the iPhone at standard MSRP, and then choose... Read more
Get an iPhone 15 for only $299 at Boost Mobil...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering the 128GB iPhone 15 for $299.99 including service with their Unlimited Premium plan (50GB of premium data, $60/month), or $20... Read more
Unreal Mobile is offering $100 off any new iP...
Unreal Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering a $100 discount on any new iPhone with service. This includes new iPhone 16 models as well as iPhone 15, 14, 13, and SE... Read more
Apple drops prices on clearance iPhone 14 mod...
With today’s introduction of the new iPhone 16e, Apple has discontinued the iPhone 14, 14 Pro, and SE. In response, Apple has dropped prices on unlocked, Certified Refurbished, iPhone 14 models to a... Read more
B&H has 16-inch M4 Max MacBook Pros on sa...
B&H Photo is offering a $360-$410 discount on new 16-inch MacBook Pros with M4 Max CPUs right now. B&H offers free 1-2 day shipping to most US addresses: – 16″ M4 Max MacBook Pro (36GB/1TB/... Read more
Amazon is offering a $100 discount on the M4...
Amazon has the M4 Pro Mac mini discounted $100 off MSRP right now. Shipping is free. Their price is the lowest currently available for this popular mini: – Mac mini M4 Pro (24GB/512GB): $1299, $100... Read more
B&H continues to offer $150-$220 discount...
B&H Photo has 14-inch M4 MacBook Pros on sale for $150-$220 off MSRP. B&H offers free 1-2 day shipping to most US addresses: – 14″ M4 MacBook Pro (16GB/512GB): $1449, $150 off MSRP – 14″ M4... Read more

Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.