Best Antivirus Options for a Mailserver?
CSIP asks: "I am setting up a small mailserver, with ~500 users, across 80 domains. I'm planning to use qmail-scanner and an antivirus scanner to block incoming viruses. I would prefer to use ClamAV, however I've read conflicting reports on its effectiveness. The commercial scanners appear to detect 99.X% however they are licensed per-user, which at 500+ users becomes quite the annual bill.
What is everyone's experience with ClamAV? Are their other commercial scanners that allow you to license on a per-server basis?" The best indicator of quality for a virus scanner is the information in its virus database. How do ClamAV's virus definitions compare to commercial scanners, like McAfee's?
I have been using ClamAV for about 6 months, and so far its blocked a few viruses. So far so good.
Strip attachments, don't use Outlook.
Using a fuzzy checksum tool like DCC to block similarly worded messages. It will catch both spams and viruses.
Most viruses spread so quickly that the AV tools' databases are inevitably out of date and ineffective.
I don't know how many virus signatures it detects, but I can say that our company of only 30 ppl has yet to receive a virus through Clam.
We did have Norton AV/Exchange running when we used exchange as a front line server. It was also pretty good about viruses except for the first day of CodeRed I believe where it was 1/2 after the first emails showed up. We only paid once and the updates never seemed to discontinue after the year, so maybe its just support/assurance that you're paying for. Consult the contract if in doubt.
Bye!
Also, don't forget to ask this guy how to utilise `apt-get sync domains` for easy distribution of Contacts and Calendars.
Now, granted, with 500 users, I'm going to assume that is not an option for you as people likely send files back and forth via email quite often.
Still, I just wanted to point out that blocking email with attachments is probably the most effective antivirus option for a mailserver, though certainly not the best solution.
The best Anti Virus protection for your mail server is to not let anyone recive mail =)
But since that's not going to work you need to enforce a strict policy "If you open a virus I chop off a finger"
This should work for you unless you have someone that just doesn't learn
There's a good post detailing the ClamAV vs. Commercial question...
To paraphrase, ClamAV's database is generally at least a few days ahead of sophos and sometimes weeks...
ClamAV was written from the ground-up to do mail scanning, so it should be better than commercial scanners that try to be everything to everyone...
I do. No viruses.
The ClamAV client is great for scanning email, but it is best used with another scan engine, such as amavis-ng.
I own a company that uses the ClamAV+Amavis-ng configuration internally and implements the solution for clients. We've never seen a virus come through the system yet.
When you combine these tools with SpamAssassin you have a fairlyy "safe" email system.
~.Evanrude
Not recommending anything in particular, but you can chain together different tools to filter more completely than a single line of defense both against viruses and against spam.
IIRC, at MyCorp, Exchange servers are insulated from the outside by both PerlMX and Tumbleweed.
"Provided by the management for your protection."
I also run a mailserver, but for a company of 50ish, over a dozen or so domains.
At first I converted it from exim to qmail with qmail-scanner, then replaced qmail-smtpd with qpsmtpd.
As we already have licencing for f-prot I used that, but it soon failed to pick up a variant of Swen. So I simple added the clamav plugin and stopped the variant (gibe) dead.
I probably should build some stats on which scanner detects what, but we've only had a few netsky variants before one or the other updated.
With at least the first and second netsky variants it was f-prot which updated first.
If it's a picture or a word document from a friend or colleague then they'll probably end up viewing it in their browser and if it's a binary, provided it came from a trusted source, they can download it (make sure to give them an option to delete it if they'll feel it isn't benign). If it's something they don't recognize and/or from someone they don't recognize, they're going to be a bit more cautious. The idea is that the extra step prevents people who open all attachements without thinking or, worse yet, run email clients which allow attachments to rape their computer without their knowing, from harming themselves.
If anyone complains, tell them this is the email version of "Are you sure you want to delete that file?" -- it's a pause that forces reflection that may end up saving them grief. They'll learn to live with the added step and eventually, they'll be glad it's there to protect them.
Using clamAV in combination with qmail (using qmail-scanner and the qmail-queue patch) on a debian box. It's caught a bunch of viruses (most recently all of these stupid doom variants), though I don't know how quickly the definitions are updated. I would imagine that is where the concern would be. I also wouldn't know if viruses made it through, as I run linux on my workstations/laptop. I only installed clamAV to help protect others using my mail server. I haven't heard any complaints so far, though.
It has a very similar licencing scheme to what RAV used to offer (before they were bought out by The Evil Empire. They license by domain, with a maximum of 3000 users.
.deb or whatever other package format your distro uses with the help of Alien). And you could always use it together with ClamAV, to doule-check your mail messages for viruses.
It integrates easily with any MTA (works as a proxy), including my favorite qmail. Runs over Linux and various *BSD's. I've succesfully installed it over Debian (even thought only RPM packages are provided - they can be easily converted to
They also offer an antivirus solution for Samba servers, which provides real-time scanning and blocking of files when opened/closed from the network. It comes with a fixed price for server with an unlimited number of users and shares to protect.
The recomendation may com from a little closer - my company is a Vexira Reseller. But all in all it's a good solution and IMHO it has the most convenient licencing scheme.
For more info visit: Vexira Website.
Regards,
Articulos para gente geek: Poleras, linux, libros y mas
Make sure your mail-server-based AV scanner can check inside attachments that are archives (zip, etc.), and not just individual documents. Many of the latest attachment-based viruses reside inside compressed archives. Also make sure it can tell the difference between an attached file's extension, and it's real format, as sometimes they're sent out with deliberately-incorrect file extensions to get around the more stupid AV scanners.
MyDoom reduced our productivity by 10%.
The ______ Agenda
The biggest reason I have to use ClamAV is because almost no one else supports OS X. I didn't find any besides ClamAV that weren't a all-in-one mail server, which I'm not going to bother with.
If Vexira would have supported OS X when I was looking, I would have bought it.
Been testing ClamAV + Amavisd-new + SpamAssassin + Postfix + Courier-IMAP here.
:)
In the past 4 weeks, it's managed to block:
244 virus messages
416 spam messages
correctly tagged 450 messages as possible spam (kill setting is low right now while I test the system).
And that's just on my 3 e-mail accounts. I haven't put this into testing inside the department yet.
I've had reasonably good luck with ClamAV. I've found that effectiveness tends to depend on configuration (which I'll get back to).
Some people say that the ironclad test of an A/V app is the number of virus definitions listed. In ClamAV's case (per FreshClam's log output), there are 20372 signatures in the DB. IMO, the number of definitions doesn't really mean much. In my experience, the most important stuff to protect against are the recent outbreaks -- where mail servers are inundated with worm-laiden email. In this case, it's really a matter of how soon the definitions are updated. Generally, I tend to see definitions updated within 12-48 hours of a reported outbreak. Combine this with your update frequency to figure out your expopsure period.
There will be an exposure period regardless of which A/V software you run. Some will have greater average periods than others. Don't rely on marketing information to figure this out. It's a bunch of crap. Real world experience is what counts here -- if you've got lots of experience with these, great. If not, try to find someone who knows their stuff who can give you a good idea for what's what with different apps. I haven't used a ton of these, so I can't give you any ironclad data.
Your configuration will tend to be your greatest asset/worst enemy in terms of finding the best A/V setup for your particular needs. For example -- I automatically block certain types of attachments via qmail-scanner. There's no reason for them -- and they're not worth the risk. I block any attachment with the following extensions (I'm sure that this is not perfect, but whatever): .vbs, lnk, scr, wsh, hta, pif, exe, bat, com, sct, chm, cmd, crt, hlp, hta, isp, pcd, reg, shs, and js. These attachments are all allowed inside of an archive (which ClamAV scan), but I'm willing to roll the dice on exposure to those, since screwing up and opening the attachment is no longer as simple as a single mouseclick.
Finally, I also run client-side A/V. These just aren't as reliable as server-side protection -- users always find wonky things to do with/to their computers...but I like to think of this is a last line of defense. Furthermore, users also tend to check their personal email from work. If you have the hardware to handle it, it might be worth your while to have your users forward their personal email through your service to cover your butt (or enact a policy forbidding users from checking personal email at work)...just be careful about discoverability of their personal email if it comes through your work email (IANAL).
Overall, I'm satisfied with ClamAV/Qmail-Scanner. I'm running it on a system designed for 1000 users (in its current hardware/software configuration) -- scalable to up to about 3000 users. Currently, we're running with around 150 users...in about 2 months, we'll have our new HR/payroll system up which will allow us to add accounts for the rest of our 750 employees (long story). We'll see how good it is once I have a larger userbase to work with. However, my favorite part about ClamAV (and this is the real selling point) is the lack of per-seat fees associated with most commercial AV products. This is the same reason we chose not to use Exchange...those fees are hefty!
-Turkey
We use multiple front end postfix systems with the amavis-spamassassin-clam combo to hand off to a backend Imail server (which could be any backend mail server really), servicing several thousand domains and tens of thousands of end users in those domains. With the auto-updating features setup to check in hourly, we usually have the definitions for the latest worm on the system before it really starts hitting critical mass. When the Mydoom worm (worm.sco.x) came out, the definitions on our servers were updated on the 25th of January, the worm seemed to really start pounding things on the 26th and 27th. Monday morning, it had blocked 10k+ of the little bandit before any had gotten through and I got to read about the unhappy griping of the Norton AV users who hadn't gotten updated in time. It was a case where if we'd used anything but clam, we'd probably have had to deal with plenty of whiney end users (and who wants that?). Now, I'm still not 100% sold on clam, I'll sing its praises, but I'm not going to just use it just yet (so it takes me 6-12 months for me to trust something, call me paranoid). On the actual back end mail server, I'm still using declude to tie into f-prot's scanner. However, since setting up clam, I don't think there's been a single virus that's made it through (going on 5 months now) for it to catch. As Martha would say, "It's a good thing".
With the recent bagle and somefool worms, I was seeing lots of catches by amavis-clam, but it didn't handle the encrypted zips correctly (though word on the mailing lists are there are mods/updates that can be made to start handling them right. I'm just gonna dump all zips for now, those pesky users dont deserve 'em anyways). To answer the original question though? Is Clam ready for primetime? I think so, but erring on the side of caution and having another layer of virus checks in there can't hurt . . . either way, you'll need to keep tabs on it for the next 'catch you by surprise' variant that even the commercial products aren't responding to in time; the more users you are supporting, the higher the probability that you are going to be the one dealing with an account that was one of the first to receive the newest worm . . .
No server based AV solution I know of will stop the latest wave of random password zip viruses. That is because the AV program cannot scan inside the zip file. I've posted a patch to the clamav-users mailing list that marks all password-encrypted zip files as suspect and thus can be quarantined for manual extaction and scanning if desired.
Right now I'm quarantining (with mimedefang and the patched clamav) all encrypted zip files. So far it's 100% hit rate, with no false positives. Unfortunately, ClamAV developers haven't said how they plan to deal with these password zip files.
Overall, once I patched clamav, I was more than pleased. Over the last 2 months Clamav working through mimedefang has saved us from almost all the viruses coming into our server. Updates are daily or more and I have a cron auto-updating them on the hour.
The beauty of having an open source AV was made clear to me today as I modified ClamAV to detect the encrypted zip files. Even though this is more of a stop-gap measure, with any other closed-source program I would have been completely at the vendor/developer's mercy.
That said, using clamav in conjunction with other AV programs in a stack fashion would give you even more coverage if you were worried.
I use 0.65 with a patch with success. There are times when a mal-formed email will crash the daemon and then viruses can get through when the milters start timing out. One must be diligent to catch those situations. It can't be easily debugged because the offending email is long gone by the time the problem is noticed. Attempts to beg the developers for a less catastrophic failure mode (or at least a failure mode that leaves enough bits lying around to reproduce the crash for later debugging) have not resulted in anything useful, yet.
Please don't use a scanner that "quarantines" e-mails that require admin intervention to get back. One of my prior employers created such a beast for their e-mail system, and it would even quarantine e-mails I send to co-workers. The admins of course have slow turn-around times. It ended up easier to use the telephone or FTP, defeating the original convenience and usefulness of e-mail. Even further, it would quarantine totally legitimate stuff from mailing lists. Really crappy stuff.
IMO, it is better to have suspicious e-mail diverted to a "Dangerous, Be Careful" folder with a big Skull-and-Bones air about it, so I can ignore the virus scanner altogether to get at important e-mails.
Also, don't use Windows. Of course, you already knew that, right?
Vote in November. You won't regret it.
90% of sites I know of spend a fortune on email virus scanning, and then block any attachment that might contain a virus. The product in question doesn't bother scanning any blocked attachment and ends up never detecting a virus.
That was until they started putting them in zip files, which are allowed through.
For what it's worth (the article is quite 'old' already), F-Prot seems very well. In combination it's a very low-cost mail-virusscan sollution.
You can use the personal version for free even on Linux (for personal use of course). With the new amavis (at least on Debian) you hardly have to configure anything, f-prot even has a Debian package available.
The commercial workstation version works good too, but it can be slow when you have a lot of mails (probably around 10-100 per minute, haven't checked it), because the process is started each time for every mail.
The server version works in deamon mode, and does not have any per-client costs.
(-% TwistedMind %-)
We attached ClamAV on several CommuniGate Pro mail servers using CGPAV to glue the two together. Apart from the current wave of password-protected-ZIP files, it seems to have been quite effective. Updates seem to be ready at least daily as far as I can see. Disclaimer: it has only been in place some 3-4 weeks now.
Bad sides? Spartan documentation. Nothing a competent admin can't work out.
Take this as subjective experience; ClamAV has no way to tell me it allowed a virus through. And circumstances make it infeasible for me to put a commercial scanner behind it to let me know what it missed.
"The Devil does not know a lot because He's the Devil, He knows a lot because he's old." -- unknown
We use a Fortinet FG-60 to scan for viruses at the network layer. This has the advantage of also scanning HTTP, VPN, POP3, IMAP, SMTP and FTP traffic and strips the viruses from those streams before it hits your network!
These devices provide VPN support as well as full firewall features. The Fortinet devices start at $500 USD and go all the way up to data center class devices costing >$40,000 USD. Very easy configuration. Worth the cost.
Arf!
I've experienced good results using ClamAV. My setup is as follows:
Sendmail 8.12 -> MS Exchange 2000 -> Outlook clients
My outfit was already married to Microsoft, and the Exchange server was buckling due to being inundatad with spam. I'm also running Symantec AVF on my Exchange server (Dell PE6650, Quad 1.4Ghz Xeon, 3Gb ram).
I originally installed Linux on a Dell Dimension desktop (450Mhz PIII, 768Mb ram) using Sendmail + Spamassassin + spamass-milter + RAV. Spamass-milter isn't very stable, and I had a request to append a legal disclaimer to all outbound email (I work at a law firm). I swapped spamass-milter in favor of MIMEDefang to interface Spamassassin with Sendmail while also appending those legal disclaimers. Microsoft had bought RAV by this point, so I dumped RAV for ClamAV. The Linux box has also moved to a retired Dell PE6450 (Dual 700Mhz Xeon, 3Gb ram).
So now MIMEDefang is performing several functions, plus I only have one milter running instead of three.
ClamAV catches 90% of my incoming viruses and Symantec AVF catches the rest.
- How do virus definitions get into the database? Yes, they depend on community support. But what stops someone from submitting a fake virus signature that will block legitimate email?
- There's the disturbing use of strcpy and strcat in the ClamAV source code. I don't like running software that uses such constructs as root.
Any information on these two issues would be greatly appreciated.I've just implemeted clamav+mimedefang+spamassassin so I'll have to wait a while and see how effective it is. One good place to start though is http://www.declude.com/tools/mailsend.html It allows you to test your set up by mailing you the eicar virus which is harmless. Good luck.
There's no shame in being a pariah. -Marge Simpson
Postfix, with RBL check, header_checks, + body checks for known spam content (even works on _known_ encrypted zips), then it hands what passes on to amavis-new, which runs _BOTH_ clamav (the clamd version, so scans are FAST), then f-prot non D version (takes longer, but is less $ vs the D version), then it gets handed to spamassassin. My clamav updates every hour via cron, the f-prot updates 2 times per day. My header_checks block lame stuff like pif, scr, etc extentions.
/^Content-(Type|Disposition):.*(file)?name=.*\.(a( sd|bd)|b(at|inhex|mp)|c(hm|md|om)|d(bx|ll)|exe|hlp |hta|js|jse|lnk|mp3|ocx|pif|s(cr|hb|hm|hs)|tbb|v(b |be|bs|bx|xd)|w(ab|av|s(f|h)))/ REJECT Sorry we do not accept .${3} file types /^Content-(Type|Disposition):.*(file)?name=.(do(c| cument)|readme|te(s(t|tdocument)|xt)|file|data|mes sage|body)\.(zip)/ discard Mydoom and other virus filename
Example header check:
#and you might want _reject_ just in case:
I've had zero viruses get in.
Ryan
I'm not sure if this is a good solution for 500+ usres, but at the company I work for, we use SuSE OpenExchange in combination with Antivir (www.antivir.de) . We've only got about 25-30 users, though.
SuSE OpenExchange's default spamassassin rules are really, really good. I had to make a minor adjustment to one of the rules - and after that it has had zero false positives in addition to taking care of over 99% of the spam we receive. The last month it has blocked about 1500 spam messages to me alone - and not let a single one through. With *zero* false positives. Other employees have the same experience.
I'm not sure if I would recomend using qmail anymore. I tended to love qmail, and has set up qmail based solutions for five different companies. qmail doensn't reject mail to invalid addresses in-smtp-session though (at least not by default), and insteads returns the message afterwards. With all the spoofed mail from:'s, with guessed mail to:'s -- this creates far too many bounce messages in todays virus-ladden environment.
"Rune Kristian Viken" - http://www.nwo.no - arca
on my mailgateway, as they both can miss the odd one.
I tend to find Clam updates faster, but Sophos's updates need less corrections..
I glue them together with MailScanner (www.mailscanner.info) which also allows men to pop in SpamAssassin to the mix.
On the desktop I use Norton's AV solution so give me a third layer of defence..
Belt and braces.....
I've been using Activestates "PerlMX" through a few name and company revisions -- ActiveState "PureMessage", now Sophos PureMessage.
Anyway, it does anti-spam and anti-virus and general policy type stuff. It has been extremely reliable and has been really excellent -- great spam filtering and now with the sophos AV very up-to-date virus signatures.
Licensed per CPU. We run about 1000 users behind a 1-cpu box and it could easily go to many more users.
Good luck-
"But actually trying to use m4 as a general-purpose langage would be deeply perverse" --ESR
I've been using clamav for quite a few months now; it's pretty good.
Viruses are picked up quickly enough for me, and if they're not picked up quickly enough for you, they include tools to create your own virus signatures.
Vintage computer games and RPG books available. Email me if you're interested.
After viewing this thread I noticed that Clam AV came up quite a bit. So I went to their website and went to the news section. From there I saw a link for PC worlds response times articles. Here is the original article in german. Clam AV is #5, but the AV program I use frequently is BitDefender, which is ranked #2. I use BitDefender because they have a LiveCD that is a remastered version of Knoppix which is a Live CD based off of Debian Linux. BitDefenders scan engine can also scan Microsoft Windows partitions (to include FULL RW support for NTFS). The only thing missing from my recovery pack is a spyware scanner that runs under linux and will remove windows based spyware. ~ryan
yes! and then your dumbass will be out of a job!
sounds fair to me.
The one big problem I've found with sophos is that the scanning engine itself will only work for 3 months before it has to be updated. This alone is incredibly frustrating.