Slashdot Mirror


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?

31 of 91 comments (clear)

  1. You'd be better off... by Ophidian+P.+Jones · · Score: 3, Informative

    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.

    1. Re:You'd be better off... by richie2000 · · Score: 2, Interesting
      Most viruses spread so quickly that the AV tools' databases are inevitably out of date and ineffective.

      That wasn't really true until just a week ago when I had to manually update my f-prot twice in one day to catch the new Neksky variants. I had it set at once a day for the longest time, set it for twice a day a month ago and it's now at every four hours. The updated db got them right away, the delay (in my case) was me doing the update in the first place.

      F-prot and SpamAssassin with Courier-MTA, BTW.

      --
      Money for nothing, pix for free
    2. Re:You'd be better off... by BrookHarty · · Score: 2, Interesting

      F-prot does indeed rock, for a home user, you can setup a linux box, use postfix,fetchmail,f-prot, procmail and spam assassin. Top it off with Mozilla Mail or Thunderbird, and spam/viruses are so much easier to deal with.
      F-prot catchs most viruses, the rest seem to be on a blocked list, so I'm pretty happy with f-prot. In fact, I use f-prot to scan all the file-systems also, not just for email. F-prot has to be the easiest command line scanner out.

      And if you want, you can use procmail/fetchmail and hotpop to grab your webbased emails and scan them for viruses. Little time to setup, but worth every minute.

  2. Re:Best mail virus scanner by JeffMagnus · · Score: 4, Funny

    While you are at it you might as well suggest converting it all to postal mail, and irridating it to prevent the spread of anthrax.

  3. Clam by ADRA · · Score: 4, Interesting

    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!
    1. Re:Clam by RedHat+Rocky · · Score: 2, Interesting

      Used to use Sophos to scan email coming into a qmail server. Switched to ClamAV a couple of months ago and have never regretted it.

      I do think they deserve some support from the community, I'm considering what to do in my workplace. A mirror would be possible but the mirror terms are a little out of the ordinary.

      --
      Anything is possible given time and money.
    2. Re:Clam by phoenix_rizzen · · Score: 2, Informative

      The current database scans for more than 20,000 viruses and variants.

  4. there's always the blowtorch on an ant method! by Anonymous Coward · · Score: 3, Insightful
    The Blowtorch on an Ant method: Block all email with attachments.

    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.

    1. Re:there's always the blowtorch on an ant method! by cybermace5 · · Score: 5, Insightful

      Do it. Then set up a simple web-based upload/download site using PHP. This is more efficient because the attachment doesn't need to be encoded for mailing, and gets around any attachment size limits for various users.

      It's extremely easy to do, and you could even set it up so that each uploaded file gets a little key so only the intended recipient can get it. The uploader script will automatically send an email to the desired recipient, containing a URL with the unique key embedded. Having all of the files stored on the server like that will probably cut down on all the inappropriate files too.

      Solution should take no more than three PHP files of 100 or less lines each.

      --
      ...
  5. ClamAV vs. Commercial by OneFix+at+Work · · Score: 4, Informative

    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...

  6. ClamAV by Evanrude · · Score: 4, Interesting

    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
  7. Chain Solutions by 4of12 · · Score: 2, Interesting

    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."
  8. ClamAV and something else by Gaima · · Score: 2, Interesting

    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.

  9. Here's an idea... by gklinger · · Score: 4, Interesting
    It would take a bit of server side scripting but it shouldn't be that hard to implement. If someone gets a piece of email with an attachement, any binary attachment, strip it out and save it out somewhere (~/mail/attachments or ~/public_html/mail/attachments, wherever is easiest given your system's configuration) and in its place include a text attachment that says something like, "This email came with an attachment. This could be a virus. We recommend you exercise caution when dealing attachments. You may download/view the attachment at [give URL pointing to wherever you saved it]."

    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.

    1. Re:Here's an idea... by gklinger · · Score: 2, Insightful
      Don't want to sound like a flame,but have you *ever* worked with end users?

      I've admined corporate networks with between five hundred and a thousand clients and admined ISPs with five times as many so yeah, I've dealt with end users. It was my experience that you can either marvel at their stupidity and bang your head on your desk or marvel at their stupidity, try to help and educate them and then bang your head on your desk. I found the latter gave me the always heartwarming excuse, "I tried."

      At any rate, I think that perhaps you've missed my point. You can't prevent all bad things from happening but by putting a block in place which causes people to pause and reflect, you _may_ aid them in helping themselves. This is why we have railings on stair cases, seatbelt warning lights in cars etc. I should also add that my suggestion does not in any way prevent an admin from also implementing some kind of server-side virus protection. The more protection, the merrier.

      As for users just opening things in their browser which are configured to execute anything executable they come across, what's to stop the same script from changing .exe to .xex with a note telling users that in order to execute the program they will have to manually change it back?

      Granted, you can't prevent a determinedly stupid person from being themselves but you can try to help those waivering on the edge. You also have to try to stay one step ahead of stupid because, contradictory to Darwin's teachings, stupid is evolving at a terrifying rate.

  10. Works well with qmail-scanner (thumbs up) by Penis_Envy · · Score: 2, Informative

    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.

  11. Vexira Antivirus by PinkX · · Score: 2, Interesting

    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.

    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 .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.

    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,

  12. something to check for in your AV scanner by Tumbleweed · · Score: 3, Insightful

    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.

  13. We tried that recently at my company by cgenman · · Score: 2, Funny

    MyDoom reduced our productivity by 10%.

  14. Not for OS X Server, though... by darken9999 · · Score: 2, Interesting

    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.

  15. My experience with ClamAV/Qmail-scanner by j-turkey · · Score: 4, Interesting

    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

  16. Clam is *better* at times . . . by millisa · · Score: 2, Insightful

    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 . . .

  17. Password-encrypted Zips by caseih · · Score: 3, Interesting

    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.

    1. Re:Password-encrypted Zips by ncr53c8xx · · Score: 2, Interesting
      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.

      The password is in the text of the email. How difficult would it be to try all the different words in the mail as passwords? The mails have less than 50 words, so it should run pretty fast.

  18. Re:Huh? Doesn't everyone use Pine? by great_snoopy · · Score: 2, Interesting

    Even if you use pine, you still get tons of junk mail generated by viruses. All those messages must be manually deleted. Depending on various factors, you can get more or less junk virmail, and it's frustrating to delete them by hand. Better let the AV do that for you.

  19. From a user's POV by Mr.+Piddle · · Score: 2, Interesting


    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.
  20. Use a hardware-based solution by 5.11Climber · · Score: 2, Interesting

    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!
  21. ClamAV concerns by menscher · · Score: 2, Interesting
    I've been considering implementing ClamAV on our mailserver (sendmail for 800+ users), since procmail filtering is proving to be less than effective with the latest wave of viruses. But I have two concerns to resolve first:
    • 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.
  22. SuSE OpenExchange + AntiVir by arcade · · Score: 2, Interesting

    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
  23. Re:Mostly works. by Yottabyte84 · · Score: 2, Informative

    I run clamd under daemontools. Crashes take it down for a few seconds at most. Check out this guide

  24. Using both Clam and Sophos.. by martin · · Score: 2, Informative

    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.....